diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-26 23:08:24 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-26 23:08:24 +0000 |
commit | 32b76eff6f630b9bcc0fc3f3bad826f3d1217dda (patch) | |
tree | a5687726e4f145c715c73cbbff23e88ac2192eb9 /net/disk_cache | |
parent | 7cf4d5505378a983947d8c989841f1f378f19cde (diff) | |
download | chromium_src-32b76eff6f630b9bcc0fc3f3bad826f3d1217dda.zip chromium_src-32b76eff6f630b9bcc0fc3f3bad826f3d1217dda.tar.gz chromium_src-32b76eff6f630b9bcc0fc3f3bad826f3d1217dda.tar.bz2 |
`#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
Diffstat (limited to 'net/disk_cache')
30 files changed, 30 insertions, 0 deletions
diff --git a/net/disk_cache/addr.h b/net/disk_cache/addr.h index 938a442..c10dcc3 100644 --- a/net/disk_cache/addr.h +++ b/net/disk_cache/addr.h @@ -7,6 +7,7 @@ #ifndef NET_DISK_CACHE_ADDR_H_ #define NET_DISK_CACHE_ADDR_H_ +#pragma once #include "net/disk_cache/disk_format.h" diff --git a/net/disk_cache/backend_impl.h b/net/disk_cache/backend_impl.h index 98fc16d..d67dad9 100644 --- a/net/disk_cache/backend_impl.h +++ b/net/disk_cache/backend_impl.h @@ -6,6 +6,7 @@ #ifndef NET_DISK_CACHE_BACKEND_IMPL_H_ #define NET_DISK_CACHE_BACKEND_IMPL_H_ +#pragma once #include "base/file_path.h" #include "base/hash_tables.h" diff --git a/net/disk_cache/bitmap.h b/net/disk_cache/bitmap.h index 4d38f83..8e24e15 100644 --- a/net/disk_cache/bitmap.h +++ b/net/disk_cache/bitmap.h @@ -4,6 +4,7 @@ #ifndef NET_DISK_CACHE_BITMAP_H_ #define NET_DISK_CACHE_BITMAP_H_ +#pragma once #include <algorithm> diff --git a/net/disk_cache/block_files.h b/net/disk_cache/block_files.h index 3ed19de..0625d2a 100644 --- a/net/disk_cache/block_files.h +++ b/net/disk_cache/block_files.h @@ -6,6 +6,7 @@ #ifndef NET_DISK_CACHE_BLOCK_FILES_H__ #define NET_DISK_CACHE_BLOCK_FILES_H__ +#pragma once #include <vector> diff --git a/net/disk_cache/cache_util.h b/net/disk_cache/cache_util.h index cb78f16..f30e70a 100644 --- a/net/disk_cache/cache_util.h +++ b/net/disk_cache/cache_util.h @@ -4,6 +4,7 @@ #ifndef NET_DISK_CACHE_CACHE_UTIL_H_ #define NET_DISK_CACHE_CACHE_UTIL_H_ +#pragma once #include <string> diff --git a/net/disk_cache/disk_cache.h b/net/disk_cache/disk_cache.h index b2d76a4..59efe06 100644 --- a/net/disk_cache/disk_cache.h +++ b/net/disk_cache/disk_cache.h @@ -7,6 +7,7 @@ #ifndef NET_DISK_CACHE_DISK_CACHE_H_ #define NET_DISK_CACHE_DISK_CACHE_H_ +#pragma once #include <string> #include <vector> diff --git a/net/disk_cache/disk_cache_test_base.h b/net/disk_cache/disk_cache_test_base.h index 6c6b54b..4bcc2cb 100644 --- a/net/disk_cache/disk_cache_test_base.h +++ b/net/disk_cache/disk_cache_test_base.h @@ -4,6 +4,7 @@ #ifndef NET_DISK_CACHE_DISK_CACHE_TEST_BASE_H_ #define NET_DISK_CACHE_DISK_CACHE_TEST_BASE_H_ +#pragma once #include "base/basictypes.h" #include "base/thread.h" diff --git a/net/disk_cache/disk_cache_test_util.h b/net/disk_cache/disk_cache_test_util.h index 7249ee0..f55905b 100644 --- a/net/disk_cache/disk_cache_test_util.h +++ b/net/disk_cache/disk_cache_test_util.h @@ -4,6 +4,7 @@ #ifndef NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_ #define NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_ +#pragma once #include <string> diff --git a/net/disk_cache/disk_format.h b/net/disk_cache/disk_format.h index 619bd89..ac4c6348 100644 --- a/net/disk_cache/disk_format.h +++ b/net/disk_cache/disk_format.h @@ -54,6 +54,7 @@ #ifndef NET_DISK_CACHE_DISK_FORMAT_H_ #define NET_DISK_CACHE_DISK_FORMAT_H_ +#pragma once #include "base/basictypes.h" diff --git a/net/disk_cache/entry_impl.h b/net/disk_cache/entry_impl.h index 9d37fff3a..73fb481 100644 --- a/net/disk_cache/entry_impl.h +++ b/net/disk_cache/entry_impl.h @@ -4,6 +4,7 @@ #ifndef NET_DISK_CACHE_ENTRY_IMPL_H_ #define NET_DISK_CACHE_ENTRY_IMPL_H_ +#pragma once #include "base/scoped_ptr.h" #include "net/disk_cache/disk_cache.h" diff --git a/net/disk_cache/errors.h b/net/disk_cache/errors.h index 4bf6f72..723b566 100644 --- a/net/disk_cache/errors.h +++ b/net/disk_cache/errors.h @@ -6,6 +6,7 @@ #ifndef NET_DISK_CACHE_ERRORS_H__ #define NET_DISK_CACHE_ERRORS_H__ +#pragma once namespace disk_cache { diff --git a/net/disk_cache/eviction.h b/net/disk_cache/eviction.h index 76ee00b..69736ea 100644 --- a/net/disk_cache/eviction.h +++ b/net/disk_cache/eviction.h @@ -4,6 +4,7 @@ #ifndef NET_DISK_CACHE_EVICTION_H_ #define NET_DISK_CACHE_EVICTION_H_ +#pragma once #include "base/basictypes.h" #include "base/compiler_specific.h" diff --git a/net/disk_cache/file.h b/net/disk_cache/file.h index 76c2f79..5e1c276 100644 --- a/net/disk_cache/file.h +++ b/net/disk_cache/file.h @@ -6,6 +6,7 @@ #ifndef NET_DISK_CACHE_FILE_H_ #define NET_DISK_CACHE_FILE_H_ +#pragma once #include <string> diff --git a/net/disk_cache/file_block.h b/net/disk_cache/file_block.h index 2570920..7d453e5 100644 --- a/net/disk_cache/file_block.h +++ b/net/disk_cache/file_block.h @@ -6,6 +6,7 @@ #ifndef NET_DISK_CACHE_FILE_BLOCK_H__ #define NET_DISK_CACHE_FILE_BLOCK_H__ +#pragma once namespace disk_cache { diff --git a/net/disk_cache/file_lock.h b/net/disk_cache/file_lock.h index 3ebed76..2c560ef 100644 --- a/net/disk_cache/file_lock.h +++ b/net/disk_cache/file_lock.h @@ -6,6 +6,7 @@ #ifndef NET_DISK_CACHE_FILE_LOCK_H__ #define NET_DISK_CACHE_FILE_LOCK_H__ +#pragma once #include "net/disk_cache/disk_format.h" diff --git a/net/disk_cache/hash.h b/net/disk_cache/hash.h index bf35c26..01e0058 100644 --- a/net/disk_cache/hash.h +++ b/net/disk_cache/hash.h @@ -4,6 +4,7 @@ #ifndef NET_DISK_CACHE_HASH_H__ #define NET_DISK_CACHE_HASH_H__ +#pragma once #include <string> diff --git a/net/disk_cache/histogram_macros.h b/net/disk_cache/histogram_macros.h index 361a9d6..2b8af4b 100644 --- a/net/disk_cache/histogram_macros.h +++ b/net/disk_cache/histogram_macros.h @@ -10,6 +10,7 @@ #ifndef NET_DISK_CACHE_HISTOGRAM_MACROS_H_ #define NET_DISK_CACHE_HISTOGRAM_MACROS_H_ +#pragma once // ----------------------------------------------------------------------------- diff --git a/net/disk_cache/in_flight_backend_io.h b/net/disk_cache/in_flight_backend_io.h index 1cd0d41..083c6fd 100644 --- a/net/disk_cache/in_flight_backend_io.h +++ b/net/disk_cache/in_flight_backend_io.h @@ -4,6 +4,7 @@ #ifndef NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ #define NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ +#pragma once #include <list> #include <string> diff --git a/net/disk_cache/in_flight_io.h b/net/disk_cache/in_flight_io.h index 4486f44..70a3d8c 100644 --- a/net/disk_cache/in_flight_io.h +++ b/net/disk_cache/in_flight_io.h @@ -4,6 +4,7 @@ #ifndef NET_DISK_CACHE_IN_FLIGHT_IO_H_ #define NET_DISK_CACHE_IN_FLIGHT_IO_H_ +#pragma once #include <set> diff --git a/net/disk_cache/mapped_file.h b/net/disk_cache/mapped_file.h index 5b34141..2c7d6e6 100644 --- a/net/disk_cache/mapped_file.h +++ b/net/disk_cache/mapped_file.h @@ -6,6 +6,7 @@ #ifndef NET_DISK_CACHE_MAPPED_FILE_H_ #define NET_DISK_CACHE_MAPPED_FILE_H_ +#pragma once #include <string> diff --git a/net/disk_cache/mem_backend_impl.h b/net/disk_cache/mem_backend_impl.h index c5e947f..62ed3c5 100644 --- a/net/disk_cache/mem_backend_impl.h +++ b/net/disk_cache/mem_backend_impl.h @@ -6,6 +6,7 @@ #ifndef NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ #define NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ +#pragma once #include "base/hash_tables.h" diff --git a/net/disk_cache/mem_entry_impl.h b/net/disk_cache/mem_entry_impl.h index 66535d5..573a306 100644 --- a/net/disk_cache/mem_entry_impl.h +++ b/net/disk_cache/mem_entry_impl.h @@ -4,6 +4,7 @@ #ifndef NET_DISK_CACHE_MEM_ENTRY_IMPL_H_ #define NET_DISK_CACHE_MEM_ENTRY_IMPL_H_ +#pragma once #include "base/hash_tables.h" #include "base/scoped_ptr.h" diff --git a/net/disk_cache/mem_rankings.h b/net/disk_cache/mem_rankings.h index fa90688..166224f 100644 --- a/net/disk_cache/mem_rankings.h +++ b/net/disk_cache/mem_rankings.h @@ -6,6 +6,7 @@ #ifndef NET_DISK_CACHE_MEM_RANKINGS_H__ #define NET_DISK_CACHE_MEM_RANKINGS_H__ +#pragma once #include "base/basictypes.h" diff --git a/net/disk_cache/rankings.h b/net/disk_cache/rankings.h index f635355..8347b4c 100644 --- a/net/disk_cache/rankings.h +++ b/net/disk_cache/rankings.h @@ -6,6 +6,7 @@ #ifndef NET_DISK_CACHE_RANKINGS_H_ #define NET_DISK_CACHE_RANKINGS_H_ +#pragma once #include <list> diff --git a/net/disk_cache/sparse_control.h b/net/disk_cache/sparse_control.h index b88f258..88a012b 100644 --- a/net/disk_cache/sparse_control.h +++ b/net/disk_cache/sparse_control.h @@ -4,6 +4,7 @@ #ifndef NET_DISK_CACHE_SPARSE_CONTROL_H_ #define NET_DISK_CACHE_SPARSE_CONTROL_H_ +#pragma once #include <string> #include <vector> diff --git a/net/disk_cache/stats.h b/net/disk_cache/stats.h index 13536b1..19dac58 100644 --- a/net/disk_cache/stats.h +++ b/net/disk_cache/stats.h @@ -4,6 +4,7 @@ #ifndef NET_DISK_CACHE_STATS_H_ #define NET_DISK_CACHE_STATS_H_ +#pragma once #include <string> #include <vector> diff --git a/net/disk_cache/stats_histogram.h b/net/disk_cache/stats_histogram.h index 995d486..1c2e15a 100644 --- a/net/disk_cache/stats_histogram.h +++ b/net/disk_cache/stats_histogram.h @@ -4,6 +4,7 @@ #ifndef NET_DISK_CACHE_STATS_HISTOGRAM_H_ #define NET_DISK_CACHE_STATS_HISTOGRAM_H_ +#pragma once #include <string> diff --git a/net/disk_cache/storage_block-inl.h b/net/disk_cache/storage_block-inl.h index 5e026a7..e2f4b3c 100644 --- a/net/disk_cache/storage_block-inl.h +++ b/net/disk_cache/storage_block-inl.h @@ -4,6 +4,7 @@ #ifndef NET_DISK_CACHE_STORAGE_BLOCK_INL_H_ #define NET_DISK_CACHE_STORAGE_BLOCK_INL_H_ +#pragma once #include "net/disk_cache/storage_block.h" diff --git a/net/disk_cache/storage_block.h b/net/disk_cache/storage_block.h index e77c5bb..ab7cd41 100644 --- a/net/disk_cache/storage_block.h +++ b/net/disk_cache/storage_block.h @@ -6,6 +6,7 @@ #ifndef NET_DISK_CACHE_STORAGE_BLOCK_H__ #define NET_DISK_CACHE_STORAGE_BLOCK_H__ +#pragma once #include "net/disk_cache/addr.h" #include "net/disk_cache/mapped_file.h" diff --git a/net/disk_cache/trace.h b/net/disk_cache/trace.h index a431890..7a3d4bf 100644 --- a/net/disk_cache/trace.h +++ b/net/disk_cache/trace.h @@ -8,6 +8,7 @@ #ifndef NET_DISK_CACHE_TRACE_H__ #define NET_DISK_CACHE_TRACE_H__ +#pragma once #include <string> #include <vector> |