Skip to content

Commit

Permalink
#pragma once for app, base, chrome, gfx, ipc, net, skia, views
Browse files Browse the repository at this point in the history
BUG=50273
TEST=everything still builds, build is 10% faster on windows, same speed on mac/linux

TBR: erg

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53716 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
thakis@chromium.org committed Jul 26, 2010
1 parent 7cf4d55 commit 32b76ef
Show file tree
Hide file tree
Showing 2,700 changed files with 2,701 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/active_window_watcher_x.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_ACTIVE_WINDOW_WATCHER_X_H_
#define APP_ACTIVE_WINDOW_WATCHER_X_H_
#pragma once

#include <gdk/gdk.h>

Expand Down
1 change: 1 addition & 0 deletions app/animation.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_ANIMATION_H_
#define APP_ANIMATION_H_
#pragma once

#include "app/animation_container.h"
#include "base/ref_counted.h"
Expand Down
1 change: 1 addition & 0 deletions app/animation_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_ANIMATION_CONTAINER_H_
#define APP_ANIMATION_CONTAINER_H_
#pragma once

#include <set>

Expand Down
1 change: 1 addition & 0 deletions app/app_paths.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_APP_PATHS_H_
#define APP_APP_PATHS_H_
#pragma once

// This file declares path keys for the app module. These can be used with
// the PathService to access various special directories and files.
Expand Down
1 change: 1 addition & 0 deletions app/app_switches.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#ifndef APP_APP_SWITCHES_H_
#define APP_APP_SWITCHES_H_
#pragma once

