diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 18:00:53 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 18:00:53 +0000 |
commit | 9349cfb12f1b27e30ebb5d4ffc994812cce26d59 (patch) | |
tree | c98a55495b06a5cd068c251d2e217cf89cef6c02 /chrome/browser | |
parent | 1c77d22487ac4759f29d329be7493228671bc05f (diff) | |
download | chromium_src-9349cfb12f1b27e30ebb5d4ffc994812cce26d59.zip chromium_src-9349cfb12f1b27e30ebb5d4ffc994812cce26d59.tar.gz chromium_src-9349cfb12f1b27e30ebb5d4ffc994812cce26d59.tar.bz2 |
FBTF: A giant cleanup to net/
This moves all sorts of code from h files to cc files and reduces header
dependencies.
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/3212008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58020 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
20 files changed, 43 insertions, 10 deletions
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc index 0b95a1f..a8ef344b 100644 --- a/chrome/browser/automation/testing_automation_provider.cc +++ b/chrome/browser/automation/testing_automation_provider.cc @@ -41,6 +41,7 @@ #include "chrome/common/notification_service.h" #include "chrome/common/url_constants.h" #include "chrome/test/automation/automation_messages.h" +#include "net/base/cookie_store.h" #include "net/url_request/url_request_context.h" #include "views/event.h" diff --git a/chrome/browser/chromeos/gview_request_interceptor.cc b/chrome/browser/chromeos/gview_request_interceptor.cc index dba4d9d..dee48fc 100644 --- a/chrome/browser/chromeos/gview_request_interceptor.cc +++ b/chrome/browser/chromeos/gview_request_interceptor.cc @@ -6,6 +6,7 @@ #include "base/file_path.h" #include "base/path_service.h" +#include "base/singleton.h" #include "chrome/common/chrome_paths.h" #include "net/base/escape.h" #include "net/base/load_flags.h" diff --git a/chrome/browser/dom_ui/mediaplayer_ui.cc b/chrome/browser/dom_ui/mediaplayer_ui.cc index 325a708..1dcfbdd 100644 --- a/chrome/browser/dom_ui/mediaplayer_ui.cc +++ b/chrome/browser/dom_ui/mediaplayer_ui.cc @@ -352,6 +352,9 @@ void MediaplayerHandler::HandleShowPlaylist(const ListValue* args) { // won't be deleted until it's last InvokeLater is run. DISABLE_RUNNABLE_METHOD_REFCOUNT(MediaPlayer); +MediaPlayer::~MediaPlayer() { +} + void MediaPlayer::EnqueueMediaURL(const GURL& url, Browser* creator) { if (!Enabled()) { return; diff --git a/chrome/browser/dom_ui/mediaplayer_ui.h b/chrome/browser/dom_ui/mediaplayer_ui.h index a076160..c339799 100644 --- a/chrome/browser/dom_ui/mediaplayer_ui.h +++ b/chrome/browser/dom_ui/mediaplayer_ui.h @@ -6,6 +6,7 @@ #define CHROME_BROWSER_DOM_UI_MEDIAPLAYER_UI_H_ #pragma once +#include <set> #include <vector> #include "base/singleton.h" @@ -25,7 +26,7 @@ class Browser; class MediaPlayer : public NotificationObserver, public URLRequest::Interceptor { public: - ~MediaPlayer() {} + ~MediaPlayer(); // Enqueues this url into the current playlist. If the mediaplayer is // not currently visible, show it, and play the given url. diff --git a/chrome/browser/importer/importer.cc b/chrome/browser/importer/importer.cc index 5280c13..2f1a893 100644 --- a/chrome/browser/importer/importer.cc +++ b/chrome/browser/importer/importer.cc @@ -6,6 +6,7 @@ #include "app/l10n_util.h" #include "base/thread.h" +#include "base/values.h" #include "chrome/browser/bookmarks/bookmark_model.h" #include "chrome/browser/browser_list.h" #include "chrome/browser/browser_process.h" diff --git a/chrome/browser/net/net_log_logger.cc b/chrome/browser/net/net_log_logger.cc index 14bac0b..e9905a7 100644 --- a/chrome/browser/net/net_log_logger.cc +++ b/chrome/browser/net/net_log_logger.cc @@ -5,6 +5,7 @@ #include "chrome/browser/net/net_log_logger.h" #include "base/json/json_writer.h" +#include "base/values.h" NetLogLogger::NetLogLogger() {} diff --git a/chrome/browser/net/url_request_mock_net_error_job.cc b/chrome/browser/net/url_request_mock_net_error_job.cc index bf31a92..a590833 100644 --- a/chrome/browser/net/url_request_mock_net_error_job.cc +++ b/chrome/browser/net/url_request_mock_net_error_job.cc @@ -12,6 +12,7 @@ #include "base/utf_string_conversions.h" #include "net/base/net_errors.h" #include "net/base/net_util.h" +#include "net/base/x509_certificate.h" #include "net/url_request/url_request_filter.h" // static diff --git a/chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc b/chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc index d7effc9..8d7733f 100644 --- a/chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc +++ b/chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc @@ -12,6 +12,7 @@ #include "base/string_util.h" #include "chrome/browser/chrome_thread.h" #include "chrome/common/chrome_switches.h" +#include "net/base/host_resolver.h" #include "net/base/net_errors.h" #include "net/websockets/websocket.h" diff --git a/chrome/browser/net/websocket_experiment/websocket_experiment_task.cc b/chrome/browser/net/websocket_experiment/websocket_experiment_task.cc index efc50c8..6cbc6cd 100644 --- a/chrome/browser/net/websocket_experiment/websocket_experiment_task.cc +++ b/chrome/browser/net/websocket_experiment/websocket_experiment_task.cc @@ -9,6 +9,7 @@ #include "chrome/browser/chrome_thread.h" #include "chrome/browser/profile.h" #include "chrome/common/net/url_request_context_getter.h" +#include "net/base/host_resolver.h" #include "net/base/load_flags.h" #include "net/base/net_errors.h" #include "net/websockets/websocket.h" diff --git a/chrome/browser/plugin_process_host.cc b/chrome/browser/plugin_process_host.cc index d833247..601fa60 100644 --- a/chrome/browser/plugin_process_host.cc +++ b/chrome/browser/plugin_process_host.cc @@ -35,6 +35,7 @@ #include "chrome/common/render_messages.h" #include "gfx/native_widget_types.h" #include "ipc/ipc_switches.h" +#include "net/base/cookie_store.h" #include "net/base/file_stream.h" #include "net/base/io_buffer.h" #include "net/url_request/url_request.h" diff --git a/chrome/browser/printing/print_dialog_cloud_uitest.cc b/chrome/browser/printing/print_dialog_cloud_uitest.cc index 1cdd073..f0ac4f1 100644 --- a/chrome/browser/printing/print_dialog_cloud_uitest.cc +++ b/chrome/browser/printing/print_dialog_cloud_uitest.cc @@ -11,6 +11,7 @@ #include "base/file_util.h" #include "base/path_service.h" #include "base/singleton.h" +#include "base/values.h" #include "chrome/browser/browser_list.h" #include "chrome/browser/chrome_thread.h" #include "chrome/browser/dom_ui/chrome_url_data_manager.h" diff --git a/chrome/browser/renderer_host/x509_user_cert_resource_handler.cc b/chrome/browser/renderer_host/x509_user_cert_resource_handler.cc index 16ef18e..58a4263 100644 --- a/chrome/browser/renderer_host/x509_user_cert_resource_handler.cc +++ b/chrome/browser/renderer_host/x509_user_cert_resource_handler.cc @@ -16,6 +16,7 @@ #include "net/base/io_buffer.h" #include "net/base/mime_sniffer.h" #include "net/base/mime_util.h" +#include "net/base/x509_certificate.h" #include "net/http/http_response_headers.h" #include "net/url_request/url_request.h" #include "net/url_request/url_request_status.h" diff --git a/chrome/browser/sync/engine/change_reorder_buffer.cc b/chrome/browser/sync/engine/change_reorder_buffer.cc index 2d68e1e2..f73d4a7 100644 --- a/chrome/browser/sync/engine/change_reorder_buffer.cc +++ b/chrome/browser/sync/engine/change_reorder_buffer.cc @@ -113,6 +113,12 @@ class ChangeReorderBuffer::Traversal { DISALLOW_COPY_AND_ASSIGN(Traversal); }; +ChangeReorderBuffer::ChangeReorderBuffer() { +} + +ChangeReorderBuffer::~ChangeReorderBuffer() { +} + void ChangeReorderBuffer::GetAllChangesInTreeOrder( const BaseTransaction* sync_trans, vector<ChangeRecord>* changelist) { diff --git a/chrome/browser/sync/engine/change_reorder_buffer.h b/chrome/browser/sync/engine/change_reorder_buffer.h index d4ff1b6..0392679 100644 --- a/chrome/browser/sync/engine/change_reorder_buffer.h +++ b/chrome/browser/sync/engine/change_reorder_buffer.h @@ -39,7 +39,8 @@ class ChangeReorderBuffer { public: typedef SyncManager::ChangeRecord ChangeRecord; - ChangeReorderBuffer() { } + ChangeReorderBuffer(); + ~ChangeReorderBuffer(); // Insert an item, identified by the metahandle |id|, into the reorder // buffer. This item will appear in the output list as an ACTION_ADD diff --git a/chrome/browser/sync/engine/syncer.cc b/chrome/browser/sync/engine/syncer.cc index f64de42..daf3bf0 100644 --- a/chrome/browser/sync/engine/syncer.cc +++ b/chrome/browser/sync/engine/syncer.cc @@ -74,6 +74,16 @@ Syncer::~Syncer() { shutdown_channel_->Notify(SyncerShutdownEvent(this)); } +bool Syncer::ExitRequested() { + AutoLock lock(early_exit_requested_lock_); + return early_exit_requested_; +} + +void Syncer::RequestEarlyExit() { + AutoLock lock(early_exit_requested_lock_); + early_exit_requested_ = true; +} + void Syncer::RequestNudge(int milliseconds) { SyncerEvent event(SyncerEvent::REQUEST_SYNC_NUDGE); event.nudge_delay_milliseconds = milliseconds; diff --git a/chrome/browser/sync/engine/syncer.h b/chrome/browser/sync/engine/syncer.h index e41ad8d..ce765da 100644 --- a/chrome/browser/sync/engine/syncer.h +++ b/chrome/browser/sync/engine/syncer.h @@ -81,14 +81,8 @@ class Syncer { // Called by other threads to tell the syncer to stop what it's doing // and return early from SyncShare, if possible. - bool ExitRequested() { - AutoLock lock(early_exit_requested_lock_); - return early_exit_requested_; - } - void RequestEarlyExit() { - AutoLock lock(early_exit_requested_lock_); - early_exit_requested_ = true; - } + bool ExitRequested(); + void RequestEarlyExit(); // SyncShare(...) variants cause one sync cycle to occur. The return value // indicates whether we should sync again. If we should not sync again, diff --git a/chrome/browser/sync/engine/update_applicator.cc b/chrome/browser/sync/engine/update_applicator.cc index a174370..f184a93 100644 --- a/chrome/browser/sync/engine/update_applicator.cc +++ b/chrome/browser/sync/engine/update_applicator.cc @@ -35,6 +35,9 @@ UpdateApplicator::UpdateApplicator(ConflictResolver* resolver, successful_ids_.reserve(item_count); } +UpdateApplicator::~UpdateApplicator() { +} + // Returns true if there's more to do. bool UpdateApplicator::AttemptOneApplication( syncable::WriteTransaction* trans) { diff --git a/chrome/browser/sync/engine/update_applicator.h b/chrome/browser/sync/engine/update_applicator.h index ab03add..f0c5c0b 100644 --- a/chrome/browser/sync/engine/update_applicator.h +++ b/chrome/browser/sync/engine/update_applicator.h @@ -40,6 +40,7 @@ class UpdateApplicator { const UpdateIterator& end, const ModelSafeRoutingInfo& routes, ModelSafeGroup group_filter); + ~UpdateApplicator(); // returns true if there's more we can do. bool AttemptOneApplication(syncable::WriteTransaction* trans); @@ -78,6 +79,8 @@ class UpdateApplicator { // Track the result of the various items. std::vector<syncable::Id> conflicting_ids_; std::vector<syncable::Id> successful_ids_; + + DISALLOW_COPY_AND_ASSIGN(UpdateApplicator); }; } // namespace browser_sync diff --git a/chrome/browser/sync/glue/http_bridge.cc b/chrome/browser/sync/glue/http_bridge.cc index e39e6ff..aab5f40 100644 --- a/chrome/browser/sync/glue/http_bridge.cc +++ b/chrome/browser/sync/glue/http_bridge.cc @@ -11,6 +11,7 @@ #include "chrome/browser/profile.h" #include "chrome/browser/chrome_thread.h" #include "net/base/cookie_monster.h" +#include "net/base/host_resolver.h" #include "net/base/load_flags.h" #include "net/http/http_cache.h" #include "net/http/http_network_layer.h" diff --git a/chrome/browser/utility_process_host.cc b/chrome/browser/utility_process_host.cc index 2d439e4..a5e80fe 100644 --- a/chrome/browser/utility_process_host.cc +++ b/chrome/browser/utility_process_host.cc @@ -8,6 +8,7 @@ #include "base/command_line.h" #include "base/file_util.h" #include "base/message_loop.h" +#include "base/values.h" #include "chrome/browser/browser_process.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/utility_messages.h" |