diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-16 20:02:42 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-16 20:02:42 +0000 |
commit | 7b38a2fd5a9bca974a355b409cf53c25881561b9 (patch) | |
tree | 63e1d1bf298af9be8008674ce0c5ac9238324005 | |
parent | 81862add7188f848a04aca893b6f595eedb82ffd (diff) | |
download | chromium_src-7b38a2fd5a9bca974a355b409cf53c25881561b9.zip chromium_src-7b38a2fd5a9bca974a355b409cf53c25881561b9.tar.gz chromium_src-7b38a2fd5a9bca974a355b409cf53c25881561b9.tar.bz2 |
Removed unneeded includes of base/time.h.
Review URL: http://codereview.chromium.org/48019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11766 0039d316-1c4b-4281-b951-d872f2087c98
28 files changed, 29 insertions, 31 deletions
diff --git a/base/condition_variable.h b/base/condition_variable.h index 5eb2c64..28f9352 100644 --- a/base/condition_variable.h +++ b/base/condition_variable.h @@ -66,7 +66,10 @@ #define BASE_CONDITION_VARIABLE_H_ #include "base/lock.h" -#include "base/time.h" + +namespace base { + class TimeDelta; +} class ConditionVariable { public: diff --git a/base/condition_variable_posix.cc b/base/condition_variable_posix.cc index 4f315b9..8c5a5c2 100644 --- a/base/condition_variable_posix.cc +++ b/base/condition_variable_posix.cc @@ -10,6 +10,7 @@ #include "base/lock.h" #include "base/lock_impl.h" #include "base/logging.h" +#include "base/time.h" using base::Time; using base::TimeDelta; diff --git a/base/condition_variable_win.cc b/base/condition_variable_win.cc index 71f4eb2..f48adb6 100644 --- a/base/condition_variable_win.cc +++ b/base/condition_variable_win.cc @@ -8,6 +8,7 @@ #include "base/lock.h" #include "base/logging.h" +#include "base/time.h" using base::TimeDelta; diff --git a/base/event_recorder.cc b/base/event_recorder.cc index 0f1fb21..3bcd0e26 100644 --- a/base/event_recorder.cc +++ b/base/event_recorder.cc @@ -10,7 +10,6 @@ #include "base/event_recorder.h" #include "base/file_util.h" #include "base/logging.h" -#include "base/time.h" // A note about time. // For perfect playback of events, you'd like a very accurate timer diff --git a/base/message_pump_mac.h b/base/message_pump_mac.h index 20b4a0e..79aebb0 100644 --- a/base/message_pump_mac.h +++ b/base/message_pump_mac.h @@ -34,10 +34,10 @@ #include <CoreFoundation/CoreFoundation.h> -#include "base/time.h" - namespace base { +class Time; + class MessagePumpCFRunLoopBase : public MessagePump { public: MessagePumpCFRunLoopBase(); diff --git a/base/message_pump_mac.mm b/base/message_pump_mac.mm index 1400a78..3328bc9 100644 --- a/base/message_pump_mac.mm +++ b/base/message_pump_mac.mm @@ -9,6 +9,7 @@ #include <float.h> #include "base/scoped_nsautorelease_pool.h" +#include "base/time.h" namespace { diff --git a/base/process_util_linux.cc b/base/process_util_linux.cc index 2253ff2..7e43885 100644 --- a/base/process_util_linux.cc +++ b/base/process_util_linux.cc @@ -16,7 +16,6 @@ #include "base/logging.h" #include "base/string_tokenizer.h" #include "base/string_util.h" -#include "base/time.h" namespace { diff --git a/chrome/browser/bookmarks/bookmark_folder_tree_model_unittest.cc b/chrome/browser/bookmarks/bookmark_folder_tree_model_unittest.cc index 97f4feb..3fb7567 100644 --- a/chrome/browser/bookmarks/bookmark_folder_tree_model_unittest.cc +++ b/chrome/browser/bookmarks/bookmark_folder_tree_model_unittest.cc @@ -3,7 +3,6 @@ // found in the LICENSE file. #include "base/string_util.h" -#include "base/time.h" #include "chrome/browser/bookmarks/bookmark_folder_tree_model.h" #include "chrome/test/testing_profile.h" #include "chrome/views/tree_view.h" diff --git a/chrome/browser/bookmarks/bookmark_table_model.cc b/chrome/browser/bookmarks/bookmark_table_model.cc index a88bb81..a95f898 100644 --- a/chrome/browser/bookmarks/bookmark_table_model.cc +++ b/chrome/browser/bookmarks/bookmark_table_model.cc @@ -7,7 +7,6 @@ #include <limits> #include "base/string_util.h" -#include "base/time.h" #include "base/time_format.h" #include "chrome/browser/bookmarks/bookmark_utils.h" #include "chrome/common/l10n_util.h" diff --git a/chrome/browser/dom_ui/downloads_ui.cc b/chrome/browser/dom_ui/downloads_ui.cc index cf9729a..f8d9515 100644 --- a/chrome/browser/dom_ui/downloads_ui.cc +++ b/chrome/browser/dom_ui/downloads_ui.cc @@ -7,7 +7,6 @@ #include "base/gfx/png_encoder.h" #include "base/string_piece.h" #include "base/thread.h" -#include "base/time.h" #include "base/time_format.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/dom_ui/fileicon_source.h" @@ -23,8 +22,6 @@ #include "grit/browser_resources.h" #include "grit/generated_resources.h" -using base::Time; - // DownloadsUI is accessible from chrome-ui://downloads. static const char kDownloadsHost[] = "downloads"; diff --git a/chrome/browser/download/save_package.h b/chrome/browser/download/save_package.h index deaeca5..447ab67 100644 --- a/chrome/browser/download/save_package.h +++ b/chrome/browser/download/save_package.h @@ -15,7 +15,6 @@ #include "base/gfx/native_widget_types.h" #include "base/hash_tables.h" #include "base/ref_counted.h" -#include "base/time.h" #include "chrome/common/pref_member.h" #include "chrome/browser/download/save_item.h" #include "chrome/browser/download/save_types.h" diff --git a/chrome/browser/history/history.h b/chrome/browser/history/history.h index 37ade4f..d47f12f 100644 --- a/chrome/browser/history/history.h +++ b/chrome/browser/history/history.h @@ -15,7 +15,6 @@ #include "base/ref_counted.h" #include "base/scoped_ptr.h" #include "base/task.h" -#include "base/time.h" #include "chrome/browser/cancelable_request.h" #include "chrome/browser/history/history_notifications.h" #include "chrome/browser/history/history_types.h" @@ -39,6 +38,10 @@ class Profile; class SkBitmap; struct ThumbnailScore; +namespace base { + class Time; +} + namespace history { class InMemoryHistoryBackend; diff --git a/chrome/browser/history/visit_tracker.h b/chrome/browser/history/visit_tracker.h index db4a59e..d111187 100644 --- a/chrome/browser/history/visit_tracker.h +++ b/chrome/browser/history/visit_tracker.h @@ -9,7 +9,6 @@ #include <map> #include "base/basictypes.h" -#include "base/time.h" #include "chrome/browser/history/history_types.h" namespace history { diff --git a/chrome/browser/importer/firefox_importer_utils.cc b/chrome/browser/importer/firefox_importer_utils.cc index 2d89038..c595659 100644 --- a/chrome/browser/importer/firefox_importer_utils.cc +++ b/chrome/browser/importer/firefox_importer_utils.cc @@ -14,7 +14,6 @@ #include "base/logging.h" #include "base/string_util.h" #include "base/sys_string_conversions.h" -#include "base/time.h" #include "chrome/browser/search_engines/template_url.h" #include "chrome/browser/search_engines/template_url_model.h" #include "chrome/browser/search_engines/template_url_parser.h" diff --git a/chrome/browser/importer/importer.cc b/chrome/browser/importer/importer.cc index 2d3f924..42abf8f 100644 --- a/chrome/browser/importer/importer.cc +++ b/chrome/browser/importer/importer.cc @@ -10,7 +10,6 @@ #include "base/file_util.h" #include "base/gfx/png_encoder.h" #include "base/string_util.h" -#include "base/time.h" #include "chrome/browser/bookmarks/bookmark_model.h" #include "chrome/browser/browser.h" #include "chrome/browser/browser_list.h" diff --git a/chrome/browser/printing/printing_layout_uitest.cc b/chrome/browser/printing/printing_layout_uitest.cc index 10f9b07..c841309 100644 --- a/chrome/browser/printing/printing_layout_uitest.cc +++ b/chrome/browser/printing/printing_layout_uitest.cc @@ -9,7 +9,6 @@ #include "base/gfx/png_decoder.h" #include "base/gfx/png_encoder.h" #include "base/simple_thread.h" -#include "base/time.h" #include "base/win_util.h" #include "chrome/common/chrome_paths.h" #include "chrome/common/gfx/emf.h" @@ -20,9 +19,6 @@ #include "chrome/browser/printing/printing_test.h" #include "net/url_request/url_request_unittest.h" -using base::Time; -using base::TimeDelta; - namespace { const wchar_t* const kGenerateSwitch = L"print-layout-generate"; diff --git a/chrome/browser/safe_browsing/safe_browsing_database_bloom.h b/chrome/browser/safe_browsing/safe_browsing_database_bloom.h index 22b85a8..82d4937 100644 --- a/chrome/browser/safe_browsing/safe_browsing_database_bloom.h +++ b/chrome/browser/safe_browsing/safe_browsing_database_bloom.h @@ -16,12 +16,15 @@ #include "base/lock.h" #include "base/scoped_ptr.h" #include "base/task.h" -#include "base/time.h" #include "chrome/browser/safe_browsing/safe_browsing_database.h" #include "chrome/browser/safe_browsing/safe_browsing_util.h" #include "chrome/common/sqlite_compiled_statement.h" #include "chrome/common/sqlite_utils.h" +namespace base { + class Time; +} + // The reference implementation database using SQLite. class SafeBrowsingDatabaseBloom : public SafeBrowsingDatabase { public: diff --git a/chrome/browser/sessions/tab_restore_service.h b/chrome/browser/sessions/tab_restore_service.h index 2962cf5..b768385 100644 --- a/chrome/browser/sessions/tab_restore_service.h +++ b/chrome/browser/sessions/tab_restore_service.h @@ -9,7 +9,6 @@ #include <vector> #include "base/observer_list.h" -#include "base/time.h" #include "chrome/browser/sessions/base_session_service.h" #include "chrome/browser/sessions/session_id.h" #include "chrome/browser/sessions/session_types.h" diff --git a/chrome/browser/views/clear_browsing_data.h b/chrome/browser/views/clear_browsing_data.h index 24fe15c..02e60d5 100644 --- a/chrome/browser/views/clear_browsing_data.h +++ b/chrome/browser/views/clear_browsing_data.h @@ -5,7 +5,6 @@ #ifndef CHROME_BROWSER_VIEWS_CLEAR_BROWSING_DATA_H__ #define CHROME_BROWSER_VIEWS_CLEAR_BROWSING_DATA_H__ -#include "base/time.h" #include "chrome/browser/browsing_data_remover.h" #include "chrome/views/combo_box.h" #include "chrome/views/dialog_delegate.h" diff --git a/chrome/browser/views/tabs/tab_dragging_test.cc b/chrome/browser/views/tabs/tab_dragging_test.cc index 919df66..c0471c8 100644 --- a/chrome/browser/views/tabs/tab_dragging_test.cc +++ b/chrome/browser/views/tabs/tab_dragging_test.cc @@ -4,7 +4,6 @@ #include "base/command_line.h" #include "base/file_util.h" -#include "base/time.h" #include "chrome/app/chrome_dll_resource.h" #include "chrome/browser/view_ids.h" #include "chrome/common/chrome_paths.h" diff --git a/chrome/common/worker_thread_ticker.cc b/chrome/common/worker_thread_ticker.cc index 3cc877b..4351cae 100644 --- a/chrome/common/worker_thread_ticker.cc +++ b/chrome/common/worker_thread_ticker.cc @@ -8,7 +8,6 @@ #include "base/logging.h" #include "base/task.h" -#include "base/time.h" #include "base/thread.h" class WorkerThreadTicker::TimerTask : public Task { diff --git a/chrome/plugin/webplugin_delegate_stub.cc b/chrome/plugin/webplugin_delegate_stub.cc index ab98068..93d9fa3 100644 --- a/chrome/plugin/webplugin_delegate_stub.cc +++ b/chrome/plugin/webplugin_delegate_stub.cc @@ -5,7 +5,6 @@ #include "chrome/plugin/webplugin_delegate_stub.h" #include "base/command_line.h" -#include "base/time.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/gfx/emf.h" #include "chrome/common/plugin_messages.h" diff --git a/chrome/test/tab_switching/tab_switching_test.cc b/chrome/test/tab_switching/tab_switching_test.cc index bad83b3..182dfe6 100644 --- a/chrome/test/tab_switching/tab_switching_test.cc +++ b/chrome/test/tab_switching/tab_switching_test.cc @@ -4,7 +4,6 @@ #include "base/command_line.h" #include "base/file_util.h" -#include "base/time.h" #include "chrome/app/chrome_dll_resource.h" #include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_switches.h" diff --git a/media/base/pipeline.h b/media/base/pipeline.h index 2f20d65..f5b91ff 100644 --- a/media/base/pipeline.h +++ b/media/base/pipeline.h @@ -12,9 +12,12 @@ #include <string> #include "base/task.h" -#include "base/time.h" #include "media/base/factory.h" +namespace base { + class TimeDelta; +} + namespace media { // Error definitions for pipeline. All codes indicate an error except: diff --git a/media/base/pipeline_impl_unittest.cc b/media/base/pipeline_impl_unittest.cc index 86a6b07..8e300a1 100644 --- a/media/base/pipeline_impl_unittest.cc +++ b/media/base/pipeline_impl_unittest.cc @@ -4,7 +4,6 @@ #include <string> -#include "base/time.h" #include "base/waitable_event.h" #include "media/base/pipeline_impl.h" #include "media/base/media_format.h" diff --git a/net/base/tcp_pinger.h b/net/base/tcp_pinger.h index 24218d4..fe81c94 100644 --- a/net/base/tcp_pinger.h +++ b/net/base/tcp_pinger.h @@ -10,13 +10,16 @@ #include "base/scoped_ptr.h" #include "base/task.h" #include "base/thread.h" -#include "base/time.h" #include "base/waitable_event.h" #include "net/base/address_list.h" #include "net/base/completion_callback.h" #include "net/base/net_errors.h" #include "net/base/tcp_client_socket.h" +namespace base { + class TimeDelta; +} + namespace net { // Simple class to wait until a TCP server is accepting connections. diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h index dcc999e..a16080f 100644 --- a/net/url_request/url_request.h +++ b/net/url_request/url_request.h @@ -9,12 +9,15 @@ #include <vector> #include "base/ref_counted.h" -#include "base/time.h" #include "googleurl/src/gurl.h" #include "net/base/load_states.h" #include "net/http/http_response_info.h" #include "net/url_request/url_request_status.h" +namespace base { + class Time; +} + namespace net { class IOBuffer; diff --git a/webkit/default_plugin/plugin_impl_win.cc b/webkit/default_plugin/plugin_impl_win.cc index 28d1766..30c166f 100644 --- a/webkit/default_plugin/plugin_impl_win.cc +++ b/webkit/default_plugin/plugin_impl_win.cc @@ -9,7 +9,6 @@ #include "base/file_util.h" #include "base/path_service.h" #include "base/string_util.h" -#include "base/time.h" #include "googleurl/src/gurl.h" #include "grit/webkit_strings.h" #include "unicode/locid.h" |