namespace switches {

Expand Down
1 change: 1 addition & 0 deletions app/bidi_line_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_BIDI_LINE_ITERATOR_H_
#define APP_BIDI_LINE_ITERATOR_H_
#pragma once

#include <string>

Expand Down
1 change: 1 addition & 0 deletions app/clipboard/clipboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_CLIPBOARD_CLIPBOARD_H_
#define APP_CLIPBOARD_CLIPBOARD_H_
#pragma once

#include <map>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions app/clipboard/clipboard_util_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#ifndef APP_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_
#define APP_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_
#pragma once

#include <shlobj.h>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions app/clipboard/scoped_clipboard_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#ifndef APP_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_
#define APP_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_
#pragma once

#include <string>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions app/combobox_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_COMBOBOX_MODEL_H_
#define APP_COMBOBOX_MODEL_H_
#pragma once

#include <string>

Expand Down
1 change: 1 addition & 0 deletions app/download_file_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_DOWNLOAD_FILE_INTERFACE_H_
#define APP_DOWNLOAD_FILE_INTERFACE_H_
#pragma once

#include "build/build_config.h"

Expand Down
1 change: 1 addition & 0 deletions app/drag_drop_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_DRAG_DROP_TYPES_H_
#define APP_DRAG_DROP_TYPES_H_
#pragma once

#include "build/build_config.h"

Expand Down
1 change: 1 addition & 0 deletions app/gfx/font_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_GFX_FONT_UTIL_H_
#define APP_GFX_FONT_UTIL_H_
#pragma once

#include "gfx/size.h"

Expand Down
1 change: 1 addition & 0 deletions app/gfx/gl/gl_bindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#ifndef APP_GFX_GL_GL_BINDINGS_H_
#define APP_GFX_GL_GL_BINDINGS_H_
#pragma once

#include <GL/gl.h>
#include <GL/glext.h>
Expand Down
1 change: 1 addition & 0 deletions app/gfx/gl/gl_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_GFX_GL_GL_CONTEXT_H_
#define APP_GFX_GL_GL_CONTEXT_H_
#pragma once

#include "base/logging.h"
#include "build/build_config.h"
Expand Down
1 change: 1 addition & 0 deletions app/gfx/gl/gl_context_egl.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_GFX_GL_GL_CONTEXT_EGL_H_
#define APP_GFX_GL_GL_CONTEXT_EGL_H_
#pragma once

#include "gfx/size.h"
#include "app/gfx/gl/gl_context.h"
Expand Down
1 change: 1 addition & 0 deletions app/gfx/gl/gl_context_osmesa.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_GFX_GL_GL_CONTEXT_OSMESA_H_
#define APP_GFX_GL_GL_CONTEXT_OSMESA_H_
#pragma once

#include "base/scoped_ptr.h"
#include "gfx/size.h"
Expand Down
1 change: 1 addition & 0 deletions app/gfx/gl/gl_context_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#ifndef APP_GFX_GL_GL_CONTEXT_STUB_H_
#define APP_GFX_GL_GL_CONTEXT_STUB_H_
#pragma once

#include "app/gfx/gl/gl_context.h"

Expand Down
1 change: 1 addition & 0 deletions app/gfx/gl/gl_implementation.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_GFX_GL_GL_IMPLEMENTATION_H_
#define APP_GFX_GL_GL_IMPLEMENTATION_H_
#pragma once

#include <string>

Expand Down
1 change: 1 addition & 0 deletions app/gfx/gl/gl_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#ifndef APP_GFX_GL_GL_INTERFACE_H_
#define APP_GFX_GL_GL_INTERFACE_H_
#pragma once

#include "app/gfx/gl/gl_bindings.h"

Expand Down
1 change: 1 addition & 0 deletions app/gfx/gl/gl_mock.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#ifndef APP_GFX_GL_GL_MOCK_H_
#define APP_GFX_GL_GL_MOCK_H_
#pragma once

#include "app/gfx/gl/gl_interface.h"
#include "testing/gmock/include/gmock/gmock.h"
Expand Down
1 change: 1 addition & 0 deletions app/gtk_dnd_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_GTK_DND_UTIL_H_
#define APP_GTK_DND_UTIL_H_
#pragma once

#include <gtk/gtk.h>

Expand Down
1 change: 1 addition & 0 deletions app/gtk_integers.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_GTK_INTEGERS_H_
#define APP_GTK_INTEGERS_H_
#pragma once

// GLib/Gobject/Gtk all use their own integer typedefs. They are copied here
// for forward declaration reasons so we don't pull in all of gtk.h when we
Expand Down
1 change: 1 addition & 0 deletions app/gtk_signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_GTK_SIGNAL_H_
#define APP_GTK_SIGNAL_H_
#pragma once

typedef void* gpointer;
typedef struct _GtkWidget GtkWidget;
Expand Down
1 change: 1 addition & 0 deletions app/gtk_signal_registrar.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_GTK_SIGNAL_REGISTRAR_H_
#define APP_GTK_SIGNAL_REGISTRAR_H_
#pragma once

#include <glib.h>
#include <map>
Expand Down
1 change: 1 addition & 0 deletions app/gtk_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_GTK_UTIL_H_
#define APP_GTK_UTIL_H_
#pragma once

#include <stdint.h>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions app/hi_res_timer_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_HI_RES_TIMER_MANAGER_H_
#define APP_HI_RES_TIMER_MANAGER_H_
#pragma once

#include "app/system_monitor.h"

Expand Down
1 change: 1 addition & 0 deletions app/l10n_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#ifndef APP_L10N_UTIL_H_
#define APP_L10N_UTIL_H_
#pragma once

#include <algorithm>
#include <functional>
Expand Down
1 change: 1 addition & 0 deletions app/l10n_util_collator.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_L10N_UTIL_COLLATOR_H_
#define APP_L10N_UTIL_COLLATOR_H_
#pragma once

#include <algorithm>
#include <functional>
Expand Down
1 change: 1 addition & 0 deletions app/l10n_util_mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_L10N_UTIL_MAC_H_
#define APP_L10N_UTIL_MAC_H_
#pragma once

#include "app/l10n_util.h"
#include "base/basictypes.h"
Expand Down
1 change: 1 addition & 0 deletions app/l10n_util_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_L10N_UTIL_WIN_H_
#define APP_L10N_UTIL_WIN_H_
#pragma once

#include <windows.h>

Expand Down
1 change: 1 addition & 0 deletions app/linear_animation.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#ifndef APP_LINEAR_ANIMATION_H_
#define APP_LINEAR_ANIMATION_H_
#pragma once

#include "app/animation.h"
#include "base/time.h"
Expand Down
1 change: 1 addition & 0 deletions app/menus/accelerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_MENUS_ACCELERATOR_H_
#define APP_MENUS_ACCELERATOR_H_
#pragma once

#include "base/keyboard_codes.h"

Expand Down
1 change: 1 addition & 0 deletions app/menus/accelerator_cocoa.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_MENUS_ACCELERATOR_COCOA_H_
#define APP_MENUS_ACCELERATOR_COCOA_H_
#pragma once

#include <Foundation/Foundation.h>

Expand Down
1 change: 1 addition & 0 deletions app/menus/accelerator_gtk.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_MENUS_ACCELERATOR_GTK_H_
#define APP_MENUS_ACCELERATOR_GTK_H_
#pragma once

#include <gdk/gdk.h>

Expand Down
1 change: 1 addition & 0 deletions app/menus/button_menu_item_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_MENUS_BUTTON_MENU_ITEM_MODEL_H_
#define APP_MENUS_BUTTON_MENU_ITEM_MODEL_H_
#pragma once

#include <vector>

Expand Down
1 change: 1 addition & 0 deletions app/menus/menu_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_MENUS_MENU_MODEL_H_
#define APP_MENUS_MENU_MODEL_H_
#pragma once

#include "base/scoped_ptr.h"
#include "base/string16.h"
Expand Down
1 change: 1 addition & 0 deletions app/menus/simple_menu_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_MENUS_SIMPLE_MENU_MODEL_H_
#define APP_MENUS_SIMPLE_MENU_MODEL_H_
#pragma once

#include <vector>

Expand Down
1 change: 1 addition & 0 deletions app/message_box_flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_MESSAGE_BOX_FLAGS_H_
#define APP_MESSAGE_BOX_FLAGS_H_
#pragma once

#include "base/basictypes.h"

Expand Down
1 change: 1 addition & 0 deletions app/multi_animation.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_MULTI_ANIMATION_H_
#define APP_MULTI_ANIMATION_H_
#pragma once

#include <vector>

Expand Down
1 change: 1 addition & 0 deletions app/os_exchange_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_OS_EXCHANGE_DATA_H_
#define APP_OS_EXCHANGE_DATA_H_
#pragma once

#include "build/build_config.h"

Expand Down
1 change: 1 addition & 0 deletions app/os_exchange_data_provider_gtk.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_OS_EXCHANGE_DATA_PROVIDER_GTK_H_
#define APP_OS_EXCHANGE_DATA_PROVIDER_GTK_H_
#pragma once

#include <gtk/gtk.h>
#include <map>
Expand Down
1 change: 1 addition & 0 deletions app/os_exchange_data_provider_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_
#define APP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_
#pragma once

#include <objidl.h>
#include <shlobj.h>
Expand Down
1 change: 1 addition & 0 deletions app/resource_bundle.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_RESOURCE_BUNDLE_H_
#define APP_RESOURCE_BUNDLE_H_
#pragma once

#include "build/build_config.h"

Expand Down
1 change: 1 addition & 0 deletions app/scoped_handle_gtk.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_SCOPED_HANDLE_GTK_H_
#define APP_SCOPED_HANDLE_GTK_H_
#pragma once

#include <gdk/gdk.h>

Expand Down
1 change: 1 addition & 0 deletions app/slide_animation.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_SLIDE_ANIMATION_H_
#define APP_SLIDE_ANIMATION_H_
#pragma once

#include "app/linear_animation.h"
#include "app/tween.h"
Expand Down
1 change: 1 addition & 0 deletions app/sql/connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_SQL_CONNECTION_H_
#define APP_SQL_CONNECTION_H_
#pragma once

#include <map>
#include <set>
Expand Down
1 change: 1 addition & 0 deletions app/sql/diagnostic_error_delegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_SQL_DIAGNOSTIC_ERROR_DELEGATE_H_
#define APP_SQL_DIAGNOSTIC_ERROR_DELEGATE_H_
#pragma once

#include "app/sql/connection.h"
#include "base/histogram.h"
Expand Down
1 change: 1 addition & 0 deletions app/sql/init_status.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_SQL_INIT_STATUS_H_
#define APP_SQL_INIT_STATUS_H_
#pragma once

namespace sql {

Expand Down
1 change: 1 addition & 0 deletions app/sql/meta_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef APP_SQL_META_TABLE_H_
#define APP_SQL_META_TABLE_H_
#pragma once

#include <string>

Expand Down
Loading

0 comments on commit 32b76ef

Please sign in to comment.