From 32b76eff6f630b9bcc0fc3f3bad826f3d1217dda Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Mon, 26 Jul 2010 23:08:24 +0000 Subject: `#pragma once` for app, base, chrome, gfx, ipc, net, skia, views 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 --- base/at_exit.h | 1 + base/atomic_ref_count.h | 1 + base/atomic_sequence_num.h | 1 + base/atomicops.h | 1 + base/atomicops_internals_arm_gcc.h | 1 + base/atomicops_internals_x86_gcc.h | 1 + base/atomicops_internals_x86_macosx.h | 1 + base/atomicops_internals_x86_msvc.h | 1 + base/auto_reset.h | 1 + base/base64.h | 1 + base/base_drag_source.h | 1 + base/base_drop_target.h | 1 + base/base_paths.h | 1 + base/base_paths_mac.h | 1 + base/base_paths_win.h | 1 + base/base_switches.h | 1 + base/basictypes.h | 1 + base/bits.h | 1 + base/callback.h | 1 + base/cancellation_flag.h | 1 + base/chrome_application_mac.h | 1 + base/cocoa_protocols_mac.h | 1 + base/command_line.h | 1 + base/compat_execinfo.h | 1 + base/compiler_specific.h | 1 + base/condition_variable.h | 1 + base/cpu.h | 1 + base/crypto/capi_util.h | 1 + base/crypto/cssm_init.h | 1 + base/crypto/encryptor.h | 1 + base/crypto/rsa_private_key.h | 1 + base/crypto/scoped_capi_types.h | 1 + base/crypto/scoped_nss_types.h | 1 + base/crypto/signature_creator.h | 1 + base/crypto/signature_verifier.h | 1 + base/crypto/symmetric_key.h | 1 + base/data_pack.h | 1 + base/debug_on_start.h | 1 + base/debug_util.h | 1 + base/dir_reader_fallback.h | 1 + base/dir_reader_linux.h | 1 + base/dir_reader_posix.h | 1 + base/eintr_wrapper.h | 1 + base/env_var.h | 1 + base/event_recorder.h | 1 + base/event_synthesis_gtk.h | 1 + base/event_trace_consumer_win.h | 1 + base/event_trace_controller_win.h | 1 + base/event_trace_provider_win.h | 1 + base/field_trial.h | 1 + base/file_descriptor_posix.h | 1 + base/file_descriptor_shuffle.h | 1 + base/file_path.h | 1 + base/file_util.h | 1 + base/file_util_deprecated.h | 1 + base/file_version_info.h | 1 + base/file_version_info_mac.h | 1 + base/file_version_info_win.h | 1 + base/fix_wp64.h | 1 + base/float_util.h | 1 + base/format_macros.h | 1 + base/foundation_utils_mac.h | 1 + base/global_descriptors_posix.h | 1 + base/gtest_prod_util.h | 1 + base/gtk_util.h | 1 + base/hash_tables.h | 1 + base/histogram.h | 1 + base/hmac.h | 1 + base/i18n/file_util_icu.h | 1 + base/i18n/icu_encoding_detection.h | 1 + base/i18n/icu_string_conversions.h | 1 + base/i18n/icu_util.h | 1 + base/i18n/number_formatting.h | 1 + base/i18n/rtl.h | 1 + base/i18n/time_formatting.h | 1 + base/i18n/word_iterator.h | 1 + base/iat_patch.h | 1 + base/id_map.h | 1 + base/image_util.h | 1 + base/json/json_reader.h | 1 + base/json/json_writer.h | 1 + base/json/string_escape.h | 1 + base/keyboard_code_conversion_gtk.h | 1 + base/keyboard_codes.h | 1 + base/keyboard_codes_posix.h | 1 + base/keyboard_codes_win.h | 1 + base/lazy_instance.h | 1 + base/leak_annotations.h | 1 + base/leak_tracker.h | 1 + base/linked_list.h | 1 + base/linked_ptr.h | 1 + base/linux_util.h | 1 + base/lock.h | 1 + base/lock_impl.h | 1 + base/logging.h | 1 + base/logging_win.h | 1 + base/mac_util.h | 1 + base/mach_ipc_mac.h | 1 + base/md5.h | 1 + base/memory_debug.h | 1 + base/message_loop.h | 1 + base/message_loop_proxy.h | 1 + base/message_loop_proxy_impl.h | 1 + base/message_pump.h | 1 + base/message_pump_default.h | 1 + base/message_pump_glib.h | 1 + base/message_pump_libevent.h | 1 + base/message_pump_mac.h | 1 + base/message_pump_win.h | 1 + base/mime_util.h | 1 + base/move.h | 1 + base/multiprocess_test.h | 1 + base/native_library.h | 1 + base/no_windows2000_unittest.h | 1 + base/non_thread_safe.h | 1 + base/nsimage_cache_mac.h | 1 + base/nss_util.h | 1 + base/nss_util_internal.h | 1 + base/nullable_string16.h | 1 + base/object_watcher.h | 1 + base/observer_list.h | 1 + base/observer_list_threadsafe.h | 1 + base/path_service.h | 1 + base/pe_image.h | 1 + base/perftimer.h | 1 + base/pickle.h | 1 + base/platform_file.h | 1 + base/platform_thread.h | 1 + base/port.h | 1 + base/process.h | 1 + base/process_util.h | 1 + base/process_util_unittest_mac.h | 1 + base/profiler.h | 1 + base/rand_util.h | 1 + base/rand_util_c.h | 1 + base/raw_scoped_refptr_mismatch_checker.h | 1 + base/ref_counted.h | 1 + base/ref_counted_memory.h | 1 + base/registry.h | 1 + base/resource_util.h | 1 + base/safe_strerror_posix.h | 1 + base/scoped_bstr_win.h | 1 + base/scoped_cftyperef.h | 1 + base/scoped_comptr_win.h | 1 + base/scoped_handle.h | 1 + base/scoped_handle_win.h | 1 + base/scoped_native_library.h | 1 + base/scoped_nsautorelease_pool.h | 1 + base/scoped_nsdisable_screen_updates.h | 1 + base/scoped_nsobject.h | 1 + base/scoped_open_process.h | 1 + base/scoped_ptr.h | 1 + base/scoped_temp_dir.h | 1 + base/scoped_variant_win.h | 1 + base/scoped_vector.h | 1 + base/setproctitle_linux.h | 1 + base/sha1.h | 1 + base/sha2.h | 1 + base/shared_memory.h | 1 + base/simple_thread.h | 1 + base/singleton.h | 1 + base/singleton_objc.h | 1 + base/spin_wait.h | 1 + base/stack_container.h | 1 + base/stats_counters.h | 1 + base/stats_table.h | 1 + base/stl_util-inl.h | 1 + base/string16.h | 1 + base/string_piece.h | 1 + base/string_split.h | 1 + base/string_tokenizer.h | 1 + base/string_util.h | 1 + base/string_util_posix.h | 1 + base/string_util_win.h | 1 + base/sync_socket.h | 1 + base/sys_info.h | 1 + base/sys_string_conversions.h | 1 + base/task.h | 1 + base/template_util.h | 1 + base/test/perf_test_suite.h | 1 + base/test/test_file_util.h | 1 + base/test/test_suite.h | 1 + base/thread.h | 1 + base/thread_collision_warner.h | 1 + base/thread_local.h | 1 + base/thread_local_storage.h | 1 + base/time.h | 1 + base/timer.h | 1 + base/trace_event.h | 1 + base/trace_event_win.h | 1 + base/tracked.h | 1 + base/tracked_objects.h | 1 + base/tuple.h | 1 + base/unix_domain_socket_posix.h | 1 + base/utf_offset_string_conversions.h | 1 + base/utf_string_conversion_utils.h | 1 + base/utf_string_conversions.h | 1 + base/values.h | 1 + base/version.h | 1 + base/waitable_event.h | 1 + base/waitable_event_watcher.h | 1 + base/watchdog.h | 1 + base/weak_ptr.h | 1 + base/win_util.h | 1 + base/wmi_util.h | 1 + base/worker_pool.h | 1 + base/worker_pool_linux.h | 1 + base/worker_pool_mac.h | 1 + base/xdg_util.h | 1 + 209 files changed, 209 insertions(+) (limited to 'base') diff --git a/base/at_exit.h b/base/at_exit.h index 082525e..fa0f277 100644 --- a/base/at_exit.h +++ b/base/at_exit.h @@ -4,6 +4,7 @@ #ifndef BASE_AT_EXIT_H_ #define BASE_AT_EXIT_H_ +#pragma once #include diff --git a/base/atomic_ref_count.h b/base/atomic_ref_count.h index 076a944..dff4b1f 100644 --- a/base/atomic_ref_count.h +++ b/base/atomic_ref_count.h @@ -10,6 +10,7 @@ #ifndef BASE_ATOMIC_REF_COUNT_H_ #define BASE_ATOMIC_REF_COUNT_H_ +#pragma once #include "base/atomicops.h" #include "base/third_party/dynamic_annotations/dynamic_annotations.h" diff --git a/base/atomic_sequence_num.h b/base/atomic_sequence_num.h index 6bd51c6b..11805a0 100644 --- a/base/atomic_sequence_num.h +++ b/base/atomic_sequence_num.h @@ -4,6 +4,7 @@ #ifndef BASE_ATOMIC_SEQUENCE_NUM_H_ #define BASE_ATOMIC_SEQUENCE_NUM_H_ +#pragma once #include "base/atomicops.h" #include "base/basictypes.h" diff --git a/base/atomicops.h b/base/atomicops.h index e8de374..cf2f2bb 100644 --- a/base/atomicops.h +++ b/base/atomicops.h @@ -27,6 +27,7 @@ #ifndef BASE_ATOMICOPS_H_ #define BASE_ATOMICOPS_H_ +#pragma once #include "base/basictypes.h" #include "base/port.h" diff --git a/base/atomicops_internals_arm_gcc.h b/base/atomicops_internals_arm_gcc.h index e838f1b..091b34d 100644 --- a/base/atomicops_internals_arm_gcc.h +++ b/base/atomicops_internals_arm_gcc.h @@ -8,6 +8,7 @@ #ifndef BASE_ATOMICOPS_INTERNALS_ARM_GCC_H_ #define BASE_ATOMICOPS_INTERNALS_ARM_GCC_H_ +#pragma once namespace base { namespace subtle { diff --git a/base/atomicops_internals_x86_gcc.h b/base/atomicops_internals_x86_gcc.h index 002734b2b..08dc5aa 100644 --- a/base/atomicops_internals_x86_gcc.h +++ b/base/atomicops_internals_x86_gcc.h @@ -6,6 +6,7 @@ #ifndef BASE_ATOMICOPS_INTERNALS_X86_GCC_H_ #define BASE_ATOMICOPS_INTERNALS_X86_GCC_H_ +#pragma once // This struct is not part of the public API of this module; clients may not // use it. diff --git a/base/atomicops_internals_x86_macosx.h b/base/atomicops_internals_x86_macosx.h index 9997da1..5de7df3 100644 --- a/base/atomicops_internals_x86_macosx.h +++ b/base/atomicops_internals_x86_macosx.h @@ -6,6 +6,7 @@ #ifndef BASE_ATOMICOPS_INTERNALS_X86_MACOSX_H_ #define BASE_ATOMICOPS_INTERNALS_X86_MACOSX_H_ +#pragma once #include diff --git a/base/atomicops_internals_x86_msvc.h b/base/atomicops_internals_x86_msvc.h index eacbb5e..1574528 100644 --- a/base/atomicops_internals_x86_msvc.h +++ b/base/atomicops_internals_x86_msvc.h @@ -6,6 +6,7 @@ #ifndef BASE_ATOMICOPS_INTERNALS_X86_MSVC_H_ #define BASE_ATOMICOPS_INTERNALS_X86_MSVC_H_ +#pragma once #include diff --git a/base/auto_reset.h b/base/auto_reset.h index 3925abe..8638045 100644 --- a/base/auto_reset.h +++ b/base/auto_reset.h @@ -4,6 +4,7 @@ #ifndef BASE_AUTO_RESET_H_ #define BASE_AUTO_RESET_H_ +#pragma once #include "base/basictypes.h" diff --git a/base/base64.h b/base/base64.h index d45a8a3..39cebfb 100644 --- a/base/base64.h +++ b/base/base64.h @@ -4,6 +4,7 @@ #ifndef BASE_BASE64_H__ #define BASE_BASE64_H__ +#pragma once #include diff --git a/base/base_drag_source.h b/base/base_drag_source.h index 0489038..c8fcc7e 100644 --- a/base/base_drag_source.h +++ b/base/base_drag_source.h @@ -4,6 +4,7 @@ #ifndef BASE_BASE_DRAG_SOURCE_H_ #define BASE_BASE_DRAG_SOURCE_H_ +#pragma once #include diff --git a/base/base_drop_target.h b/base/base_drop_target.h index 942c996..de66ce2 100644 --- a/base/base_drop_target.h +++ b/base/base_drop_target.h @@ -4,6 +4,7 @@ #ifndef BASE_BASE_DROP_TARGET_H_ #define BASE_BASE_DROP_TARGET_H_ +#pragma once #include diff --git a/base/base_paths.h b/base/base_paths.h index 6a8342e..0f9be04 100644 --- a/base/base_paths.h +++ b/base/base_paths.h @@ -4,6 +4,7 @@ #ifndef BASE_BASE_PATHS_H_ #define BASE_BASE_PATHS_H_ +#pragma once // This file declares path keys for the base module. These can be used with // the PathService to access various special directories and files. diff --git a/base/base_paths_mac.h b/base/base_paths_mac.h index ac75402..cb6fbd0 100644 --- a/base/base_paths_mac.h +++ b/base/base_paths_mac.h @@ -4,6 +4,7 @@ #ifndef BASE_BASE_PATHS_MAC_H_ #define BASE_BASE_PATHS_MAC_H_ +#pragma once // This file declares Mac-specific path keys for the base module. // These can be used with the PathService to access various special diff --git a/base/base_paths_win.h b/base/base_paths_win.h index 7cf0314..9e2db36 100644 --- a/base/base_paths_win.h +++ b/base/base_paths_win.h @@ -4,6 +4,7 @@ #ifndef BASE_BASE_PATHS_WIN_H__ #define BASE_BASE_PATHS_WIN_H__ +#pragma once // This file declares windows-specific path keys for the base module. // These can be used with the PathService to access various special diff --git a/base/base_switches.h b/base/base_switches.h index 4074043..4c01d1f 100644 --- a/base/base_switches.h +++ b/base/base_switches.h @@ -6,6 +6,7 @@ #ifndef BASE_BASE_SWITCHES_H_ #define BASE_BASE_SWITCHES_H_ +#pragma once namespace switches { diff --git a/base/basictypes.h b/base/basictypes.h index 2fc5538..74c0460 100644 --- a/base/basictypes.h +++ b/base/basictypes.h @@ -4,6 +4,7 @@ #ifndef BASE_BASICTYPES_H_ #define BASE_BASICTYPES_H_ +#pragma once #include // So we can set the bounds of our types #include // For size_t diff --git a/base/bits.h b/base/bits.h index b2209e8..75f9859 100644 --- a/base/bits.h +++ b/base/bits.h @@ -6,6 +6,7 @@ #ifndef BASE_BITS_H_ #define BASE_BITS_H_ +#pragma once #include "base/basictypes.h" #include "base/logging.h" diff --git a/base/callback.h b/base/callback.h index 17a1adc..7f2eb70 100644 --- a/base/callback.h +++ b/base/callback.h @@ -4,6 +4,7 @@ #ifndef BASE_CALLBACK_H_ #define BASE_CALLBACK_H_ +#pragma once #include "base/tuple.h" #include "base/raw_scoped_refptr_mismatch_checker.h" diff --git a/base/cancellation_flag.h b/base/cancellation_flag.h index b9c045d..98ca846 100644 --- a/base/cancellation_flag.h +++ b/base/cancellation_flag.h @@ -4,6 +4,7 @@ #ifndef BASE_CANCELLATION_FLAG_H_ #define BASE_CANCELLATION_FLAG_H_ +#pragma once #include "base/atomicops.h" #include "base/platform_thread.h" diff --git a/base/chrome_application_mac.h b/base/chrome_application_mac.h index 07fd433..3d620b4 100644 --- a/base/chrome_application_mac.h +++ b/base/chrome_application_mac.h @@ -4,6 +4,7 @@ #ifndef BASE_CHROME_APPLICATION_MAC_H_ #define BASE_CHROME_APPLICATION_MAC_H_ +#pragma once #import diff --git a/base/cocoa_protocols_mac.h b/base/cocoa_protocols_mac.h index 1ff2878..c7808de 100644 --- a/base/cocoa_protocols_mac.h +++ b/base/cocoa_protocols_mac.h @@ -4,6 +4,7 @@ #ifndef BASE_COCOA_PROTOCOLS_MAC_H_ #define BASE_COCOA_PROTOCOLS_MAC_H_ +#pragma once #import diff --git a/base/command_line.h b/base/command_line.h index 2c4f32d..b7f01f3 100644 --- a/base/command_line.h +++ b/base/command_line.h @@ -15,6 +15,7 @@ #ifndef BASE_COMMAND_LINE_H_ #define BASE_COMMAND_LINE_H_ +#pragma once #include "build/build_config.h" diff --git a/base/compat_execinfo.h b/base/compat_execinfo.h index 348c5cd..3d4cc43 100644 --- a/base/compat_execinfo.h +++ b/base/compat_execinfo.h @@ -7,6 +7,7 @@ #ifndef BASE_COMPAT_EXECINFO_H_ #define BASE_COMPAT_EXECINFO_H_ +#pragma once #include "build/build_config.h" diff --git a/base/compiler_specific.h b/base/compiler_specific.h index 23b9f124..ce93998 100644 --- a/base/compiler_specific.h +++ b/base/compiler_specific.h @@ -4,6 +4,7 @@ #ifndef BASE_COMPILER_SPECIFIC_H_ #define BASE_COMPILER_SPECIFIC_H_ +#pragma once #include "build/build_config.h" diff --git a/base/condition_variable.h b/base/condition_variable.h index da87bfc..4fe1892 100644 --- a/base/condition_variable.h +++ b/base/condition_variable.h @@ -64,6 +64,7 @@ #ifndef BASE_CONDITION_VARIABLE_H_ #define BASE_CONDITION_VARIABLE_H_ +#pragma once #include "build/build_config.h" diff --git a/base/cpu.h b/base/cpu.h index 15cc668..963da1a7 100644 --- a/base/cpu.h +++ b/base/cpu.h @@ -4,6 +4,7 @@ #ifndef BASE_CPU_H_ #define BASE_CPU_H_ +#pragma once #include diff --git a/base/crypto/capi_util.h b/base/crypto/capi_util.h index 42adfe1..8f89828 100644 --- a/base/crypto/capi_util.h +++ b/base/crypto/capi_util.h @@ -4,6 +4,7 @@ #ifndef BASE_CRYPTO_CAPI_UTIL_H_ #define BASE_CRYPTO_CAPI_UTIL_H_ +#pragma once #include #include diff --git a/base/crypto/cssm_init.h b/base/crypto/cssm_init.h index b5ec03d..a066542 100644 --- a/base/crypto/cssm_init.h +++ b/base/crypto/cssm_init.h @@ -4,6 +4,7 @@ #ifndef BASE_CRYPTO_CSSM_INIT_H_ #define BASE_CRYPTO_CSSM_INIT_H_ +#pragma once #include diff --git a/base/crypto/encryptor.h b/base/crypto/encryptor.h index 5267549..f1d6f28 100644 --- a/base/crypto/encryptor.h +++ b/base/crypto/encryptor.h @@ -4,6 +4,7 @@ #ifndef BASE_CRYPTO_ENCRYPTOR_H_ #define BASE_CRYPTO_ENCRYPTOR_H_ +#pragma once #include diff --git a/base/crypto/rsa_private_key.h b/base/crypto/rsa_private_key.h index 9c8bfd4..64095fb 100644 --- a/base/crypto/rsa_private_key.h +++ b/base/crypto/rsa_private_key.h @@ -4,6 +4,7 @@ #ifndef BASE_CRYPTO_RSA_PRIVATE_KEY_H_ #define BASE_CRYPTO_RSA_PRIVATE_KEY_H_ +#pragma once #include "build/build_config.h" diff --git a/base/crypto/scoped_capi_types.h b/base/crypto/scoped_capi_types.h index bdb05c3..d6582a7b 100644 --- a/base/crypto/scoped_capi_types.h +++ b/base/crypto/scoped_capi_types.h @@ -4,6 +4,7 @@ #ifndef BASE_CRYPTO_SCOPED_CAPI_TYPES_H_ #define BASE_CRYPTO_SCOPED_CAPI_TYPES_H_ +#pragma once #include #include diff --git a/base/crypto/scoped_nss_types.h b/base/crypto/scoped_nss_types.h index c1c84c1..664251f 100644 --- a/base/crypto/scoped_nss_types.h +++ b/base/crypto/scoped_nss_types.h @@ -4,6 +4,7 @@ #ifndef BASE_SCOPED_NSS_TYPES_H_ #define BASE_SCOPED_NSS_TYPES_H_ +#pragma once #include #include diff --git a/base/crypto/signature_creator.h b/base/crypto/signature_creator.h index 0e11ec3..38e327b 100644 --- a/base/crypto/signature_creator.h +++ b/base/crypto/signature_creator.h @@ -4,6 +4,7 @@ #ifndef BASE_CRYPTO_SIGNATURE_CREATOR_H_ #define BASE_CRYPTO_SIGNATURE_CREATOR_H_ +#pragma once #include "build/build_config.h" diff --git a/base/crypto/signature_verifier.h b/base/crypto/signature_verifier.h index 1ef08cf..4746edc 100644 --- a/base/crypto/signature_verifier.h +++ b/base/crypto/signature_verifier.h @@ -4,6 +4,7 @@ #ifndef BASE_CRYPTO_SIGNATURE_VERIFIER_H_ #define BASE_CRYPTO_SIGNATURE_VERIFIER_H_ +#pragma once #include "build/build_config.h" diff --git a/base/crypto/symmetric_key.h b/base/crypto/symmetric_key.h index 1c91649..d7259be 100644 --- a/base/crypto/symmetric_key.h +++ b/base/crypto/symmetric_key.h @@ -4,6 +4,7 @@ #ifndef BASE_CRYPTO_SYMMETRIC_KEY_H_ #define BASE_CRYPTO_SYMMETRIC_KEY_H_ +#pragma once #include diff --git a/base/data_pack.h b/base/data_pack.h index f3f8481..33f8b0f 100644 --- a/base/data_pack.h +++ b/base/data_pack.h @@ -8,6 +8,7 @@ #ifndef BASE_DATA_PACK_H_ #define BASE_DATA_PACK_H_ +#pragma once #include diff --git a/base/debug_on_start.h b/base/debug_on_start.h index e31e7eb..1774415 100644 --- a/base/debug_on_start.h +++ b/base/debug_on_start.h @@ -8,6 +8,7 @@ #ifndef BASE_DEBUG_ON_START_H_ #define BASE_DEBUG_ON_START_H_ +#pragma once #include "base/basictypes.h" diff --git a/base/debug_util.h b/base/debug_util.h index 303b4df..95df524 100644 --- a/base/debug_util.h +++ b/base/debug_util.h @@ -8,6 +8,7 @@ #ifndef BASE_DEBUG_UTIL_H_ #define BASE_DEBUG_UTIL_H_ +#pragma once #include #include diff --git a/base/dir_reader_fallback.h b/base/dir_reader_fallback.h index c8f02e6..398f51b 100644 --- a/base/dir_reader_fallback.h +++ b/base/dir_reader_fallback.h @@ -4,6 +4,7 @@ #ifndef BASE_DIR_READER_FALLBACK_H_ #define BASE_DIR_READER_FALLBACK_H_ +#pragma once namespace base { diff --git a/base/dir_reader_linux.h b/base/dir_reader_linux.h index 7fd534f..2b83334 100644 --- a/base/dir_reader_linux.h +++ b/base/dir_reader_linux.h @@ -4,6 +4,7 @@ #ifndef BASE_DIR_READER_LINUX_H_ #define BASE_DIR_READER_LINUX_H_ +#pragma once #include #include diff --git a/base/dir_reader_posix.h b/base/dir_reader_posix.h index 7f069b63..f591ae0 100644 --- a/base/dir_reader_posix.h +++ b/base/dir_reader_posix.h @@ -4,6 +4,7 @@ #ifndef BASE_DIR_READER_POSIX_H_ #define BASE_DIR_READER_POSIX_H_ +#pragma once #include "build/build_config.h" diff --git a/base/eintr_wrapper.h b/base/eintr_wrapper.h index d2aee11..191c2a7 100644 --- a/base/eintr_wrapper.h +++ b/base/eintr_wrapper.h @@ -9,6 +9,7 @@ #ifndef BASE_EINTR_WRAPPER_H_ #define BASE_EINTR_WRAPPER_H_ +#pragma once #include "build/build_config.h" diff --git a/base/env_var.h b/base/env_var.h index c0a45ca..9622e74 100644 --- a/base/env_var.h +++ b/base/env_var.h @@ -4,6 +4,7 @@ #ifndef BASE_ENV_VAR_H_ #define BASE_ENV_VAR_H_ +#pragma once #include diff --git a/base/event_recorder.h b/base/event_recorder.h index df99428..3fb2d23 100644 --- a/base/event_recorder.h +++ b/base/event_recorder.h @@ -4,6 +4,7 @@ #ifndef BASE_EVENT_RECORDER_H_ #define BASE_EVENT_RECORDER_H_ +#pragma once #include #if defined(OS_WIN) diff --git a/base/event_synthesis_gtk.h b/base/event_synthesis_gtk.h index 11a540c..9612ae1 100644 --- a/base/event_synthesis_gtk.h +++ b/base/event_synthesis_gtk.h @@ -8,6 +8,7 @@ #ifndef BASE_EVENT_SYNTHESIS_GTK_ #define BASE_EVENT_SYNTHESIS_GTK_ +#pragma once #include #include diff --git a/base/event_trace_consumer_win.h b/base/event_trace_consumer_win.h index 03db96f..de53ab2 100644 --- a/base/event_trace_consumer_win.h +++ b/base/event_trace_consumer_win.h @@ -5,6 +5,7 @@ // Declaration of a Windows event trace consumer base class. #ifndef BASE_EVENT_TRACE_CONSUMER_WIN_H_ #define BASE_EVENT_TRACE_CONSUMER_WIN_H_ +#pragma once #include #include diff --git a/base/event_trace_controller_win.h b/base/event_trace_controller_win.h index 5267c86..5f66b97 100644 --- a/base/event_trace_controller_win.h +++ b/base/event_trace_controller_win.h @@ -19,6 +19,7 @@ // as well as potentially from multiple binary trace files. #ifndef BASE_EVENT_TRACE_CONTROLLER_WIN_H_ #define BASE_EVENT_TRACE_CONTROLLER_WIN_H_ +#pragma once #include #include diff --git a/base/event_trace_provider_win.h b/base/event_trace_provider_win.h index 9668740..b0526b1 100644 --- a/base/event_trace_provider_win.h +++ b/base/event_trace_provider_win.h @@ -6,6 +6,7 @@ // Windows Event Tracing for logging transport and control. #ifndef BASE_EVENT_TRACE_PROVIDER_WIN_H_ #define BASE_EVENT_TRACE_PROVIDER_WIN_H_ +#pragma once #include #include diff --git a/base/field_trial.h b/base/field_trial.h index 1248e83..9dba639 100644 --- a/base/field_trial.h +++ b/base/field_trial.h @@ -61,6 +61,7 @@ #ifndef BASE_FIELD_TRIAL_H_ #define BASE_FIELD_TRIAL_H_ +#pragma once #include #include diff --git a/base/file_descriptor_posix.h b/base/file_descriptor_posix.h index abc0789..6f46ab49 100644 --- a/base/file_descriptor_posix.h +++ b/base/file_descriptor_posix.h @@ -4,6 +4,7 @@ #ifndef BASE_FILE_DESCRIPTOR_POSIX_H_ #define BASE_FILE_DESCRIPTOR_POSIX_H_ +#pragma once namespace base { diff --git a/base/file_descriptor_shuffle.h b/base/file_descriptor_shuffle.h index e1c93cd..a5c08e4 100644 --- a/base/file_descriptor_shuffle.h +++ b/base/file_descriptor_shuffle.h @@ -4,6 +4,7 @@ #ifndef BASE_FILE_DESCRIPTOR_SHUFFLE_H_ #define BASE_FILE_DESCRIPTOR_SHUFFLE_H_ +#pragma once // This code exists to perform the shuffling of file descriptors which is // commonly needed when forking subprocesses. The naive approve is very simple, diff --git a/base/file_path.h b/base/file_path.h index 6887cdc..01cd4a5 100644 --- a/base/file_path.h +++ b/base/file_path.h @@ -98,6 +98,7 @@ #ifndef BASE_FILE_PATH_H_ #define BASE_FILE_PATH_H_ +#pragma once #include #include diff --git a/base/file_util.h b/base/file_util.h index d52bba9..84b9b68 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -7,6 +7,7 @@ #ifndef BASE_FILE_UTIL_H_ #define BASE_FILE_UTIL_H_ +#pragma once #include "build/build_config.h" diff --git a/base/file_util_deprecated.h b/base/file_util_deprecated.h index d02ad85..148c023 100644 --- a/base/file_util_deprecated.h +++ b/base/file_util_deprecated.h @@ -12,6 +12,7 @@ #ifndef BASE_FILE_UTIL_DEPRECATED_H_ #define BASE_FILE_UTIL_DEPRECATED_H_ +#pragma once #include "build/build_config.h" diff --git a/base/file_version_info.h b/base/file_version_info.h index 9ab7a0d..19407d2 100644 --- a/base/file_version_info.h +++ b/base/file_version_info.h @@ -4,6 +4,7 @@ #ifndef BASE_FILE_VERSION_INFO_H__ #define BASE_FILE_VERSION_INFO_H__ +#pragma once #include diff --git a/base/file_version_info_mac.h b/base/file_version_info_mac.h index a523f54..6f94baa 100644 --- a/base/file_version_info_mac.h +++ b/base/file_version_info_mac.h @@ -4,6 +4,7 @@ #ifndef BASE_FILE_VERSION_INFO_MAC_H_ #define BASE_FILE_VERSION_INFO_MAC_H_ +#pragma once #include diff --git a/base/file_version_info_win.h b/base/file_version_info_win.h index ce173fe..c2bde77 100644 --- a/base/file_version_info_win.h +++ b/base/file_version_info_win.h @@ -4,6 +4,7 @@ #ifndef BASE_FILE_VERSION_INFO_WIN_H_ #define BASE_FILE_VERSION_INFO_WIN_H_ +#pragma once #include diff --git a/base/fix_wp64.h b/base/fix_wp64.h index 0c4c0bb..7e2f7c1 100644 --- a/base/fix_wp64.h +++ b/base/fix_wp64.h @@ -7,6 +7,7 @@ #ifndef BASE_FIX_WP64_H__ #define BASE_FIX_WP64_H__ +#pragma once #include diff --git a/base/float_util.h b/base/float_util.h index a71b639..69334d0 100644 --- a/base/float_util.h +++ b/base/float_util.h @@ -4,6 +4,7 @@ #ifndef BASE_FLOAT_UTIL_H_ #define BASE_FLOAT_UTIL_H_ +#pragma once #include "build/build_config.h" diff --git a/base/format_macros.h b/base/format_macros.h index 9c9b950..45f0e84 100644 --- a/base/format_macros.h +++ b/base/format_macros.h @@ -4,6 +4,7 @@ #ifndef BASE_FORMAT_MACROS_H_ #define BASE_FORMAT_MACROS_H_ +#pragma once // This file defines the format macros for some integer types. diff --git a/base/foundation_utils_mac.h b/base/foundation_utils_mac.h index 64ebeda..740a383 100644 --- a/base/foundation_utils_mac.h +++ b/base/foundation_utils_mac.h @@ -4,6 +4,7 @@ #ifndef BASE_FOUNDATION_UTILS_MAC_H_ #define BASE_FOUNDATION_UTILS_MAC_H_ +#pragma once #include #import diff --git a/base/global_descriptors_posix.h b/base/global_descriptors_posix.h index f606a82..c37dae6 100644 --- a/base/global_descriptors_posix.h +++ b/base/global_descriptors_posix.h @@ -4,6 +4,7 @@ #ifndef BASE_GLOBAL_DESCRIPTORS_POSIX_H_ #define BASE_GLOBAL_DESCRIPTORS_POSIX_H_ +#pragma once #include "build/build_config.h" diff --git a/base/gtest_prod_util.h b/base/gtest_prod_util.h index 0e8e61a..a54235a 100644 --- a/base/gtest_prod_util.h +++ b/base/gtest_prod_util.h @@ -4,6 +4,7 @@ #ifndef BASE_GTEST_PROD_UTIL_H_ #define BASE_GTEST_PROD_UTIL_H_ +#pragma once #include "testing/gtest/include/gtest/gtest_prod.h" diff --git a/base/gtk_util.h b/base/gtk_util.h index fc85db5..435780d 100644 --- a/base/gtk_util.h +++ b/base/gtk_util.h @@ -4,6 +4,7 @@ #ifndef BASE_GTK_UTIL_H_ #define BASE_GTK_UTIL_H_ +#pragma once #include diff --git a/base/hash_tables.h b/base/hash_tables.h index ad7d465..250b27d 100644 --- a/base/hash_tables.h +++ b/base/hash_tables.h @@ -20,6 +20,7 @@ #ifndef BASE_HASH_TABLES_H_ #define BASE_HASH_TABLES_H_ +#pragma once #include "build/build_config.h" diff --git a/base/histogram.h b/base/histogram.h index b745026..441507b 100644 --- a/base/histogram.h +++ b/base/histogram.h @@ -30,6 +30,7 @@ #ifndef BASE_HISTOGRAM_H_ #define BASE_HISTOGRAM_H_ +#pragma once #include #include diff --git a/base/hmac.h b/base/hmac.h index b915124..d467e1a 100644 --- a/base/hmac.h +++ b/base/hmac.h @@ -7,6 +7,7 @@ #ifndef BASE_HMAC_H_ #define BASE_HMAC_H_ +#pragma once #include diff --git a/base/i18n/file_util_icu.h b/base/i18n/file_util_icu.h index b4127d9..eaf784b 100644 --- a/base/i18n/file_util_icu.h +++ b/base/i18n/file_util_icu.h @@ -4,6 +4,7 @@ #ifndef BASE_I18N_FILE_UTIL_ICU_H_ #define BASE_I18N_FILE_UTIL_ICU_H_ +#pragma once // File utilities that use the ICU library go in this file. diff --git a/base/i18n/icu_encoding_detection.h b/base/i18n/icu_encoding_detection.h index 0d8e5d8..e7e6253 100644 --- a/base/i18n/icu_encoding_detection.h +++ b/base/i18n/icu_encoding_detection.h @@ -4,6 +4,7 @@ #ifndef BASE_I18N_ICU_ENCODING_DETECTION_H_ #define BASE_I18N_ICU_ENCODING_DETECTION_H_ +#pragma once #include diff --git a/base/i18n/icu_string_conversions.h b/base/i18n/icu_string_conversions.h index 79d7e02..1495cae 100644 --- a/base/i18n/icu_string_conversions.h +++ b/base/i18n/icu_string_conversions.h @@ -4,6 +4,7 @@ #ifndef BASE_I18N_ICU_STRING_CONVERSIONS_H_ #define BASE_I18N_ICU_STRING_CONVERSIONS_H_ +#pragma once #include diff --git a/base/i18n/icu_util.h b/base/i18n/icu_util.h index 56eaa37..35c2e4f 100644 --- a/base/i18n/icu_util.h +++ b/base/i18n/icu_util.h @@ -4,6 +4,7 @@ #ifndef BASE_I18N_ICU_UTIL_H_ #define BASE_I18N_ICU_UTIL_H_ +#pragma once namespace icu_util { diff --git a/base/i18n/number_formatting.h b/base/i18n/number_formatting.h index 9fa2b18..5927f53 100644 --- a/base/i18n/number_formatting.h +++ b/base/i18n/number_formatting.h @@ -4,6 +4,7 @@ #ifndef BASE_I18N_NUMBER_FORMATTING_H_ #define BASE_I18N_NUMBER_FORMATTING_H_ +#pragma once #include diff --git a/base/i18n/rtl.h b/base/i18n/rtl.h index 98a4e35..19b142c 100644 --- a/base/i18n/rtl.h +++ b/base/i18n/rtl.h @@ -4,6 +4,7 @@ #ifndef BASE_I18N_RTL_H_ #define BASE_I18N_RTL_H_ +#pragma once #include "base/string16.h" #include "build/build_config.h" diff --git a/base/i18n/time_formatting.h b/base/i18n/time_formatting.h index dd623af..d78ae9b 100644 --- a/base/i18n/time_formatting.h +++ b/base/i18n/time_formatting.h @@ -7,6 +7,7 @@ #ifndef BASE_I18N_TIME_FORMATTING_H_ #define BASE_I18N_TIME_FORMATTING_H_ +#pragma once #include diff --git a/base/i18n/word_iterator.h b/base/i18n/word_iterator.h index f8fb89f..fb0ee33 100644 --- a/base/i18n/word_iterator.h +++ b/base/i18n/word_iterator.h @@ -4,6 +4,7 @@ #ifndef BASE_I18N_WORD_ITERATOR_H_ #define BASE_I18N_WORD_ITERATOR_H_ +#pragma once #include #include diff --git a/base/iat_patch.h b/base/iat_patch.h index 47d92ce..c2cbbcb 100644 --- a/base/iat_patch.h +++ b/base/iat_patch.h @@ -11,6 +11,7 @@ #ifndef BASE_IAT_PATCH_H__ #define BASE_IAT_PATCH_H__ +#pragma once #include #include "base/basictypes.h" diff --git a/base/id_map.h b/base/id_map.h index 00ef16a..9a41d74 100644 --- a/base/id_map.h +++ b/base/id_map.h @@ -4,6 +4,7 @@ #ifndef BASE_ID_MAP_H_ #define BASE_ID_MAP_H_ +#pragma once #include diff --git a/base/image_util.h b/base/image_util.h index 7e55358..ccdffc3 100644 --- a/base/image_util.h +++ b/base/image_util.h @@ -8,6 +8,7 @@ #ifndef BASE_IMAGE_UTIL_H_ #define BASE_IMAGE_UTIL_H_ +#pragma once #include #include diff --git a/base/json/json_reader.h b/base/json/json_reader.h index aa0c2a7..33bd8f2 100644 --- a/base/json/json_reader.h +++ b/base/json/json_reader.h @@ -30,6 +30,7 @@ #ifndef BASE_JSON_JSON_READER_H_ #define BASE_JSON_JSON_READER_H_ +#pragma once #include diff --git a/base/json/json_writer.h b/base/json/json_writer.h index 0ebee0a..db24718 100644 --- a/base/json/json_writer.h +++ b/base/json/json_writer.h @@ -4,6 +4,7 @@ #ifndef BASE_JSON_JSON_WRITER_H_ #define BASE_JSON_JSON_WRITER_H_ +#pragma once #include diff --git a/base/json/string_escape.h b/base/json/string_escape.h index 7c64c29..2d7206b 100644 --- a/base/json/string_escape.h +++ b/base/json/string_escape.h @@ -6,6 +6,7 @@ #ifndef BASE_JSON_STRING_ESCAPE_H_ #define BASE_JSON_STRING_ESCAPE_H_ +#pragma once #include diff --git a/base/keyboard_code_conversion_gtk.h b/base/keyboard_code_conversion_gtk.h index 2ad6b12..4095b4a 100644 --- a/base/keyboard_code_conversion_gtk.h +++ b/base/keyboard_code_conversion_gtk.h @@ -35,6 +35,7 @@ #ifndef BASE_KEYBOARD_CODE_CONVERSION_GTK_H_ #define BASE_KEYBOARD_CODE_CONVERSION_GTK_H_ +#pragma once #include "base/keyboard_codes_posix.h" diff --git a/base/keyboard_codes.h b/base/keyboard_codes.h index 9a7f968..b154ab8 100644 --- a/base/keyboard_codes.h +++ b/base/keyboard_codes.h @@ -4,6 +4,7 @@ #ifndef BASE_KEYBOARD_CODES_H_ #define BASE_KEYBOARD_CODES_H_ +#pragma once #include "build/build_config.h" diff --git a/base/keyboard_codes_posix.h b/base/keyboard_codes_posix.h index 9d870aa..a1b4d57 100644 --- a/base/keyboard_codes_posix.h +++ b/base/keyboard_codes_posix.h @@ -30,6 +30,7 @@ #ifndef BASE_KEYBOARD_CODES_POSIX_H_ #define BASE_KEYBOARD_CODES_POSIX_H_ +#pragma once namespace base { diff --git a/base/keyboard_codes_win.h b/base/keyboard_codes_win.h index 7a2f0ef..9d04580 100644 --- a/base/keyboard_codes_win.h +++ b/base/keyboard_codes_win.h @@ -4,6 +4,7 @@ #ifndef BASE_KEYBOARD_CODES_WIN_H_ #define BASE_KEYBOARD_CODES_WIN_H_ +#pragma once #include diff --git a/base/lazy_instance.h b/base/lazy_instance.h index d639348..57f8aeb5 100644 --- a/base/lazy_instance.h +++ b/base/lazy_instance.h @@ -34,6 +34,7 @@ #ifndef BASE_LAZY_INSTANCE_H_ #define BASE_LAZY_INSTANCE_H_ +#pragma once #include "base/atomicops.h" #include "base/basictypes.h" diff --git a/base/leak_annotations.h b/base/leak_annotations.h index a402acf..dd8280b 100644 --- a/base/leak_annotations.h +++ b/base/leak_annotations.h @@ -4,6 +4,7 @@ #ifndef BASE_LEAK_ANNOTATIONS_H_ #define BASE_LEAK_ANNOTATIONS_H_ +#pragma once #include "build/build_config.h" diff --git a/base/leak_tracker.h b/base/leak_tracker.h index 46e7b4a..dd85ff6 100644 --- a/base/leak_tracker.h +++ b/base/leak_tracker.h @@ -4,6 +4,7 @@ #ifndef BASE_LEAK_TRACKER_H_ #define BASE_LEAK_TRACKER_H_ +#pragma once // Only enable leak tracking in debug builds. #ifndef NDEBUG diff --git a/base/linked_list.h b/base/linked_list.h index 5b5184f..0626025 100644 --- a/base/linked_list.h +++ b/base/linked_list.h @@ -4,6 +4,7 @@ #ifndef BASE_LINKED_LIST_H_ #define BASE_LINKED_LIST_H_ +#pragma once // Simple LinkedList type. (See the Q&A section to understand how this // differs from std::list). diff --git a/base/linked_ptr.h b/base/linked_ptr.h index d9e81b3..162798d 100644 --- a/base/linked_ptr.h +++ b/base/linked_ptr.h @@ -36,6 +36,7 @@ #ifndef BASE_LINKED_PTR_H_ #define BASE_LINKED_PTR_H_ +#pragma once #include "base/logging.h" // for CHECK macros diff --git a/base/linux_util.h b/base/linux_util.h index a4ba9b6..8216d40 100644 --- a/base/linux_util.h +++ b/base/linux_util.h @@ -4,6 +4,7 @@ #ifndef BASE_LINUX_UTIL_H_ #define BASE_LINUX_UTIL_H_ +#pragma once #include #include diff --git a/base/lock.h b/base/lock.h index 64b8f74..a9b2f88 100644 --- a/base/lock.h +++ b/base/lock.h @@ -4,6 +4,7 @@ #ifndef BASE_LOCK_H_ #define BASE_LOCK_H_ +#pragma once #include "base/lock_impl.h" diff --git a/base/lock_impl.h b/base/lock_impl.h index 5e323a6..9a6a1a0 100644 --- a/base/lock_impl.h +++ b/base/lock_impl.h @@ -4,6 +4,7 @@ #ifndef BASE_LOCK_IMPL_H_ #define BASE_LOCK_IMPL_H_ +#pragma once #include "build/build_config.h" diff --git a/base/logging.h b/base/logging.h index 291c4a0..c63d827 100644 --- a/base/logging.h +++ b/base/logging.h @@ -4,6 +4,7 @@ #ifndef BASE_LOGGING_H_ #define BASE_LOGGING_H_ +#pragma once #include #include diff --git a/base/logging_win.h b/base/logging_win.h index 42b02fe..f2e6e5a 100644 --- a/base/logging_win.h +++ b/base/logging_win.h @@ -4,6 +4,7 @@ #ifndef BASE_LOGGING_WIN_H_ #define BASE_LOGGING_WIN_H_ +#pragma once #include #include "base/basictypes.h" diff --git a/base/mac_util.h b/base/mac_util.h index bfe2079..4be3c89 100644 --- a/base/mac_util.h +++ b/base/mac_util.h @@ -4,6 +4,7 @@ #ifndef BASE_MAC_UTIL_H_ #define BASE_MAC_UTIL_H_ +#pragma once #include #include diff --git a/base/mach_ipc_mac.h b/base/mach_ipc_mac.h index 1e88279..5836c3a 100644 --- a/base/mach_ipc_mac.h +++ b/base/mach_ipc_mac.h @@ -4,6 +4,7 @@ #ifndef BASE_MACH_IPC_MAC_H_ #define BASE_MACH_IPC_MAC_H_ +#pragma once #include #include diff --git a/base/md5.h b/base/md5.h index 227e008..5ab6e32 100644 --- a/base/md5.h +++ b/base/md5.h @@ -4,6 +4,7 @@ #ifndef BASE_MD5_H_ #define BASE_MD5_H_ +#pragma once #include diff --git a/base/memory_debug.h b/base/memory_debug.h index 1963268..6d8c7f9 100644 --- a/base/memory_debug.h +++ b/base/memory_debug.h @@ -8,6 +8,7 @@ #ifndef BASE_MEMORY_DEBUG_H_ #define BASE_MEMORY_DEBUG_H_ +#pragma once #include "base/basictypes.h" diff --git a/base/message_loop.h b/base/message_loop.h index 62da3dd..dcf7330 100644 --- a/base/message_loop.h +++ b/base/message_loop.h @@ -4,6 +4,7 @@ #ifndef BASE_MESSAGE_LOOP_H_ #define BASE_MESSAGE_LOOP_H_ +#pragma once #include #include diff --git a/base/message_loop_proxy.h b/base/message_loop_proxy.h index 10d5368..df50485 100644 --- a/base/message_loop_proxy.h +++ b/base/message_loop_proxy.h @@ -4,6 +4,7 @@ #ifndef BASE_MESSAGE_LOOP_PROXY_H_ #define BASE_MESSAGE_LOOP_PROXY_H_ +#pragma once #include "base/basictypes.h" #include "base/ref_counted.h" diff --git a/base/message_loop_proxy_impl.h b/base/message_loop_proxy_impl.h index f895532..b93bb64 100644 --- a/base/message_loop_proxy_impl.h +++ b/base/message_loop_proxy_impl.h @@ -4,6 +4,7 @@ #ifndef BASE_MESSAGE_LOOP_PROXY_IMPL_H_ #define BASE_MESSAGE_LOOP_PROXY_IMPL_H_ +#pragma once #include "base/lock.h" #include "base/message_loop.h" diff --git a/base/message_pump.h b/base/message_pump.h index 9ae9e2c..0cf1420 100644 --- a/base/message_pump.h +++ b/base/message_pump.h @@ -4,6 +4,7 @@ #ifndef BASE_MESSAGE_PUMP_H_ #define BASE_MESSAGE_PUMP_H_ +#pragma once #include "base/ref_counted.h" diff --git a/base/message_pump_default.h b/base/message_pump_default.h index aa0dab9..0ac6cd4d 100644 --- a/base/message_pump_default.h +++ b/base/message_pump_default.h @@ -4,6 +4,7 @@ #ifndef BASE_MESSAGE_PUMP_DEFAULT_H_ #define BASE_MESSAGE_PUMP_DEFAULT_H_ +#pragma once #include "base/message_pump.h" #include "base/time.h" diff --git a/base/message_pump_glib.h b/base/message_pump_glib.h index d140dbf..ac9246d 100644 --- a/base/message_pump_glib.h +++ b/base/message_pump_glib.h @@ -4,6 +4,7 @@ #ifndef BASE_MESSAGE_PUMP_GLIB_H_ #define BASE_MESSAGE_PUMP_GLIB_H_ +#pragma once #include "base/message_pump.h" #include "base/observer_list.h" diff --git a/base/message_pump_libevent.h b/base/message_pump_libevent.h index 6516128..f271612 100644 --- a/base/message_pump_libevent.h +++ b/base/message_pump_libevent.h @@ -4,6 +4,7 @@ #ifndef BASE_MESSAGE_PUMP_LIBEVENT_H_ #define BASE_MESSAGE_PUMP_LIBEVENT_H_ +#pragma once #include "base/basictypes.h" #include "base/message_pump.h" diff --git a/base/message_pump_mac.h b/base/message_pump_mac.h index 3234000..59a7329 100644 --- a/base/message_pump_mac.h +++ b/base/message_pump_mac.h @@ -29,6 +29,7 @@ #ifndef BASE_MESSAGE_PUMP_MAC_H_ #define BASE_MESSAGE_PUMP_MAC_H_ +#pragma once #include "base/message_pump.h" diff --git a/base/message_pump_win.h b/base/message_pump_win.h index 9608187..d7d53cb 100644 --- a/base/message_pump_win.h +++ b/base/message_pump_win.h @@ -4,6 +4,7 @@ #ifndef BASE_MESSAGE_PUMP_WIN_H_ #define BASE_MESSAGE_PUMP_WIN_H_ +#pragma once #include diff --git a/base/mime_util.h b/base/mime_util.h index 58cb630..6212b31 100644 --- a/base/mime_util.h +++ b/base/mime_util.h @@ -4,6 +4,7 @@ #ifndef BASE_MIME_UTIL_H_ #define BASE_MIME_UTIL_H_ +#pragma once #include diff --git a/base/move.h b/base/move.h index eb66070..118eb0a 100644 --- a/base/move.h +++ b/base/move.h @@ -4,6 +4,7 @@ #ifndef BASE_MOVE_H_ #define BASE_MOVE_H_ +#pragma once #include diff --git a/base/multiprocess_test.h b/base/multiprocess_test.h index 4fa5693..459f175 100644 --- a/base/multiprocess_test.h +++ b/base/multiprocess_test.h @@ -4,6 +4,7 @@ #ifndef BASE_MULTIPROCESS_TEST_H_ #define BASE_MULTIPROCESS_TEST_H_ +#pragma once #include "base/base_switches.h" #include "base/command_line.h" diff --git a/base/native_library.h b/base/native_library.h index c37e3a4..2bb8497 100644 --- a/base/native_library.h +++ b/base/native_library.h @@ -4,6 +4,7 @@ #ifndef BASE_NATIVE_LIBRARY_H_ #define BASE_NATIVE_LIBRARY_H_ +#pragma once // This file defines a cross-platform "NativeLibrary" type which represents // a loadable module. diff --git a/base/no_windows2000_unittest.h b/base/no_windows2000_unittest.h index 58709254..4aae07d 100644 --- a/base/no_windows2000_unittest.h +++ b/base/no_windows2000_unittest.h @@ -4,6 +4,7 @@ #ifndef BASE_NO_WINDOWS2000_UNITTEST_H_ #define BASE_NO_WINDOWS2000_UNITTEST_H_ +#pragma once #include "testing/gtest/include/gtest/gtest.h" #include "base/win_util.h" diff --git a/base/non_thread_safe.h b/base/non_thread_safe.h index 1da46aa..feb5120 100644 --- a/base/non_thread_safe.h +++ b/base/non_thread_safe.h @@ -4,6 +4,7 @@ #ifndef BASE_NON_THREAD_SAFE_H__ #define BASE_NON_THREAD_SAFE_H__ +#pragma once #include "base/platform_thread.h" diff --git a/base/nsimage_cache_mac.h b/base/nsimage_cache_mac.h index ffa8dbb..b13eac9 100644 --- a/base/nsimage_cache_mac.h +++ b/base/nsimage_cache_mac.h @@ -4,6 +4,7 @@ #ifndef BASE_NSIMAGE_CACHE_MAC_H_ #define BASE_NSIMAGE_CACHE_MAC_H_ +#pragma once #ifdef __OBJC__ @class NSImage; diff --git a/base/nss_util.h b/base/nss_util.h index 8de3537..b869e46 100644 --- a/base/nss_util.h +++ b/base/nss_util.h @@ -4,6 +4,7 @@ #ifndef BASE_NSS_UTIL_H_ #define BASE_NSS_UTIL_H_ +#pragma once #include "base/basictypes.h" diff --git a/base/nss_util_internal.h b/base/nss_util_internal.h index b3ed33f..139740b 100644 --- a/base/nss_util_internal.h +++ b/base/nss_util_internal.h @@ -4,6 +4,7 @@ #ifndef BASE_NSS_SLOT_UTIL_H_ #define BASE_NSS_SLOT_UTIL_H_ +#pragma once #include diff --git a/base/nullable_string16.h b/base/nullable_string16.h index 6f07183..0702549 100644 --- a/base/nullable_string16.h +++ b/base/nullable_string16.h @@ -4,6 +4,7 @@ #ifndef BASE_NULLABLE_STRING16_H_ #define BASE_NULLABLE_STRING16_H_ +#pragma once #include "base/string16.h" diff --git a/base/object_watcher.h b/base/object_watcher.h index 0340de0..e05ceac 100644 --- a/base/object_watcher.h +++ b/base/object_watcher.h @@ -4,6 +4,7 @@ #ifndef BASE_OBJECT_WATCHER_H_ #define BASE_OBJECT_WATCHER_H_ +#pragma once #include diff --git a/base/observer_list.h b/base/observer_list.h index 10c6775..ca4b3fd 100644 --- a/base/observer_list.h +++ b/base/observer_list.h @@ -4,6 +4,7 @@ #ifndef BASE_OBSERVER_LIST_H__ #define BASE_OBSERVER_LIST_H__ +#pragma once #include #include diff --git a/base/observer_list_threadsafe.h b/base/observer_list_threadsafe.h index f7dabef..ab9633e 100644 --- a/base/observer_list_threadsafe.h +++ b/base/observer_list_threadsafe.h @@ -4,6 +4,7 @@ #ifndef BASE_OBSERVER_LIST_THREADSAFE_H_ #define BASE_OBSERVER_LIST_THREADSAFE_H_ +#pragma once #include #include diff --git a/base/path_service.h b/base/path_service.h index b0e51e4..2b59247 100644 --- a/base/path_service.h +++ b/base/path_service.h @@ -4,6 +4,7 @@ #ifndef BASE_PATH_SERVICE_H_ #define BASE_PATH_SERVICE_H_ +#pragma once #include "build/build_config.h" diff --git a/base/pe_image.h b/base/pe_image.h index f2461d3..968d056 100644 --- a/base/pe_image.h +++ b/base/pe_image.h @@ -10,6 +10,7 @@ #ifndef BASE_PE_IMAGE_H_ #define BASE_PE_IMAGE_H_ +#pragma once #include #include diff --git a/base/perftimer.h b/base/perftimer.h index 1ac1a7d..dae6d61 100644 --- a/base/perftimer.h +++ b/base/perftimer.h @@ -4,6 +4,7 @@ #ifndef BASE_PERFTIMER_H_ #define BASE_PERFTIMER_H_ +#pragma once #include diff --git a/base/pickle.h b/base/pickle.h index fdfdb2b..c7aee67 100644 --- a/base/pickle.h +++ b/base/pickle.h @@ -4,6 +4,7 @@ #ifndef BASE_PICKLE_H__ #define BASE_PICKLE_H__ +#pragma once #include diff --git a/base/platform_file.h b/base/platform_file.h index 0dbf4e4..3571e24 100644 --- a/base/platform_file.h +++ b/base/platform_file.h @@ -4,6 +4,7 @@ #ifndef BASE_PLATFORM_FILE_H_ #define BASE_PLATFORM_FILE_H_ +#pragma once #include "build/build_config.h" #if defined(OS_WIN) diff --git a/base/platform_thread.h b/base/platform_thread.h index 4478519..e330422 100644 --- a/base/platform_thread.h +++ b/base/platform_thread.h @@ -8,6 +8,7 @@ #ifndef BASE_PLATFORM_THREAD_H_ #define BASE_PLATFORM_THREAD_H_ +#pragma once #include "base/basictypes.h" diff --git a/base/port.h b/base/port.h index af4e450..2e66057 100644 --- a/base/port.h +++ b/base/port.h @@ -4,6 +4,7 @@ #ifndef BASE_PORT_H_ #define BASE_PORT_H_ +#pragma once #include #include "build/build_config.h" diff --git a/base/process.h b/base/process.h index 096d1b3..32f5131 100644 --- a/base/process.h +++ b/base/process.h @@ -4,6 +4,7 @@ #ifndef BASE_PROCESS_H_ #define BASE_PROCESS_H_ +#pragma once #include "base/basictypes.h" #include "build/build_config.h" diff --git a/base/process_util.h b/base/process_util.h index 48cef2c..d7ff940 100644 --- a/base/process_util.h +++ b/base/process_util.h @@ -7,6 +7,7 @@ #ifndef BASE_PROCESS_UTIL_H_ #define BASE_PROCESS_UTIL_H_ +#pragma once #include "base/basictypes.h" diff --git a/base/process_util_unittest_mac.h b/base/process_util_unittest_mac.h index 7b4fe1c..60deb13 100644 --- a/base/process_util_unittest_mac.h +++ b/base/process_util_unittest_mac.h @@ -7,6 +7,7 @@ #ifndef BASE_PROCESS_UTIL_UNITTEST_MAC_H_ #define BASE_PROCESS_UTIL_UNITTEST_MAC_H_ +#pragma once #include "base/basictypes.h" diff --git a/base/profiler.h b/base/profiler.h index 4fd1117..ea8867a 100644 --- a/base/profiler.h +++ b/base/profiler.h @@ -8,6 +8,7 @@ #ifndef BASE_PROFILER_H__ #define BASE_PROFILER_H__ +#pragma once #include "base/basictypes.h" diff --git a/base/rand_util.h b/base/rand_util.h index e6ffe9a..451a7d1 100644 --- a/base/rand_util.h +++ b/base/rand_util.h @@ -4,6 +4,7 @@ #ifndef BASE_RAND_UTIL_H_ #define BASE_RAND_UTIL_H_ +#pragma once #include "base/basictypes.h" diff --git a/base/rand_util_c.h b/base/rand_util_c.h index 20e3082..63cf813 100644 --- a/base/rand_util_c.h +++ b/base/rand_util_c.h @@ -4,6 +4,7 @@ #ifndef BASE_RAND_UTIL_C_H_ #define BASE_RAND_UTIL_C_H_ +#pragma once #ifdef __cplusplus extern "C" { diff --git a/base/raw_scoped_refptr_mismatch_checker.h b/base/raw_scoped_refptr_mismatch_checker.h index 598710f..d2913e7 100644 --- a/base/raw_scoped_refptr_mismatch_checker.h +++ b/base/raw_scoped_refptr_mismatch_checker.h @@ -4,6 +4,7 @@ #ifndef BASE_RAW_SCOPED_REFPTR_MISMATCH_CHECKER_H_ #define BASE_RAW_SCOPED_REFPTR_MISMATCH_CHECKER_H_ +#pragma once #include "base/ref_counted.h" #include "base/tuple.h" diff --git a/base/ref_counted.h b/base/ref_counted.h index e8413d9..9fad55f 100644 --- a/base/ref_counted.h +++ b/base/ref_counted.h @@ -4,6 +4,7 @@ #ifndef BASE_REF_COUNTED_H_ #define BASE_REF_COUNTED_H_ +#pragma once #include "base/atomic_ref_count.h" #include "base/thread_collision_warner.h" diff --git a/base/ref_counted_memory.h b/base/ref_counted_memory.h index eae7984..a5323cd 100644 --- a/base/ref_counted_memory.h +++ b/base/ref_counted_memory.h @@ -4,6 +4,7 @@ #ifndef BASE_REF_COUNTED_MEMORY_H_ #define BASE_REF_COUNTED_MEMORY_H_ +#pragma once #include diff --git a/base/registry.h b/base/registry.h index 0babbc8..e35af35 100644 --- a/base/registry.h +++ b/base/registry.h @@ -5,6 +5,7 @@ #ifndef BASE_REGISTRY_H_ #define BASE_REGISTRY_H_ +#pragma once #include #include diff --git a/base/resource_util.h b/base/resource_util.h index eb2276f..2f6b8e0 100644 --- a/base/resource_util.h +++ b/base/resource_util.h @@ -7,6 +7,7 @@ #ifndef BASE_RESOURCE_UTIL_H__ #define BASE_RESOURCE_UTIL_H__ +#pragma once #include #include diff --git a/base/safe_strerror_posix.h b/base/safe_strerror_posix.h index ecf3a78..03c18c8 100644 --- a/base/safe_strerror_posix.h +++ b/base/safe_strerror_posix.h @@ -4,6 +4,7 @@ #ifndef BASE_SAFE_STRERROR_POSIX_H_ #define BASE_SAFE_STRERROR_POSIX_H_ +#pragma once #include diff --git a/base/scoped_bstr_win.h b/base/scoped_bstr_win.h index 04f27e1..42a9c218 100644 --- a/base/scoped_bstr_win.h +++ b/base/scoped_bstr_win.h @@ -4,6 +4,7 @@ #ifndef BASE_SCOPED_BSTR_WIN_H_ #define BASE_SCOPED_BSTR_WIN_H_ +#pragma once #include #include diff --git a/base/scoped_cftyperef.h b/base/scoped_cftyperef.h index 908be24..4e41816 100644 --- a/base/scoped_cftyperef.h +++ b/base/scoped_cftyperef.h @@ -4,6 +4,7 @@ #ifndef BASE_SCOPED_CFTYPEREF_H_ #define BASE_SCOPED_CFTYPEREF_H_ +#pragma once #include #include "base/basictypes.h" diff --git a/base/scoped_comptr_win.h b/base/scoped_comptr_win.h index dbe2805..dd9b9fc 100644 --- a/base/scoped_comptr_win.h +++ b/base/scoped_comptr_win.h @@ -4,6 +4,7 @@ #ifndef BASE_SCOPED_COMPTR_WIN_H_ #define BASE_SCOPED_COMPTR_WIN_H_ +#pragma once #include diff --git a/base/scoped_handle.h b/base/scoped_handle.h index cc87e6a..43ee975 100644 --- a/base/scoped_handle.h +++ b/base/scoped_handle.h @@ -4,6 +4,7 @@ #ifndef BASE_SCOPED_HANDLE_H_ #define BASE_SCOPED_HANDLE_H_ +#pragma once #include diff --git a/base/scoped_handle_win.h b/base/scoped_handle_win.h index 1f4cdbe..4011a18 100644 --- a/base/scoped_handle_win.h +++ b/base/scoped_handle_win.h @@ -4,6 +4,7 @@ #ifndef BASE_SCOPED_HANDLE_WIN_H_ #define BASE_SCOPED_HANDLE_WIN_H_ +#pragma once #include diff --git a/base/scoped_native_library.h b/base/scoped_native_library.h index 3227dba..41fbe341 100644 --- a/base/scoped_native_library.h +++ b/base/scoped_native_library.h @@ -4,6 +4,7 @@ #ifndef BASE_SCOPED_NATIVE_LIBRARY_H_ #define BASE_SCOPED_NATIVE_LIBRARY_H_ +#pragma once #include "base/file_path.h" #include "base/native_library.h" diff --git a/base/scoped_nsautorelease_pool.h b/base/scoped_nsautorelease_pool.h index 64bf9e7..9f428ac 100644 --- a/base/scoped_nsautorelease_pool.h +++ b/base/scoped_nsautorelease_pool.h @@ -4,6 +4,7 @@ #ifndef BASE_SCOPED_NSAUTORELEASE_POOL_H_ #define BASE_SCOPED_NSAUTORELEASE_POOL_H_ +#pragma once #include "base/basictypes.h" diff --git a/base/scoped_nsdisable_screen_updates.h b/base/scoped_nsdisable_screen_updates.h index 964f1bc..5af6026 100644 --- a/base/scoped_nsdisable_screen_updates.h +++ b/base/scoped_nsdisable_screen_updates.h @@ -4,6 +4,7 @@ #ifndef BASE_SCOPED_NSDISABLE_SCREEN_UPDATES_H_ #define BASE_SCOPED_NSDISABLE_SCREEN_UPDATES_H_ +#pragma once #import diff --git a/base/scoped_nsobject.h b/base/scoped_nsobject.h index bde2753..e673a60 100644 --- a/base/scoped_nsobject.h +++ b/base/scoped_nsobject.h @@ -4,6 +4,7 @@ #ifndef BASE_SCOPED_NSOBJECT_H_ #define BASE_SCOPED_NSOBJECT_H_ +#pragma once #import #include "base/basictypes.h" diff --git a/base/scoped_open_process.h b/base/scoped_open_process.h index 9badc76..641f8e5 100644 --- a/base/scoped_open_process.h +++ b/base/scoped_open_process.h @@ -4,6 +4,7 @@ #ifndef BASE_SCOPED_OPEN_PROCESS_H_ #define BASE_SCOPED_OPEN_PROCESS_H_ +#pragma once #include "base/process.h" #include "base/process_util.h" diff --git a/base/scoped_ptr.h b/base/scoped_ptr.h index c716e77..cb17735 100644 --- a/base/scoped_ptr.h +++ b/base/scoped_ptr.h @@ -35,6 +35,7 @@ #ifndef BASE_SCOPED_PTR_H_ #define BASE_SCOPED_PTR_H_ +#pragma once // This is an implementation designed to match the anticipated future TR2 // implementation of the scoped_ptr class, and its closely-related brethren, diff --git a/base/scoped_temp_dir.h b/base/scoped_temp_dir.h index a0708dc3..c24891d 100644 --- a/base/scoped_temp_dir.h +++ b/base/scoped_temp_dir.h @@ -4,6 +4,7 @@ #ifndef BASE_SCOPED_TEMP_DIR_H_ #define BASE_SCOPED_TEMP_DIR_H_ +#pragma once // An object representing a temporary / scratch directory that should be cleaned // up (recursively) when this object goes out of scope. Note that since diff --git a/base/scoped_variant_win.h b/base/scoped_variant_win.h index 4436ca9..df6703e 100644 --- a/base/scoped_variant_win.h +++ b/base/scoped_variant_win.h @@ -4,6 +4,7 @@ #ifndef BASE_SCOPED_VARIANT_WIN_H_ #define BASE_SCOPED_VARIANT_WIN_H_ +#pragma once #include #include diff --git a/base/scoped_vector.h b/base/scoped_vector.h index c007ce4..8e4dd7c 100644 --- a/base/scoped_vector.h +++ b/base/scoped_vector.h @@ -4,6 +4,7 @@ #ifndef BASE_SCOPED_VECTOR_H_ #define BASE_SCOPED_VECTOR_H_ +#pragma once #include diff --git a/base/setproctitle_linux.h b/base/setproctitle_linux.h index c1cf689..769338c 100644 --- a/base/setproctitle_linux.h +++ b/base/setproctitle_linux.h @@ -4,6 +4,7 @@ #ifndef BASE_SETPROCTITLE_LINUX_H_ #define BASE_SETPROCTITLE_LINUX_H_ +#pragma once #ifdef __cplusplus extern "C" { diff --git a/base/sha1.h b/base/sha1.h index bcc1ced..dd43686 100644 --- a/base/sha1.h +++ b/base/sha1.h @@ -4,6 +4,7 @@ #ifndef BASE_SHA1_H_ #define BASE_SHA1_H_ +#pragma once #include diff --git a/base/sha2.h b/base/sha2.h index 5678dbf..55e0609 100644 --- a/base/sha2.h +++ b/base/sha2.h @@ -4,6 +4,7 @@ #ifndef BASE_SHA2_H_ #define BASE_SHA2_H_ +#pragma once #include diff --git a/base/shared_memory.h b/base/shared_memory.h index b6701f8..1f7cc26 100644 --- a/base/shared_memory.h +++ b/base/shared_memory.h @@ -4,6 +4,7 @@ #ifndef BASE_SHARED_MEMORY_H_ #define BASE_SHARED_MEMORY_H_ +#pragma once #include "build/build_config.h" diff --git a/base/simple_thread.h b/base/simple_thread.h index 737b97d..40e568a 100644 --- a/base/simple_thread.h +++ b/base/simple_thread.h @@ -39,6 +39,7 @@ #ifndef BASE_SIMPLE_THREAD_H_ #define BASE_SIMPLE_THREAD_H_ +#pragma once #include #include diff --git a/base/singleton.h b/base/singleton.h index d891c74..ccb2c7d 100644 --- a/base/singleton.h +++ b/base/singleton.h @@ -4,6 +4,7 @@ #ifndef BASE_SINGLETON_H_ #define BASE_SINGLETON_H_ +#pragma once #include "base/at_exit.h" #include "base/atomicops.h" diff --git a/base/singleton_objc.h b/base/singleton_objc.h index 3ba5f1e..e28c8a5 100644 --- a/base/singleton_objc.h +++ b/base/singleton_objc.h @@ -29,6 +29,7 @@ #ifndef BASE_SINGLETON_OBJC_H_ #define BASE_SINGLETON_OBJC_H_ +#pragma once #import #include "base/singleton.h" diff --git a/base/spin_wait.h b/base/spin_wait.h index b1e2045..34484d2 100644 --- a/base/spin_wait.h +++ b/base/spin_wait.h @@ -14,6 +14,7 @@ #ifndef BASE_SPIN_WAIT_H__ #define BASE_SPIN_WAIT_H__ +#pragma once #include "base/platform_thread.h" #include "base/time.h" diff --git a/base/stack_container.h b/base/stack_container.h index 7a2c23b..dc946db 100644 --- a/base/stack_container.h +++ b/base/stack_container.h @@ -4,6 +4,7 @@ #ifndef BASE_STACK_CONTAINER_H_ #define BASE_STACK_CONTAINER_H_ +#pragma once #include #include diff --git a/base/stats_counters.h b/base/stats_counters.h index bb87e61..b328736 100644 --- a/base/stats_counters.h +++ b/base/stats_counters.h @@ -5,6 +5,7 @@ #ifndef BASE_STATS_COUNTERS_H__ #define BASE_STATS_COUNTERS_H__ +#pragma once #include #include "base/stats_table.h" diff --git a/base/stats_table.h b/base/stats_table.h index fd112fa..3522876 100644 --- a/base/stats_table.h +++ b/base/stats_table.h @@ -19,6 +19,7 @@ #ifndef BASE_STATS_TABLE_H__ #define BASE_STATS_TABLE_H__ +#pragma once #include #include "base/basictypes.h" diff --git a/base/stl_util-inl.h b/base/stl_util-inl.h index 4abc0d2..2161c59 100644 --- a/base/stl_util-inl.h +++ b/base/stl_util-inl.h @@ -7,6 +7,7 @@ #ifndef BASE_STL_UTIL_INL_H_ #define BASE_STL_UTIL_INL_H_ +#pragma once #include // for memcpy #include diff --git a/base/string16.h b/base/string16.h index 28cf3d8..78734fd 100644 --- a/base/string16.h +++ b/base/string16.h @@ -4,6 +4,7 @@ #ifndef BASE_STRING16_H_ #define BASE_STRING16_H_ +#pragma once // WHAT: // A version of std::basic_string that provides 2-byte characters even when diff --git a/base/string_piece.h b/base/string_piece.h index 5b4bf40..70c0480 100644 --- a/base/string_piece.h +++ b/base/string_piece.h @@ -17,6 +17,7 @@ #ifndef BASE_STRING_PIECE_H_ #define BASE_STRING_PIECE_H_ +#pragma once #include #include diff --git a/base/string_split.h b/base/string_split.h index 3e7881f..d36a71f 100644 --- a/base/string_split.h +++ b/base/string_split.h @@ -4,6 +4,7 @@ #ifndef BASE_STRING_SPLIT_H_ #define BASE_STRING_SPLIT_H_ +#pragma once #include #include diff --git a/base/string_tokenizer.h b/base/string_tokenizer.h index cf2dacf..a274fd1 100644 --- a/base/string_tokenizer.h +++ b/base/string_tokenizer.h @@ -4,6 +4,7 @@ #ifndef BASE_STRING_TOKENIZER_H_ #define BASE_STRING_TOKENIZER_H_ +#pragma once #include #include diff --git a/base/string_util.h b/base/string_util.h index d7c5635..8e3ae83 100644 --- a/base/string_util.h +++ b/base/string_util.h @@ -6,6 +6,7 @@ #ifndef BASE_STRING_UTIL_H_ #define BASE_STRING_UTIL_H_ +#pragma once #include // va_list diff --git a/base/string_util_posix.h b/base/string_util_posix.h index 75cf4b4..6053ada 100644 --- a/base/string_util_posix.h +++ b/base/string_util_posix.h @@ -4,6 +4,7 @@ #ifndef BASE_STRING_UTIL_POSIX_H_ #define BASE_STRING_UTIL_POSIX_H_ +#pragma once #include #include diff --git a/base/string_util_win.h b/base/string_util_win.h index 124238c..8836f74 100644 --- a/base/string_util_win.h +++ b/base/string_util_win.h @@ -4,6 +4,7 @@ #ifndef BASE_STRING_UTIL_WIN_H_ #define BASE_STRING_UTIL_WIN_H_ +#pragma once #include #include diff --git a/base/sync_socket.h b/base/sync_socket.h index a44c445..1408b47 100644 --- a/base/sync_socket.h +++ b/base/sync_socket.h @@ -4,6 +4,7 @@ #ifndef BASE_SYNC_SOCKET_H_ #define BASE_SYNC_SOCKET_H_ +#pragma once // A socket abstraction used for sending and receiving plain // data. Because they are blocking, they can be used to perform diff --git a/base/sys_info.h b/base/sys_info.h index 1bb4eca..adfb250 100644 --- a/base/sys_info.h +++ b/base/sys_info.h @@ -4,6 +4,7 @@ #ifndef BASE_SYS_INFO_H_ #define BASE_SYS_INFO_H_ +#pragma once #include "base/basictypes.h" diff --git a/base/sys_string_conversions.h b/base/sys_string_conversions.h index edf4dd2..a96a687 100644 --- a/base/sys_string_conversions.h +++ b/base/sys_string_conversions.h @@ -4,6 +4,7 @@ #ifndef BASE_SYS_STRING_CONVERSIONS_H_ #define BASE_SYS_STRING_CONVERSIONS_H_ +#pragma once // Provides system-dependent string type conversions for cases where it's // necessary to not use ICU. Generally, you should not need this in Chrome, diff --git a/base/task.h b/base/task.h index 0cff589..e303a83 100644 --- a/base/task.h +++ b/base/task.h @@ -4,6 +4,7 @@ #ifndef BASE_TASK_H_ #define BASE_TASK_H_ +#pragma once #include "base/non_thread_safe.h" #include "base/raw_scoped_refptr_mismatch_checker.h" diff --git a/base/template_util.h b/base/template_util.h index 69702f3..ab9c35e 100644 --- a/base/template_util.h +++ b/base/template_util.h @@ -4,6 +4,7 @@ #ifndef BASE_TEMPLATE_UTIL_H_ #define BASE_TEMPLATE_UTIL_H_ +#pragma once namespace base { diff --git a/base/test/perf_test_suite.h b/base/test/perf_test_suite.h index 896659b..8838462 100644 --- a/base/test/perf_test_suite.h +++ b/base/test/perf_test_suite.h @@ -4,6 +4,7 @@ #ifndef BASE_TEST_PERF_TEST_SUITE_H_ #define BASE_TEST_PERF_TEST_SUITE_H_ +#pragma once #include "base/command_line.h" #include "base/debug_util.h" diff --git a/base/test/test_file_util.h b/base/test/test_file_util.h index fc1c4d5..8161d13 100644 --- a/base/test/test_file_util.h +++ b/base/test/test_file_util.h @@ -4,6 +4,7 @@ #ifndef BASE_TEST_TEST_FILE_UTIL_H_ #define BASE_TEST_TEST_FILE_UTIL_H_ +#pragma once // File utility functions used only by tests. diff --git a/base/test/test_suite.h b/base/test/test_suite.h index ff6f131..ce40d9a 100644 --- a/base/test/test_suite.h +++ b/base/test/test_suite.h @@ -4,6 +4,7 @@ #ifndef BASE_TEST_TEST_SUITE_H_ #define BASE_TEST_TEST_SUITE_H_ +#pragma once // Defines a basic test suite framework for running gtest based tests. You can // instantiate this class in your main function and call its Run method to run diff --git a/base/thread.h b/base/thread.h index 351a671..cf8a69a 100644 --- a/base/thread.h +++ b/base/thread.h @@ -4,6 +4,7 @@ #ifndef BASE_THREAD_H_ #define BASE_THREAD_H_ +#pragma once #include diff --git a/base/thread_collision_warner.h b/base/thread_collision_warner.h index 509ee5d..1e14d1a 100644 --- a/base/thread_collision_warner.h +++ b/base/thread_collision_warner.h @@ -4,6 +4,7 @@ #ifndef BASE_THREAD_COLLISION_WARNER_H_ #define BASE_THREAD_COLLISION_WARNER_H_ +#pragma once #include diff --git a/base/thread_local.h b/base/thread_local.h index ec53da5..3227c83 100644 --- a/base/thread_local.h +++ b/base/thread_local.h @@ -47,6 +47,7 @@ #ifndef BASE_THREAD_LOCAL_H_ #define BASE_THREAD_LOCAL_H_ +#pragma once #include "base/basictypes.h" diff --git a/base/thread_local_storage.h b/base/thread_local_storage.h index 6e693a0..b37a53c 100644 --- a/base/thread_local_storage.h +++ b/base/thread_local_storage.h @@ -4,6 +4,7 @@ #ifndef BASE_THREAD_LOCAL_STORAGE_H_ #define BASE_THREAD_LOCAL_STORAGE_H_ +#pragma once #include "base/basictypes.h" diff --git a/base/time.h b/base/time.h index 98a711d..8d92e75 100644 --- a/base/time.h +++ b/base/time.h @@ -21,6 +21,7 @@ #ifndef BASE_TIME_H_ #define BASE_TIME_H_ +#pragma once #include diff --git a/base/timer.h b/base/timer.h index a6d18bc..0de7c79 100644 --- a/base/timer.h +++ b/base/timer.h @@ -40,6 +40,7 @@ #ifndef BASE_TIMER_H_ #define BASE_TIMER_H_ +#pragma once // IMPORTANT: If you change timer code, make sure that all tests (including // disabled ones) from timer_unittests.cc pass locally. Some are disabled diff --git a/base/trace_event.h b/base/trace_event.h index ff2119a..caa260d 100644 --- a/base/trace_event.h +++ b/base/trace_event.h @@ -14,6 +14,7 @@ #ifndef BASE_TRACE_EVENT_H_ #define BASE_TRACE_EVENT_H_ +#pragma once #include "build/build_config.h" diff --git a/base/trace_event_win.h b/base/trace_event_win.h index 14f768f..77ab3fb 100644 --- a/base/trace_event_win.h +++ b/base/trace_event_win.h @@ -5,6 +5,7 @@ // This file contains the Windows-specific declarations for trace_event.h. #ifndef BASE_TRACE_EVENT_WIN_H_ #define BASE_TRACE_EVENT_WIN_H_ +#pragma once #include #include "base/event_trace_provider_win.h" diff --git a/base/tracked.h b/base/tracked.h index af904c1..7af05ff 100644 --- a/base/tracked.h +++ b/base/tracked.h @@ -17,6 +17,7 @@ #ifndef BASE_TRACKED_H_ #define BASE_TRACKED_H_ +#pragma once #include diff --git a/base/tracked_objects.h b/base/tracked_objects.h index 48e2b5a..0b672ba 100644 --- a/base/tracked_objects.h +++ b/base/tracked_objects.h @@ -4,6 +4,7 @@ #ifndef BASE_TRACKED_OBJECTS_H_ #define BASE_TRACKED_OBJECTS_H_ +#pragma once #include #include diff --git a/base/tuple.h b/base/tuple.h index d17d9f5..bcd2ad4 100644 --- a/base/tuple.h +++ b/base/tuple.h @@ -28,6 +28,7 @@ #ifndef BASE_TUPLE_H__ #define BASE_TUPLE_H__ +#pragma once // Traits ---------------------------------------------------------------------- // diff --git a/base/unix_domain_socket_posix.h b/base/unix_domain_socket_posix.h index ecf6cfb..020127a 100644 --- a/base/unix_domain_socket_posix.h +++ b/base/unix_domain_socket_posix.h @@ -4,6 +4,7 @@ #ifndef BASE_UNIX_DOMAIN_SOCKET_POSIX_H_ #define BASE_UNIX_DOMAIN_SOCKET_POSIX_H_ +#pragma once #include #include diff --git a/base/utf_offset_string_conversions.h b/base/utf_offset_string_conversions.h index 0a1a682..b20e4b1 100644 --- a/base/utf_offset_string_conversions.h +++ b/base/utf_offset_string_conversions.h @@ -4,6 +4,7 @@ #ifndef BASE_UTF_OFFSET_STRING_CONVERSIONS_H_ #define BASE_UTF_OFFSET_STRING_CONVERSIONS_H_ +#pragma once #include diff --git a/base/utf_string_conversion_utils.h b/base/utf_string_conversion_utils.h index 0c02d82..a34c9ae 100644 --- a/base/utf_string_conversion_utils.h +++ b/base/utf_string_conversion_utils.h @@ -4,6 +4,7 @@ #ifndef BASE_UTF_STRING_CONVERSION_UTILS_H_ #define BASE_UTF_STRING_CONVERSION_UTILS_H_ +#pragma once // This should only be used by the various UTF string conversion files. diff --git a/base/utf_string_conversions.h b/base/utf_string_conversions.h index 57a22e7..0ffd480 100644 --- a/base/utf_string_conversions.h +++ b/base/utf_string_conversions.h @@ -4,6 +4,7 @@ #ifndef BASE_UTF_STRING_CONVERSIONS_H_ #define BASE_UTF_STRING_CONVERSIONS_H_ +#pragma once #include diff --git a/base/values.h b/base/values.h index ea8a3ca..32d8a18 100644 --- a/base/values.h +++ b/base/values.h @@ -20,6 +20,7 @@ #ifndef BASE_VALUES_H_ #define BASE_VALUES_H_ +#pragma once #include #include diff --git a/base/version.h b/base/version.h index 776ebe6..99e6650 100644 --- a/base/version.h +++ b/base/version.h @@ -4,6 +4,7 @@ #ifndef BASE_VERSION_H_ #define BASE_VERSION_H_ +#pragma once #include #include diff --git a/base/waitable_event.h b/base/waitable_event.h index 8f5962f..0a82655 100644 --- a/base/waitable_event.h +++ b/base/waitable_event.h @@ -4,6 +4,7 @@ #ifndef BASE_WAITABLE_EVENT_H_ #define BASE_WAITABLE_EVENT_H_ +#pragma once #include "base/basictypes.h" diff --git a/base/waitable_event_watcher.h b/base/waitable_event_watcher.h index c6309f4..b6f5e9e 100644 --- a/base/waitable_event_watcher.h +++ b/base/waitable_event_watcher.h @@ -4,6 +4,7 @@ #ifndef BASE_WAITABLE_EVENT_WATCHER_H_ #define BASE_WAITABLE_EVENT_WATCHER_H_ +#pragma once #include "build/build_config.h" diff --git a/base/watchdog.h b/base/watchdog.h index fa60316..fd8f444 100644 --- a/base/watchdog.h +++ b/base/watchdog.h @@ -17,6 +17,7 @@ #ifndef BASE_WATCHDOG_H__ #define BASE_WATCHDOG_H__ +#pragma once #include diff --git a/base/weak_ptr.h b/base/weak_ptr.h index 6dbc9e2..a4222f3 100644 --- a/base/weak_ptr.h +++ b/base/weak_ptr.h @@ -50,6 +50,7 @@ #ifndef BASE_WEAK_PTR_H_ #define BASE_WEAK_PTR_H_ +#pragma once #include "base/logging.h" #include "base/non_thread_safe.h" diff --git a/base/win_util.h b/base/win_util.h index 32dea21..3a33732 100644 --- a/base/win_util.h +++ b/base/win_util.h @@ -4,6 +4,7 @@ #ifndef BASE_WIN_UTIL_H__ #define BASE_WIN_UTIL_H__ +#pragma once #include #include diff --git a/base/wmi_util.h b/base/wmi_util.h index 18585ae..7d4fed0 100644 --- a/base/wmi_util.h +++ b/base/wmi_util.h @@ -19,6 +19,7 @@ #ifndef BASE_WMI_UTIL_H__ #define BASE_WMI_UTIL_H__ +#pragma once #include #include diff --git a/base/worker_pool.h b/base/worker_pool.h index ef7d679..e0b75a9 100644 --- a/base/worker_pool.h +++ b/base/worker_pool.h @@ -4,6 +4,7 @@ #ifndef BASE_WORKER_POOL_H_ #define BASE_WORKER_POOL_H_ +#pragma once #include "base/tracked.h" diff --git a/base/worker_pool_linux.h b/base/worker_pool_linux.h index a9cd894..e8c1931 100644 --- a/base/worker_pool_linux.h +++ b/base/worker_pool_linux.h @@ -23,6 +23,7 @@ #ifndef BASE_WORKER_POOL_LINUX_H_ #define BASE_WORKER_POOL_LINUX_H_ +#pragma once #include #include diff --git a/base/worker_pool_mac.h b/base/worker_pool_mac.h index 7c67e45..85cab8b 100644 --- a/base/worker_pool_mac.h +++ b/base/worker_pool_mac.h @@ -4,6 +4,7 @@ #ifndef BASE_WORKER_POOL_MAC_H_ #define BASE_WORKER_POOL_MAC_H_ +#pragma once #include "base/worker_pool.h" diff --git a/base/xdg_util.h b/base/xdg_util.h index b69ce51..33d81d8 100644 --- a/base/xdg_util.h +++ b/base/xdg_util.h @@ -4,6 +4,7 @@ #ifndef BASE_XDG_UTIL_H_ #define BASE_XDG_UTIL_H_ +#pragma once // XDG refers to http://en.wikipedia.org/wiki/Freedesktop.org . // This file contains utilities found across free desktop -- cgit v1.1