diff options
author | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 21:39:55 +0000 |
---|---|---|
committer | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 21:39:55 +0000 |
commit | 68d2a05fb6380f35eb10e7e1b9f789a742b89871 (patch) | |
tree | 74939817681c52027083ef86ebba375f047f5228 /chrome | |
parent | 527498450ae8b478b6719d4603be03dfcdc8d812 (diff) | |
download | chromium_src-68d2a05fb6380f35eb10e7e1b9f789a742b89871.zip chromium_src-68d2a05fb6380f35eb10e7e1b9f789a742b89871.tar.gz chromium_src-68d2a05fb6380f35eb10e7e1b9f789a742b89871.tar.bz2 |
Moved URLFetcher and related classes to chrome/common/net.
BUG=None
TEST=Build and Unittests
Review URL: http://codereview.chromium.org/1995008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46739 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
91 files changed, 114 insertions, 113 deletions
diff --git a/chrome/browser/alternate_nav_url_fetcher.h b/chrome/browser/alternate_nav_url_fetcher.h index 943f23e..2295617 100644 --- a/chrome/browser/alternate_nav_url_fetcher.h +++ b/chrome/browser/alternate_nav_url_fetcher.h @@ -7,8 +7,8 @@ #include <string> -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/tab_contents/infobar_delegate.h" +#include "chrome/common/net/url_fetcher.h" #include "chrome/common/notification_observer.h" #include "chrome/common/notification_registrar.h" diff --git a/chrome/browser/autocomplete/search_provider.h b/chrome/browser/autocomplete/search_provider.h index f36c070..9c60334 100644 --- a/chrome/browser/autocomplete/search_provider.h +++ b/chrome/browser/autocomplete/search_provider.h @@ -22,8 +22,8 @@ #include "chrome/browser/autocomplete/autocomplete.h" #include "chrome/browser/cancelable_request.h" #include "chrome/browser/history/history_types.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/search_engines/template_url.h" +#include "chrome/common/net/url_fetcher.h" class Profile; class Value; diff --git a/chrome/browser/autocomplete/search_provider_unittest.cc b/chrome/browser/autocomplete/search_provider_unittest.cc index 4d9ba3b..26c5843 100644 --- a/chrome/browser/autocomplete/search_provider_unittest.cc +++ b/chrome/browser/autocomplete/search_provider_unittest.cc @@ -8,9 +8,9 @@ #include "chrome/browser/autocomplete/search_provider.h" #include "chrome/browser/chrome_thread.h" #include "chrome/browser/history/history.h" -#include "chrome/browser/net/test_url_fetcher_factory.h" #include "chrome/browser/search_engines/template_url.h" #include "chrome/browser/search_engines/template_url_model.h" +#include "chrome/common/net/test_url_fetcher_factory.h" #include "chrome/test/testing_profile.h" #include "net/url_request/url_request_status.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/autofill/autofill_download.h b/chrome/browser/autofill/autofill_download.h index 397aae7..3ea438f 100644 --- a/chrome/browser/autofill/autofill_download.h +++ b/chrome/browser/autofill/autofill_download.h @@ -16,7 +16,7 @@ #include "chrome/browser/autofill/autofill_profile.h" #include "chrome/browser/autofill/field_types.h" #include "chrome/browser/autofill/form_structure.h" -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" class Profile; diff --git a/chrome/browser/autofill/autofill_download_unittest.cc b/chrome/browser/autofill/autofill_download_unittest.cc index 549e48b..085059f 100644 --- a/chrome/browser/autofill/autofill_download_unittest.cc +++ b/chrome/browser/autofill/autofill_download_unittest.cc @@ -6,7 +6,7 @@ #include "base/string_util.h" #include "chrome/browser/autofill/autofill_download.h" -#include "chrome/browser/net/test_url_fetcher_factory.h" +#include "chrome/common/net/test_url_fetcher_factory.h" #include "chrome/test/testing_profile.h" #include "net/url_request/url_request_status.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc index d528169..93ad3d5 100644 --- a/chrome/browser/automation/automation_provider.cc +++ b/chrome/browser/automation/automation_provider.cc @@ -59,7 +59,6 @@ #include "chrome/browser/io_thread.h" #include "chrome/browser/location_bar.h" #include "chrome/browser/login_prompt.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/net/url_request_mock_util.h" #include "chrome/browser/platform_util.h" #include "chrome/browser/pref_service.h" @@ -75,6 +74,7 @@ #include "chrome/common/chrome_paths.h" #include "chrome/common/extensions/extension.h" #include "chrome/common/json_value_serializer.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/notification_service.h" #include "chrome/common/pref_names.h" #include "chrome/common/url_constants.h" diff --git a/chrome/browser/browsing_data_appcache_helper.h b/chrome/browser/browsing_data_appcache_helper.h index 695a271..f5abf35 100644 --- a/chrome/browser/browsing_data_appcache_helper.h +++ b/chrome/browser/browsing_data_appcache_helper.h @@ -11,7 +11,7 @@ #include "base/scoped_ptr.h" #include "base/task.h" #include "chrome/browser/appcache/chrome_appcache_service.h" -#include "chrome/browser/net/url_request_context_getter.h" +#include "chrome/common/net/url_request_context_getter.h" class Profile; diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc index 7323444..6263d6d 100644 --- a/chrome/browser/browsing_data_remover.cc +++ b/chrome/browser/browsing_data_remover.cc @@ -12,12 +12,12 @@ #include "chrome/browser/profile.h" #include "chrome/browser/metrics/user_metrics.h" #include "chrome/browser/net/chrome_url_request_context.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/password_manager/password_store.h" #include "chrome/browser/search_engines/template_url_model.h" #include "chrome/browser/sessions/session_service.h" #include "chrome/browser/sessions/tab_restore_service.h" #include "chrome/browser/webdata/web_data_service.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/notification_service.h" #include "chrome/common/url_constants.h" #include "net/base/cookie_monster.h" diff --git a/chrome/browser/bug_report_util.cc b/chrome/browser/bug_report_util.cc index 8426e35..b23943e 100644 --- a/chrome/browser/bug_report_util.cc +++ b/chrome/browser/bug_report_util.cc @@ -9,10 +9,10 @@ #include "base/utf_string_conversions.h" #include "chrome/app/chrome_version_info.h" #include "chrome/browser/browser_process_impl.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/profile.h" #include "chrome/browser/safe_browsing/safe_browsing_util.h" #include "chrome/browser/tab_contents/tab_contents.h" +#include "chrome/common/net/url_fetcher.h" #include "googleurl/src/gurl.h" #include "grit/locale_settings.h" #include "unicode/locid.h" diff --git a/chrome/browser/chrome_plugin_host.cc b/chrome/browser/chrome_plugin_host.cc index 56d8828..f873fd5 100644 --- a/chrome/browser/chrome_plugin_host.cc +++ b/chrome/browser/chrome_plugin_host.cc @@ -22,7 +22,6 @@ #include "chrome/browser/chrome_thread.h" #include "chrome/browser/dom_ui/html_dialog_ui.h" #include "chrome/browser/gears_integration.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/plugin_process_host.h" #include "chrome/browser/plugin_service.h" #include "chrome/browser/profile.h" @@ -34,8 +33,9 @@ #include "chrome/common/chrome_plugin_util.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/gears_api.h" -#include "chrome/common/notification_service.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/net/url_request_intercept_job.h" +#include "chrome/common/notification_service.h" #include "chrome/common/plugin_messages.h" #include "chrome/common/render_messages.h" #include "net/base/cookie_monster.h" diff --git a/chrome/browser/chrome_plugin_unittest.cc b/chrome/browser/chrome_plugin_unittest.cc index 35474b0..3116a2f 100644 --- a/chrome/browser/chrome_plugin_unittest.cc +++ b/chrome/browser/chrome_plugin_unittest.cc @@ -9,9 +9,9 @@ #include "base/string_util.h" #include "chrome/browser/chrome_plugin_host.h" #include "chrome/browser/chrome_thread.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/profile.h" #include "chrome/common/chrome_plugin_lib.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/test/chrome_plugin/test_chrome_plugin.h" #include "net/base/io_buffer.h" #include "net/http/http_response_headers.h" diff --git a/chrome/browser/chromeos/external_cookie_handler.cc b/chrome/browser/chromeos/external_cookie_handler.cc index 525ed80..e9f0ee1 100644 --- a/chrome/browser/chromeos/external_cookie_handler.cc +++ b/chrome/browser/chromeos/external_cookie_handler.cc @@ -7,9 +7,9 @@ #include "base/command_line.h" #include "base/file_util.h" #include "chrome/browser/chromeos/pipe_reader.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/profile.h" #include "chrome/common/chrome_switches.h" +#include "chrome/common/net/url_request_context_getter.h" #include "googleurl/src/gurl.h" #include "net/base/cookie_store.h" #include "net/url_request/url_request_context.h" diff --git a/chrome/browser/chromeos/login/auth_response_handler.h b/chrome/browser/chromeos/login/auth_response_handler.h index 04e9d1d..826baeb 100644 --- a/chrome/browser/chromeos/login/auth_response_handler.h +++ b/chrome/browser/chromeos/login/auth_response_handler.h @@ -7,7 +7,7 @@ #include <string> -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" class GURL; diff --git a/chrome/browser/chromeos/login/client_login_response_handler.cc b/chrome/browser/chromeos/login/client_login_response_handler.cc index f10777d..3e495cd 100644 --- a/chrome/browser/chromeos/login/client_login_response_handler.cc +++ b/chrome/browser/chromeos/login/client_login_response_handler.cc @@ -9,7 +9,7 @@ #include "chrome/browser/chromeos/login/google_authenticator.h" #include "chrome/browser/net/chrome_url_request_context.h" -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" #include "net/base/load_flags.h" namespace chromeos { diff --git a/chrome/browser/chromeos/login/cookie_fetcher.cc b/chrome/browser/chromeos/login/cookie_fetcher.cc index d27dfed..512dedf 100644 --- a/chrome/browser/chromeos/login/cookie_fetcher.cc +++ b/chrome/browser/chromeos/login/cookie_fetcher.cc @@ -12,10 +12,10 @@ #include "chrome/browser/chromeos/login/issue_response_handler.h" #include "chrome/browser/chromeos/login/login_utils.h" #include "chrome/browser/net/chrome_url_request_context.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/profile.h" #include "chrome/browser/profile_manager.h" #include "chrome/common/chrome_paths.h" +#include "chrome/common/net/url_fetcher.h" #include "net/url_request/url_request_status.h" namespace chromeos { diff --git a/chrome/browser/chromeos/login/cookie_fetcher.h b/chrome/browser/chromeos/login/cookie_fetcher.h index 434da44..ef82d55 100644 --- a/chrome/browser/chromeos/login/cookie_fetcher.h +++ b/chrome/browser/chromeos/login/cookie_fetcher.h @@ -10,8 +10,8 @@ #include "chrome/browser/chromeos/login/auth_response_handler.h" #include "chrome/browser/chromeos/login/client_login_response_handler.h" #include "chrome/browser/chromeos/login/issue_response_handler.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/profile.h" +#include "chrome/common/net/url_fetcher.h" namespace chromeos { diff --git a/chrome/browser/chromeos/login/cookie_fetcher_unittest.cc b/chrome/browser/chromeos/login/cookie_fetcher_unittest.cc index f07b395..d068007 100644 --- a/chrome/browser/chromeos/login/cookie_fetcher_unittest.cc +++ b/chrome/browser/chromeos/login/cookie_fetcher_unittest.cc @@ -9,8 +9,8 @@ #include "chrome/browser/chromeos/login/client_login_response_handler.h" #include "chrome/browser/chromeos/login/issue_response_handler.h" #include "chrome/browser/chromeos/login/mock_auth_response_handler.h" +#include "chrome/common/net/url_fetcher.h" #include "chrome/test/testing_profile.h" -#include "chrome/browser/net/url_fetcher.h" #include "googleurl/src/gurl.h" #include "net/url_request/url_request_status.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/chromeos/login/google_authenticator.cc b/chrome/browser/chromeos/login/google_authenticator.cc index f0e4127..3ea86bd 100644 --- a/chrome/browser/chromeos/login/google_authenticator.cc +++ b/chrome/browser/chromeos/login/google_authenticator.cc @@ -23,10 +23,10 @@ #include "chrome/browser/chromeos/login/authentication_notification_details.h" #include "chrome/browser/chromeos/login/login_status_consumer.h" #include "chrome/browser/net/chrome_url_request_context.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/profile.h" #include "chrome/browser/profile_manager.h" #include "chrome/common/chrome_paths.h" +#include "chrome/common/net/url_fetcher.h" #include "chrome/common/notification_service.h" #include "net/base/load_flags.h" #include "net/url_request/url_request_status.h" diff --git a/chrome/browser/chromeos/login/google_authenticator.h b/chrome/browser/chromeos/login/google_authenticator.h index 2b4fa1f..58f3e5f 100644 --- a/chrome/browser/chromeos/login/google_authenticator.h +++ b/chrome/browser/chromeos/login/google_authenticator.h @@ -14,7 +14,7 @@ #include "chrome/browser/chromeos/cros/cros_library.h" #include "chrome/browser/chromeos/cros/cryptohome_library.h" #include "chrome/browser/chromeos/login/authenticator.h" -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" #include "testing/gtest/include/gtest/gtest_prod.h" // For FRIEND_TEST // Authenticates a Chromium OS user against the Google Accounts ClientLogin API. diff --git a/chrome/browser/chromeos/login/google_authenticator_unittest.cc b/chrome/browser/chromeos/login/google_authenticator_unittest.cc index 4d1b73d..70c9aeb 100644 --- a/chrome/browser/chromeos/login/google_authenticator_unittest.cc +++ b/chrome/browser/chromeos/login/google_authenticator_unittest.cc @@ -20,8 +20,8 @@ #include "chrome/browser/chromeos/login/issue_response_handler.h" #include "chrome/browser/chromeos/login/mock_auth_response_handler.h" #include "chrome/browser/chrome_thread.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/common/chrome_paths.h" +#include "chrome/common/net/url_fetcher.h" #include "chrome/test/testing_profile.h" #include "googleurl/src/gurl.h" #include "net/url_request/url_request_status.h" diff --git a/chrome/browser/chromeos/login/issue_response_handler.cc b/chrome/browser/chromeos/login/issue_response_handler.cc index 638ac0f..bfc1ae2 100644 --- a/chrome/browser/chromeos/login/issue_response_handler.cc +++ b/chrome/browser/chromeos/login/issue_response_handler.cc @@ -7,7 +7,7 @@ #include <string> #include "chrome/browser/net/chrome_url_request_context.h" -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" #include "net/base/load_flags.h" namespace chromeos { diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc index f089d5e..759b2eb 100644 --- a/chrome/browser/chromeos/login/login_utils.cc +++ b/chrome/browser/chromeos/login/login_utils.cc @@ -19,11 +19,11 @@ #include "chrome/browser/chromeos/login/google_authenticator.h" #include "chrome/browser/chromeos/login/pam_google_authenticator.h" #include "chrome/browser/chromeos/login/user_manager.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/profile.h" #include "chrome/browser/profile_manager.h" #include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_switches.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/notification_observer.h" #include "chrome/common/notification_registrar.h" #include "chrome/common/notification_service.h" diff --git a/chrome/browser/chromeos/login/mock_auth_response_handler.cc b/chrome/browser/chromeos/login/mock_auth_response_handler.cc index 1d04331..755064d 100644 --- a/chrome/browser/chromeos/login/mock_auth_response_handler.cc +++ b/chrome/browser/chromeos/login/mock_auth_response_handler.cc @@ -7,7 +7,7 @@ #include <string> #include "base/message_loop.h" -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" #include "googleurl/src/gurl.h" #include "net/url_request/url_request_status.h" #include "testing/gmock/include/gmock/gmock.h" diff --git a/chrome/browser/chromeos/login/user_image_downloader.cc b/chrome/browser/chromeos/login/user_image_downloader.cc index fc174f6..1859e8c 100644 --- a/chrome/browser/chromeos/login/user_image_downloader.cc +++ b/chrome/browser/chromeos/login/user_image_downloader.cc @@ -12,9 +12,9 @@ #include "chrome/browser/browser_process.h" #include "chrome/browser/chrome_thread.h" #include "chrome/browser/chromeos/login/user_manager.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/profile_manager.h" #include "chrome/common/chrome_paths.h" +#include "chrome/common/net/url_fetcher.h" #include "gfx/codec/png_codec.h" #include "googleurl/src/gurl.h" diff --git a/chrome/browser/chromeos/login/user_image_downloader.h b/chrome/browser/chromeos/login/user_image_downloader.h index 54989b0..38ea044 100644 --- a/chrome/browser/chromeos/login/user_image_downloader.h +++ b/chrome/browser/chromeos/login/user_image_downloader.h @@ -10,8 +10,8 @@ #include "base/basictypes.h" #include "base/scoped_ptr.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/utility_process_host.h" +#include "chrome/common/net/url_fetcher.h" class ResourceDispatcherHost; diff --git a/chrome/browser/cocoa/cookies_window_controller_unittest.mm b/chrome/browser/cocoa/cookies_window_controller_unittest.mm index dcc0129..8e2b14a 100644 --- a/chrome/browser/cocoa/cookies_window_controller_unittest.mm +++ b/chrome/browser/cocoa/cookies_window_controller_unittest.mm @@ -15,8 +15,8 @@ #include "chrome/browser/mock_browsing_data_database_helper.h" #include "chrome/browser/mock_browsing_data_local_storage_helper.h" #include "chrome/browser/mock_browsing_data_appcache_helper.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/cookies_tree_model.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/test/testing_profile.h" #include "googleurl/src/gurl.h" #include "net/url_request/url_request_context.h" diff --git a/chrome/browser/cookies_tree_model_unittest.cc b/chrome/browser/cookies_tree_model_unittest.cc index 6e026b8..9417c21 100644 --- a/chrome/browser/cookies_tree_model_unittest.cc +++ b/chrome/browser/cookies_tree_model_unittest.cc @@ -10,7 +10,7 @@ #include "chrome/browser/mock_browsing_data_appcache_helper.h" #include "chrome/browser/mock_browsing_data_database_helper.h" #include "chrome/browser/mock_browsing_data_local_storage_helper.h" -#include "chrome/browser/net/url_request_context_getter.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/test/testing_profile.h" #include "net/url_request/url_request_context.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/dom_ui/filebrowse_ui.cc b/chrome/browser/dom_ui/filebrowse_ui.cc index 39e4474..597fc37 100644 --- a/chrome/browser/dom_ui/filebrowse_ui.cc +++ b/chrome/browser/dom_ui/filebrowse_ui.cc @@ -27,14 +27,14 @@ #include "chrome/browser/download/download_util.h" #include "chrome/browser/history/history_types.h" #include "chrome/browser/metrics/user_metrics.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/profile.h" #include "chrome/browser/tab_contents/tab_contents.h" +#include "chrome/browser/dom_ui/mediaplayer_ui.h" #include "chrome/common/chrome_paths.h" #include "chrome/common/jstemplate_builder.h" +#include "chrome/common/net/url_fetcher.h" #include "chrome/common/time_format.h" #include "chrome/common/url_constants.h" -#include "chrome/browser/dom_ui/mediaplayer_ui.h" #include "net/base/escape.h" #include "grit/browser_resources.h" diff --git a/chrome/browser/dom_ui/mediaplayer_ui.cc b/chrome/browser/dom_ui/mediaplayer_ui.cc index c5f9891..90098d6 100644 --- a/chrome/browser/dom_ui/mediaplayer_ui.cc +++ b/chrome/browser/dom_ui/mediaplayer_ui.cc @@ -25,12 +25,12 @@ #include "chrome/browser/download/download_manager.h" #include "chrome/browser/download/download_util.h" #include "chrome/browser/metrics/user_metrics.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/history/history_types.h" #include "chrome/browser/profile.h" #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/common/chrome_paths.h" #include "chrome/common/jstemplate_builder.h" +#include "chrome/common/net/url_fetcher.h" #include "chrome/common/time_format.h" #include "chrome/common/url_constants.h" #include "net/base/escape.h" diff --git a/chrome/browser/dom_ui/net_internals_ui.cc b/chrome/browser/dom_ui/net_internals_ui.cc index 5f4139a..0df73d9 100644 --- a/chrome/browser/dom_ui/net_internals_ui.cc +++ b/chrome/browser/dom_ui/net_internals_ui.cc @@ -24,9 +24,9 @@ #include "chrome/browser/net/chrome_net_log.h" #include "chrome/browser/net/connection_tester.h" #include "chrome/browser/net/passive_log_collector.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/profile.h" #include "chrome/common/chrome_paths.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/url_constants.h" #include "net/base/escape.h" #include "net/base/host_resolver_impl.h" diff --git a/chrome/browser/download/save_file_manager.cc b/chrome/browser/download/save_file_manager.cc index 9bbd9b0..f106d6a 100644 --- a/chrome/browser/download/save_file_manager.cc +++ b/chrome/browser/download/save_file_manager.cc @@ -15,12 +15,12 @@ #include "chrome/browser/chrome_thread.h" #include "chrome/browser/download/save_file.h" #include "chrome/browser/download/save_package.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/platform_util.h" #include "chrome/browser/renderer_host/resource_dispatcher_host.h" #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/browser/tab_contents/tab_util.h" #include "chrome/common/chrome_paths.h" +#include "chrome/common/net/url_request_context_getter.h" #include "googleurl/src/gurl.h" #include "net/base/net_util.h" #include "net/base/io_buffer.h" diff --git a/chrome/browser/download/save_package.cc b/chrome/browser/download/save_package.cc index 58689cc..0510653 100644 --- a/chrome/browser/download/save_package.cc +++ b/chrome/browser/download/save_package.cc @@ -23,7 +23,6 @@ #include "chrome/browser/download/save_file.h" #include "chrome/browser/download/save_file_manager.h" #include "chrome/browser/download/save_item.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/platform_util.h" #include "chrome/browser/pref_service.h" #include "chrome/browser/profile.h" @@ -34,6 +33,7 @@ #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/browser/tab_contents/tab_util.h" #include "chrome/common/chrome_paths.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/notification_service.h" #include "chrome/common/notification_type.h" #include "chrome/common/pref_names.h" diff --git a/chrome/browser/extensions/extension_data_deleter.h b/chrome/browser/extensions/extension_data_deleter.h index a886833..d7f13327 100644 --- a/chrome/browser/extensions/extension_data_deleter.h +++ b/chrome/browser/extensions/extension_data_deleter.h @@ -10,7 +10,7 @@ #include "base/ref_counted.h" #include "chrome/browser/chrome_thread.h" #include "chrome/browser/in_process_webkit/webkit_context.h" -#include "chrome/browser/net/url_request_context_getter.h" +#include "chrome/common/net/url_request_context_getter.h" #include "googleurl/src/gurl.h" #include "webkit/database/database_tracker.h" diff --git a/chrome/browser/extensions/extension_updater.h b/chrome/browser/extensions/extension_updater.h index c1f036f..968aa2b 100644 --- a/chrome/browser/extensions/extension_updater.h +++ b/chrome/browser/extensions/extension_updater.h @@ -18,8 +18,8 @@ #include "base/time.h" #include "base/timer.h" #include "chrome/browser/extensions/extensions_service.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/common/extensions/update_manifest.h" +#include "chrome/common/net/url_fetcher.h" #include "googleurl/src/gurl.h" class Extension; diff --git a/chrome/browser/extensions/extension_updater_unittest.cc b/chrome/browser/extensions/extension_updater_unittest.cc index b783517..523502d 100644 --- a/chrome/browser/extensions/extension_updater_unittest.cc +++ b/chrome/browser/extensions/extension_updater_unittest.cc @@ -16,11 +16,11 @@ #include "chrome/browser/extensions/extension_updater.h" #include "chrome/browser/extensions/extensions_service.h" #include "chrome/browser/extensions/test_extension_prefs.h" -#include "chrome/browser/net/test_url_fetcher_factory.h" #include "chrome/browser/pref_service.h" #include "chrome/common/extensions/extension.h" #include "chrome/common/extensions/extension_constants.h" #include "chrome/common/pref_names.h" +#include "chrome/common/net/test_url_fetcher_factory.h" #include "net/base/escape.h" #include "net/base/load_flags.h" #include "net/url_request/url_request_status.h" diff --git a/chrome/browser/geolocation/location_arbitrator.cc b/chrome/browser/geolocation/location_arbitrator.cc index 4f46799..e0d513a 100644 --- a/chrome/browser/geolocation/location_arbitrator.cc +++ b/chrome/browser/geolocation/location_arbitrator.cc @@ -11,11 +11,11 @@ #include "base/ref_counted.h" #include "base/scoped_ptr.h" #include "base/string_util.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/geolocation/access_token_store.h" #include "chrome/browser/geolocation/location_provider.h" #include "chrome/browser/profile.h" #include "chrome/common/geoposition.h" +#include "chrome/common/net/url_request_context_getter.h" #include "googleurl/src/gurl.h" namespace { diff --git a/chrome/browser/geolocation/network_location_provider_unittest.cc b/chrome/browser/geolocation/network_location_provider_unittest.cc index c27565e..42ec2f6f 100644 --- a/chrome/browser/geolocation/network_location_provider_unittest.cc +++ b/chrome/browser/geolocation/network_location_provider_unittest.cc @@ -9,7 +9,7 @@ #include "base/utf_string_conversions.h" #include "base/values.h" #include "chrome/browser/geolocation/fake_access_token_store.h" -#include "chrome/browser/net/test_url_fetcher_factory.h" +#include "chrome/common/net/test_url_fetcher_factory.h" #include "net/url_request/url_request_status.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/geolocation/network_location_request.cc b/chrome/browser/geolocation/network_location_request.cc index 5e38eff..54018af 100644 --- a/chrome/browser/geolocation/network_location_request.cc +++ b/chrome/browser/geolocation/network_location_request.cc @@ -8,8 +8,8 @@ #include "base/json/json_writer.h" #include "base/string_util.h" #include "base/values.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/common/geoposition.h" +#include "chrome/common/net/url_request_context_getter.h" #include "net/base/load_flags.h" #include "net/url_request/url_request_status.h" diff --git a/chrome/browser/geolocation/network_location_request.h b/chrome/browser/geolocation/network_location_request.h index e08d570..6e38a28 100644 --- a/chrome/browser/geolocation/network_location_request.h +++ b/chrome/browser/geolocation/network_location_request.h @@ -9,7 +9,7 @@ #include "base/basictypes.h" #include "base/ref_counted.h" #include "chrome/browser/geolocation/device_data_provider.h" -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" #include "googleurl/src/gurl.h" class URLRequestContextGetter; diff --git a/chrome/browser/google_url_tracker.h b/chrome/browser/google_url_tracker.h index 636e44e..896fc10 100644 --- a/chrome/browser/google_url_tracker.h +++ b/chrome/browser/google_url_tracker.h @@ -7,7 +7,7 @@ #include <string> -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" #include "chrome/common/notification_registrar.h" #include "googleurl/src/gurl.h" #include "testing/gtest/include/gtest/gtest_prod.h" diff --git a/chrome/browser/gtk/options/cookies_view_unittest.cc b/chrome/browser/gtk/options/cookies_view_unittest.cc index 0aeef90..01e9937 100644 --- a/chrome/browser/gtk/options/cookies_view_unittest.cc +++ b/chrome/browser/gtk/options/cookies_view_unittest.cc @@ -14,7 +14,7 @@ #include "chrome/browser/mock_browsing_data_database_helper.h" #include "chrome/browser/mock_browsing_data_local_storage_helper.h" #include "chrome/browser/gtk/gtk_chrome_cookie_view.h" -#include "chrome/browser/net/url_request_context_getter.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/test/testing_profile.h" #include "net/url_request/url_request_context.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/importer/toolbar_importer.cc b/chrome/browser/importer/toolbar_importer.cc index a2a5430..767d608 100644 --- a/chrome/browser/importer/toolbar_importer.cc +++ b/chrome/browser/importer/toolbar_importer.cc @@ -12,9 +12,9 @@ #include "chrome/browser/chrome_thread.h" #include "chrome/browser/first_run.h" #include "chrome/browser/importer/importer_bridge.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/profile.h" #include "chrome/common/libxml_utils.h" +#include "chrome/common/net/url_request_context_getter.h" #include "grit/generated_resources.h" #include "net/base/cookie_monster.h" #include "net/base/data_url.h" diff --git a/chrome/browser/importer/toolbar_importer.h b/chrome/browser/importer/toolbar_importer.h index ab0160a..23f4291 100644 --- a/chrome/browser/importer/toolbar_importer.h +++ b/chrome/browser/importer/toolbar_importer.h @@ -13,7 +13,7 @@ #include "chrome/browser/importer/importer.h" #include "chrome/browser/importer/importer_data_types.h" -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" #include "testing/gtest/include/gtest/gtest_prod.h" class ImporterBridge; diff --git a/chrome/browser/intranet_redirect_detector.h b/chrome/browser/intranet_redirect_detector.h index b8c5dca..3ab75a0 100644 --- a/chrome/browser/intranet_redirect_detector.h +++ b/chrome/browser/intranet_redirect_detector.h @@ -9,7 +9,7 @@ #include <string> #include <vector> -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" #include "chrome/common/notification_registrar.h" #include "googleurl/src/gurl.h" #include "net/base/host_resolver_proc.h" diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc index 28824b5..7436750 100644 --- a/chrome/browser/io_thread.cc +++ b/chrome/browser/io_thread.cc @@ -12,8 +12,8 @@ #include "chrome/browser/net/chrome_net_log.h" #include "chrome/browser/net/dns_global.h" #include "chrome/browser/net/passive_log_collector.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/common/chrome_switches.h" +#include "chrome/common/net/url_fetcher.h" #include "net/base/mapped_host_resolver.h" #include "net/base/host_cache.h" #include "net/base/host_resolver.h" diff --git a/chrome/browser/memory_purger.cc b/chrome/browser/memory_purger.cc index 60e4bbe..9117811 100644 --- a/chrome/browser/memory_purger.cc +++ b/chrome/browser/memory_purger.cc @@ -11,13 +11,13 @@ #include "chrome/browser/browser_process.h" #include "chrome/browser/history/history.h" #include "chrome/browser/in_process_webkit/webkit_context.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/profile_manager.h" #include "chrome/browser/renderer_host/backing_store_manager.h" #include "chrome/browser/renderer_host/render_process_host.h" #include "chrome/browser/renderer_host/resource_dispatcher_host.h" #include "chrome/browser/safe_browsing/safe_browsing_service.h" #include "chrome/browser/webdata/web_data_service.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/notification_service.h" #include "chrome/common/render_messages.h" #include "net/proxy/proxy_resolver.h" diff --git a/chrome/browser/metrics/metrics_service.h b/chrome/browser/metrics/metrics_service.h index e4475c1..09f1ef8 100644 --- a/chrome/browser/metrics/metrics_service.h +++ b/chrome/browser/metrics/metrics_service.h @@ -19,8 +19,8 @@ #include "base/scoped_ptr.h" #include "base/values.h" #include "chrome/browser/metrics/metrics_log.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/common/child_process_info.h" +#include "chrome/common/net/url_fetcher.h" #include "chrome/common/notification_registrar.h" #include "testing/gtest/include/gtest/gtest_prod.h" #include "webkit/glue/plugins/webplugininfo.h" diff --git a/chrome/browser/net/chrome_url_request_context.h b/chrome/browser/net/chrome_url_request_context.h index a42464f..c9e0f99 100644 --- a/chrome/browser/net/chrome_url_request_context.h +++ b/chrome/browser/net/chrome_url_request_context.h @@ -19,8 +19,8 @@ #include "chrome/browser/pref_service.h" #include "chrome/browser/privacy_blacklist/blacklist.h" #include "chrome/browser/net/chrome_cookie_policy.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/common/extensions/extension.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/notification_registrar.h" #include "net/url_request/url_request_context.h" diff --git a/chrome/browser/net/cookie_policy_browsertest.cc b/chrome/browser/net/cookie_policy_browsertest.cc index 923f4c5..7a33ce9 100644 --- a/chrome/browser/net/cookie_policy_browsertest.cc +++ b/chrome/browser/net/cookie_policy_browsertest.cc @@ -4,8 +4,8 @@ #include "chrome/browser/browser.h" #include "chrome/browser/host_content_settings_map.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/profile.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/test/in_process_browser_test.h" #include "chrome/test/ui_test_utils.h" #include "net/base/mock_host_resolver.h" diff --git a/chrome/browser/net/resolve_proxy_msg_helper.cc b/chrome/browser/net/resolve_proxy_msg_helper.cc index d73f0fb..3ceab9a 100644 --- a/chrome/browser/net/resolve_proxy_msg_helper.cc +++ b/chrome/browser/net/resolve_proxy_msg_helper.cc @@ -6,7 +6,7 @@ #include "base/compiler_specific.h" #include "chrome/browser/profile.h" -#include "chrome/browser/net/url_request_context_getter.h" +#include "chrome/common/net/url_request_context_getter.h" #include "net/base/net_errors.h" #include "net/url_request/url_request_context.h" diff --git a/chrome/browser/net/sdch_dictionary_fetcher.h b/chrome/browser/net/sdch_dictionary_fetcher.h index 12c022a..3a975ce 100644 --- a/chrome/browser/net/sdch_dictionary_fetcher.h +++ b/chrome/browser/net/sdch_dictionary_fetcher.h @@ -16,7 +16,7 @@ #include "base/compiler_specific.h" #include "base/scoped_ptr.h" #include "base/task.h" -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" #include "net/base/sdch_manager.h" class SdchDictionaryFetcher : public URLFetcher::Delegate, diff --git a/chrome/browser/net/websocket_experiment/websocket_experiment_task.cc b/chrome/browser/net/websocket_experiment/websocket_experiment_task.cc index 8f0b7f1..0474e12 100644 --- a/chrome/browser/net/websocket_experiment/websocket_experiment_task.cc +++ b/chrome/browser/net/websocket_experiment/websocket_experiment_task.cc @@ -7,8 +7,8 @@ #include "base/hash_tables.h" #include "base/histogram.h" #include "chrome/browser/chrome_thread.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/profile.h" +#include "chrome/common/net/url_request_context_getter.h" #include "net/base/load_flags.h" #include "net/base/net_errors.h" #include "net/websockets/websocket.h" diff --git a/chrome/browser/net/websocket_experiment/websocket_experiment_task.h b/chrome/browser/net/websocket_experiment/websocket_experiment_task.h index e3ec500..fc62fd7 100644 --- a/chrome/browser/net/websocket_experiment/websocket_experiment_task.h +++ b/chrome/browser/net/websocket_experiment/websocket_experiment_task.h @@ -40,7 +40,7 @@ #include "base/basictypes.h" #include "base/task.h" #include "base/time.h" -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" #include "googleurl/src/gurl.h" #include "net/base/completion_callback.h" #include "net/base/net_errors.h" diff --git a/chrome/browser/plugin_process_host.cc b/chrome/browser/plugin_process_host.cc index f64ca33..feede75 100644 --- a/chrome/browser/plugin_process_host.cc +++ b/chrome/browser/plugin_process_host.cc @@ -22,7 +22,6 @@ #include "chrome/browser/child_process_security_policy.h" #include "chrome/browser/chrome_plugin_browsing_context.h" #include "chrome/browser/chrome_thread.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/net/url_request_tracking.h" #include "chrome/browser/plugin_service.h" #include "chrome/browser/profile.h" @@ -31,6 +30,7 @@ #include "chrome/common/chrome_plugin_lib.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/logging_chrome.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/plugin_messages.h" #include "chrome/common/render_messages.h" #include "gfx/native_widget_types.h" diff --git a/chrome/browser/printing/cloud_print/cloud_print_helpers.cc b/chrome/browser/printing/cloud_print/cloud_print_helpers.cc index 3fe81c5..3f0871f 100644 --- a/chrome/browser/printing/cloud_print/cloud_print_helpers.cc +++ b/chrome/browser/printing/cloud_print/cloud_print_helpers.cc @@ -11,9 +11,9 @@ #include "base/task.h" #include "base/utf_string_conversions.h" #include "base/values.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/printing/cloud_print/cloud_print_consts.h" #include "chrome/browser/profile.h" +#include "chrome/common/net/url_fetcher.h" std::string StringFromJobStatus(cloud_print::PrintJobStatus status) { std::string ret; diff --git a/chrome/browser/printing/cloud_print/cloud_print_proxy_backend.h b/chrome/browser/printing/cloud_print/cloud_print_proxy_backend.h index 675ae12..acced9a 100644 --- a/chrome/browser/printing/cloud_print/cloud_print_proxy_backend.h +++ b/chrome/browser/printing/cloud_print/cloud_print_proxy_backend.h @@ -9,8 +9,8 @@ #include <string> #include "base/thread.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/printing/cloud_print/printer_info.h" +#include "chrome/common/net/url_fetcher.h" class CloudPrintProxyService; class DictionaryValue; diff --git a/chrome/browser/printing/cloud_print/job_status_updater.h b/chrome/browser/printing/cloud_print/job_status_updater.h index d480621..a951084 100644 --- a/chrome/browser/printing/cloud_print/job_status_updater.h +++ b/chrome/browser/printing/cloud_print/job_status_updater.h @@ -11,7 +11,7 @@ #include "base/ref_counted.h" #include "base/thread.h" #include "chrome/browser/printing/cloud_print/printer_info.h" -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" #include "net/url_request/url_request_status.h" // Periodically monitors the status of a local print job and updates the diff --git a/chrome/browser/printing/cloud_print/printer_job_handler.h b/chrome/browser/printing/cloud_print/printer_job_handler.h index 15e5cd5..4e8d61c 100644 --- a/chrome/browser/printing/cloud_print/printer_job_handler.h +++ b/chrome/browser/printing/cloud_print/printer_job_handler.h @@ -13,7 +13,7 @@ #include "base/thread.h" #include "chrome/browser/printing/cloud_print/job_status_updater.h" #include "chrome/browser/printing/cloud_print/printer_info.h" -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" #include "net/url_request/url_request_status.h" // A class that handles cloud print jobs for a particular printer. This class diff --git a/chrome/browser/profile_manager.cc b/chrome/browser/profile_manager.cc index 851ef3e..296ac4b 100644 --- a/chrome/browser/profile_manager.cc +++ b/chrome/browser/profile_manager.cc @@ -16,12 +16,12 @@ #include "chrome/browser/browser_process.h" #include "chrome/browser/browser_window.h" #include "chrome/browser/chrome_thread.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/pref_service.h" #include "chrome/common/chrome_constants.h" #include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/logging_chrome.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/notification_service.h" #include "chrome/common/notification_type.h" #include "chrome/common/pref_names.h" diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc index fff6622..1bd8937 100644 --- a/chrome/browser/renderer_host/browser_render_process_host.cc +++ b/chrome/browser/renderer_host/browser_render_process_host.cc @@ -32,7 +32,6 @@ #include "chrome/browser/gpu_process_host.h" #include "chrome/browser/history/history.h" #include "chrome/browser/io_thread.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/plugin_service.h" #include "chrome/browser/profile.h" #include "chrome/browser/renderer_host/audio_renderer_host.h" @@ -48,6 +47,7 @@ #include "chrome/common/child_process_info.h" #include "chrome/common/gpu_messages.h" #include "chrome/common/logging_chrome.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/notification_service.h" #include "chrome/common/pref_names.h" #include "chrome/common/process_watcher.h" diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc index 2dc570e..ab436ec 100644 --- a/chrome/browser/renderer_host/render_view_host.cc +++ b/chrome/browser/renderer_host/render_view_host.cc @@ -21,7 +21,6 @@ #include "chrome/browser/dom_operation_notification_details.h" #include "chrome/browser/extensions/extension_message_service.h" #include "chrome/browser/metrics/user_metrics.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/notifications/desktop_notification_service.h" #include "chrome/browser/profile.h" #include "chrome/browser/renderer_host/render_process_host.h" @@ -36,6 +35,7 @@ #include "chrome/common/render_messages.h" #include "chrome/common/result_codes.h" #include "chrome/common/chrome_constants.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/thumbnail_score.h" #include "chrome/common/translate_errors.h" #include "chrome/common/url_constants.h" diff --git a/chrome/browser/renderer_host/socket_stream_host.cc b/chrome/browser/renderer_host/socket_stream_host.cc index 67e860a..51f7ec3 100644 --- a/chrome/browser/renderer_host/socket_stream_host.cc +++ b/chrome/browser/renderer_host/socket_stream_host.cc @@ -6,8 +6,8 @@ #include "base/logging.h" #include "chrome/browser/profile.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/common/net/socket_stream.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/render_messages.h" #include "net/socket_stream/socket_stream_job.h" diff --git a/chrome/browser/safe_browsing/protocol_manager.cc b/chrome/browser/safe_browsing/protocol_manager.cc index 0a293c8..5a8baae 100644 --- a/chrome/browser/safe_browsing/protocol_manager.cc +++ b/chrome/browser/safe_browsing/protocol_manager.cc @@ -16,11 +16,11 @@ #include "base/timer.h" #include "chrome/app/chrome_version_info.h" #include "chrome/browser/chrome_thread.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/profile.h" #include "chrome/browser/safe_browsing/protocol_parser.h" #include "chrome/browser/safe_browsing/safe_browsing_service.h" #include "chrome/common/env_vars.h" +#include "chrome/common/net/url_request_context_getter.h" #include "net/base/escape.h" #include "net/base/load_flags.h" #include "net/url_request/url_request_status.h" diff --git a/chrome/browser/safe_browsing/protocol_manager.h b/chrome/browser/safe_browsing/protocol_manager.h index dc6d703..75201ae 100644 --- a/chrome/browser/safe_browsing/protocol_manager.h +++ b/chrome/browser/safe_browsing/protocol_manager.h @@ -19,11 +19,11 @@ #include "base/scoped_ptr.h" #include "base/time.h" #include "base/timer.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/safe_browsing/chunk_range.h" #include "chrome/browser/safe_browsing/protocol_parser.h" #include "chrome/browser/safe_browsing/safe_browsing_service.h" #include "chrome/browser/safe_browsing/safe_browsing_util.h" +#include "chrome/common/net/url_fetcher.h" #include "testing/gtest/include/gtest/gtest_prod.h" class Task; diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc index be02dba..ede1587 100644 --- a/chrome/browser/safe_browsing/safe_browsing_service.cc +++ b/chrome/browser/safe_browsing/safe_browsing_service.cc @@ -10,7 +10,6 @@ #include "base/string_util.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/metrics/metrics_service.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/pref_service.h" #include "chrome/browser/profile_manager.h" #include "chrome/browser/safe_browsing/protocol_manager.h" @@ -20,6 +19,7 @@ #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/common/chrome_constants.h" #include "chrome/common/chrome_paths.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/pref_names.h" #include "chrome/common/url_constants.h" #include "net/base/registry_controlled_domain.h" diff --git a/chrome/browser/search_engines/template_url_fetcher.cc b/chrome/browser/search_engines/template_url_fetcher.cc index 1d1edea..3e8815e6 100644 --- a/chrome/browser/search_engines/template_url_fetcher.cc +++ b/chrome/browser/search_engines/template_url_fetcher.cc @@ -6,13 +6,13 @@ #include "chrome/browser/search_engines/template_url_fetcher.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/profile.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" #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/browser/tab_contents/tab_contents_delegate.h" +#include "chrome/common/net/url_fetcher.h" #include "chrome/common/notification_registrar.h" #include "chrome/common/notification_source.h" #include "chrome/common/notification_type.h" diff --git a/chrome/browser/spellcheck_host.cc b/chrome/browser/spellcheck_host.cc index 4814ba4..1c0b266 100644 --- a/chrome/browser/spellcheck_host.cc +++ b/chrome/browser/spellcheck_host.cc @@ -12,12 +12,12 @@ #include "base/path_service.h" #include "base/utf_string_conversions.h" #include "chrome/browser/profile.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/pref_member.h" #include "chrome/browser/spellcheck_host_observer.h" #include "chrome/browser/spellchecker_platform_engine.h" #include "chrome/common/chrome_constants.h" #include "chrome/common/chrome_paths.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/notification_service.h" #include "chrome/common/pref_names.h" #include "chrome/common/spellcheck_common.h" diff --git a/chrome/browser/spellcheck_host.h b/chrome/browser/spellcheck_host.h index 493f26c..c0382c8 100644 --- a/chrome/browser/spellcheck_host.h +++ b/chrome/browser/spellcheck_host.h @@ -12,7 +12,7 @@ #include "base/platform_file.h" #include "base/ref_counted.h" #include "chrome/browser/chrome_thread.h" -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" class Profile; class SpellCheckHostObserver; diff --git a/chrome/browser/sync/glue/http_bridge.h b/chrome/browser/sync/glue/http_bridge.h index e1e1bbd..548f5d3 100644 --- a/chrome/browser/sync/glue/http_bridge.h +++ b/chrome/browser/sync/glue/http_bridge.h @@ -9,9 +9,9 @@ #include "base/ref_counted.h" #include "base/waitable_event.h" -#include "chrome/browser/net/url_fetcher.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/sync/engine/syncapi.h" +#include "chrome/common/net/url_fetcher.h" +#include "chrome/common/net/url_request_context_getter.h" #include "googleurl/src/gurl.h" #include "net/url_request/url_request_context.h" #include "testing/gtest/include/gtest/gtest_prod.h" diff --git a/chrome/browser/sync/glue/http_bridge_unittest.cc b/chrome/browser/sync/glue/http_bridge_unittest.cc index 076d8cd..8c28d16 100644 --- a/chrome/browser/sync/glue/http_bridge_unittest.cc +++ b/chrome/browser/sync/glue/http_bridge_unittest.cc @@ -5,8 +5,8 @@ #include "base/message_loop_proxy.h" #include "base/thread.h" #include "chrome/browser/chrome_thread.h" -#include "chrome/browser/net/test_url_fetcher_factory.h" #include "chrome/browser/sync/glue/http_bridge.h" +#include "chrome/common/net/test_url_fetcher_factory.h" #include "net/url_request/url_request_unittest.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/sync/glue/sync_backend_host.h b/chrome/browser/sync/glue/sync_backend_host.h index 4704f85..1f44df9 100644 --- a/chrome/browser/sync/glue/sync_backend_host.h +++ b/chrome/browser/sync/glue/sync_backend_host.h @@ -17,13 +17,13 @@ #include "base/thread.h" #include "base/timer.h" #include "chrome/browser/google_service_auth_error.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/sync/notification_method.h" #include "chrome/browser/sync/engine/syncapi.h" #include "chrome/browser/sync/engine/model_safe_worker.h" #include "chrome/browser/sync/glue/data_type_controller.h" #include "chrome/browser/sync/glue/ui_model_worker.h" #include "chrome/browser/sync/syncable/model_type.h" +#include "chrome/common/net/url_request_context_getter.h" #include "googleurl/src/gurl.h" class CancelableTask; diff --git a/chrome/browser/tab_contents/tab_contents.h b/chrome/browser/tab_contents/tab_contents.h index ff2361f..68a8602 100644 --- a/chrome/browser/tab_contents/tab_contents.h +++ b/chrome/browser/tab_contents/tab_contents.h @@ -24,7 +24,6 @@ #include "chrome/browser/find_bar_controller.h" #include "chrome/browser/find_notification_details.h" #include "chrome/browser/jsmessage_box_client.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/password_manager/password_manager.h" #include "chrome/browser/printing/print_view_manager.h" #include "chrome/browser/shell_dialogs.h" @@ -40,6 +39,7 @@ #include "chrome/common/content_settings_types.h" #include "chrome/common/extensions/url_pattern.h" #include "chrome/common/navigation_types.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/notification_registrar.h" #include "chrome/common/property_bag.h" #include "chrome/common/renderer_preferences.h" diff --git a/chrome/browser/translate/translate_manager.h b/chrome/browser/translate/translate_manager.h index 14db089..1c44767 100644 --- a/chrome/browser/translate/translate_manager.h +++ b/chrome/browser/translate/translate_manager.h @@ -13,8 +13,8 @@ #include "base/lazy_instance.h" #include "base/singleton.h" #include "base/task.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/translate/translate_infobars_delegates.h" +#include "chrome/common/net/url_fetcher.h" #include "chrome/common/notification_observer.h" #include "chrome/common/notification_registrar.h" #include "chrome/common/translate_errors.h" diff --git a/chrome/browser/translate/translate_manager_unittest.cc b/chrome/browser/translate/translate_manager_unittest.cc index 8c4d242..a4b1f6c 100644 --- a/chrome/browser/translate/translate_manager_unittest.cc +++ b/chrome/browser/translate/translate_manager_unittest.cc @@ -4,7 +4,6 @@ #include "chrome/browser/renderer_host/test/test_render_view_host.h" -#include "chrome/browser/net/test_url_fetcher_factory.h" #include "chrome/browser/renderer_host/mock_render_process_host.h" #include "chrome/browser/tab_contents/render_view_context_menu.h" #include "chrome/browser/translate/translate_infobars_delegates.h" @@ -18,6 +17,7 @@ #include "chrome/common/notification_type.h" #include "chrome/common/pref_names.h" #include "chrome/common/render_messages.h" +#include "chrome/common/net/test_url_fetcher_factory.h" #include "chrome/test/testing_browser_process.h" #include "grit/generated_resources.h" #include "testing/gmock/include/gmock/gmock.h" diff --git a/chrome/browser/views/bug_report_view.cc b/chrome/browser/views/bug_report_view.cc index 352579e..4903c75 100644 --- a/chrome/browser/views/bug_report_view.cc +++ b/chrome/browser/views/bug_report_view.cc @@ -10,13 +10,13 @@ #include "base/utf_string_conversions.h" #include "chrome/app/chrome_version_info.h" #include "chrome/browser/bug_report_util.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/browser/pref_service.h" #include "chrome/browser/profile.h" #include "chrome/browser/safe_browsing/safe_browsing_util.h" #include "chrome/browser/tab_contents/navigation_controller.h" #include "chrome/browser/tab_contents/navigation_entry.h" #include "chrome/browser/tab_contents/tab_contents.h" +#include "chrome/common/net/url_fetcher.h" #include "chrome/common/pref_names.h" #include "grit/chromium_strings.h" #include "grit/generated_resources.h" diff --git a/chrome/browser/views/bug_report_view.h b/chrome/browser/views/bug_report_view.h index b79a823..7d641b1 100644 --- a/chrome/browser/views/bug_report_view.h +++ b/chrome/browser/views/bug_report_view.h @@ -5,7 +5,7 @@ #ifndef CHROME_BROWSER_VIEWS_BUG_REPORT_VIEW_H_ #define CHROME_BROWSER_VIEWS_BUG_REPORT_VIEW_H_ -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" #include "googleurl/src/gurl.h" #include "views/controls/combobox/combobox.h" #include "views/controls/textfield/textfield.h" diff --git a/chrome/browser/web_resource/web_resource_service.cc b/chrome/browser/web_resource/web_resource_service.cc index f30e90b..a18804a 100644 --- a/chrome/browser/web_resource/web_resource_service.cc +++ b/chrome/browser/web_resource/web_resource_service.cc @@ -10,8 +10,8 @@ #include "chrome/browser/browser_process.h" #include "chrome/browser/chrome_thread.h" #include "chrome/browser/profile.h" -#include "chrome/browser/net/url_fetcher.h" #include "chrome/common/chrome_switches.h" +#include "chrome/common/net/url_fetcher.h" #include "chrome/common/pref_names.h" #include "googleurl/src/gurl.h" #include "net/base/load_flags.h" diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi index 603b68b..25099c8 100644 --- a/chrome/chrome_browser.gypi +++ b/chrome/chrome_browser.gypi @@ -1602,8 +1602,6 @@ 'browser/net/chrome_url_request_context.h', 'browser/net/connection_tester.cc', 'browser/net/connection_tester.h', - 'browser/net/url_request_context_getter.cc', - 'browser/net/url_request_context_getter.h', 'browser/net/dns_global.cc', 'browser/net/dns_global.h', 'browser/net/dns_host_info.cc', @@ -1623,10 +1621,6 @@ 'browser/net/sqlite_persistent_cookie_store.cc', 'browser/net/sqlite_persistent_cookie_store.h', 'browser/net/ssl_config_service_manager.h', - 'browser/net/url_fetcher.cc', - 'browser/net/url_fetcher.h', - 'browser/net/url_fetcher_protect.cc', - 'browser/net/url_fetcher_protect.h', 'browser/net/url_fixer_upper.cc', 'browser/net/url_fixer_upper.h', 'browser/net/url_request_failed_dns_job.cc', diff --git a/chrome/chrome_common.gypi b/chrome/chrome_common.gypi index 4845f34..3f45ebe 100644 --- a/chrome/chrome_common.gypi +++ b/chrome/chrome_common.gypi @@ -315,6 +315,12 @@ 'common/net/network_change_observer_proxy.cc', 'common/net/network_change_observer_proxy.h', 'common/net/socket_stream.h', + 'common/net/url_fetcher.cc', + 'common/net/url_fetcher.h', + 'common/net/url_fetcher_protect.cc', + 'common/net/url_fetcher_protect.h', + 'common/net/url_request_context_getter.cc', + 'common/net/url_request_context_getter.h', 'common/net/url_request_intercept_job.cc', 'common/net/url_request_intercept_job.h', 'common/net/gaia/gaia_authenticator.cc', diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi index 38452ee..dd470c4 100644 --- a/chrome/chrome_tests.gypi +++ b/chrome/chrome_tests.gypi @@ -849,9 +849,6 @@ 'browser/net/dns_master_unittest.cc', 'browser/net/passive_log_collector_unittest.cc', 'browser/net/resolve_proxy_msg_helper_unittest.cc', - 'browser/net/test_url_fetcher_factory.cc', - 'browser/net/test_url_fetcher_factory.h', - 'browser/net/url_fetcher_unittest.cc', 'browser/net/url_fixer_upper_unittest.cc', 'browser/notifications/desktop_notifications_unittest.cc', 'browser/notifications/desktop_notifications_unittest.h', @@ -980,7 +977,11 @@ 'common/extensions/user_script_unittest.cc', 'common/json_value_serializer_unittest.cc', 'common/mru_cache_unittest.cc', + # TODO(sanjeevr): Move the 2 below files to common_net_unit_tests 'common/net/gaia/gaia_authenticator_unittest.cc', + 'common/net/url_fetcher_unittest.cc', + 'common/net/test_url_fetcher_factory.cc', + 'common/net/test_url_fetcher_factory.h', 'common/notification_service_unittest.cc', 'common/process_watcher_unittest.cc', 'common/property_bag_unittest.cc', diff --git a/chrome/browser/net/test_url_fetcher_factory.cc b/chrome/common/net/test_url_fetcher_factory.cc index 7573646..6ab3a49 100644 --- a/chrome/browser/net/test_url_fetcher_factory.cc +++ b/chrome/common/net/test_url_fetcher_factory.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "chrome/browser/net/test_url_fetcher_factory.h" +#include "chrome/common/net/test_url_fetcher_factory.h" TestURLFetcher::TestURLFetcher(const GURL& url, URLFetcher::RequestType request_type, diff --git a/chrome/browser/net/test_url_fetcher_factory.h b/chrome/common/net/test_url_fetcher_factory.h index a6ea7c4..7e83f76 100644 --- a/chrome/browser/net/test_url_fetcher_factory.h +++ b/chrome/common/net/test_url_fetcher_factory.h @@ -2,13 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef CHROME_BROWSER_NET_TEST_URL_FETCHER_FACTORY_H_ -#define CHROME_BROWSER_NET_TEST_URL_FETCHER_FACTORY_H_ +#ifndef CHROME_COMMON_NET_TEST_URL_FETCHER_FACTORY_H_ +#define CHROME_COMMON_NET_TEST_URL_FETCHER_FACTORY_H_ #include <map> #include <string> -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" #include "googleurl/src/gurl.h" // TestURLFetcher and TestURLFetcherFactory are used for testing consumers of @@ -79,4 +79,4 @@ class TestURLFetcherFactory : public URLFetcher::Factory { DISALLOW_COPY_AND_ASSIGN(TestURLFetcherFactory); }; -#endif // CHROME_BROWSER_NET_TEST_URL_FETCHER_FACTORY_H_ +#endif // CHROME_COMMON_NET_TEST_URL_FETCHER_FACTORY_H_ diff --git a/chrome/browser/net/url_fetcher.cc b/chrome/common/net/url_fetcher.cc index 9b4923d..042ff2f 100644 --- a/chrome/browser/net/url_fetcher.cc +++ b/chrome/common/net/url_fetcher.cc @@ -2,14 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "chrome/browser/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher.h" #include "base/compiler_specific.h" #include "base/message_loop_proxy.h" #include "base/string_util.h" #include "base/thread.h" -#include "chrome/browser/net/url_fetcher_protect.h" -#include "chrome/browser/net/url_request_context_getter.h" +#include "chrome/common/net/url_fetcher_protect.h" +#include "chrome/common/net/url_request_context_getter.h" #include "googleurl/src/gurl.h" #include "net/base/load_flags.h" #include "net/base/io_buffer.h" diff --git a/chrome/browser/net/url_fetcher.h b/chrome/common/net/url_fetcher.h index b585124..519480e 100644 --- a/chrome/browser/net/url_fetcher.h +++ b/chrome/common/net/url_fetcher.h @@ -7,8 +7,8 @@ // reading. This is useful for callers who simply want to get the data from a // URL and don't care about all the nitty-gritty details. -#ifndef CHROME_BROWSER_NET_URL_FETCHER_H_ -#define CHROME_BROWSER_NET_URL_FETCHER_H_ +#ifndef CHROME_COMMON_NET_URL_FETCHER_H_ +#define CHROME_COMMON_NET_URL_FETCHER_H_ #include <string> @@ -192,4 +192,4 @@ class URLFetcher { DISALLOW_EVIL_CONSTRUCTORS(URLFetcher); }; -#endif // CHROME_BROWSER_NET_URL_FETCHER_H_ +#endif // CHROME_COMMON_NET_URL_FETCHER_H_ diff --git a/chrome/browser/net/url_fetcher_protect.cc b/chrome/common/net/url_fetcher_protect.cc index 748a675..05c8e2e2 100644 --- a/chrome/browser/net/url_fetcher_protect.cc +++ b/chrome/common/net/url_fetcher_protect.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "chrome/browser/net/url_fetcher_protect.h" +#include "chrome/common/net/url_fetcher_protect.h" #include "base/logging.h" diff --git a/chrome/browser/net/url_fetcher_protect.h b/chrome/common/net/url_fetcher_protect.h index f47e0d6..0b9c624 100644 --- a/chrome/browser/net/url_fetcher_protect.h +++ b/chrome/common/net/url_fetcher_protect.h @@ -5,8 +5,8 @@ // This file implements backoff in the suggest system so that we don't // DOS the Suggest servers when using URLFetcher. -#ifndef CHROME_BROWSER_NET_URL_FETCHER_PROTECT_H_ -#define CHROME_BROWSER_NET_URL_FETCHER_PROTECT_H_ +#ifndef CHROME_COMMON_NET_URL_FETCHER_PROTECT_H_ +#define CHROME_COMMON_NET_URL_FETCHER_PROTECT_H_ #include <map> #include <queue> @@ -143,4 +143,4 @@ class URLFetcherProtectManager { DISALLOW_COPY_AND_ASSIGN(URLFetcherProtectManager); }; -#endif // CHROME_BROWSER_NET_URL_FETCHER_PROTECT_H_ +#endif // CHROME_COMMON_NET_URL_FETCHER_PROTECT_H_ diff --git a/chrome/browser/net/url_fetcher_unittest.cc b/chrome/common/net/url_fetcher_unittest.cc index 2a35b04..fc79a85 100644 --- a/chrome/browser/net/url_fetcher_unittest.cc +++ b/chrome/common/net/url_fetcher_unittest.cc @@ -5,10 +5,10 @@ #include "base/message_loop_proxy.h" #include "base/thread.h" #include "base/waitable_event.h" -#include "chrome/browser/net/url_fetcher.h" -#include "chrome/browser/net/url_fetcher_protect.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/common/chrome_plugin_lib.h" +#include "chrome/common/net/url_fetcher.h" +#include "chrome/common/net/url_fetcher_protect.h" +#include "chrome/common/net/url_request_context_getter.h" #include "net/http/http_response_headers.h" #include "net/socket/ssl_test_util.h" #include "net/url_request/url_request_unittest.h" diff --git a/chrome/browser/net/url_request_context_getter.cc b/chrome/common/net/url_request_context_getter.cc index 64198b5..e58b794 100644 --- a/chrome/browser/net/url_request_context_getter.cc +++ b/chrome/common/net/url_request_context_getter.cc @@ -3,7 +3,7 @@ // found in the LICENSE file. #include "base/message_loop_proxy.h" -#include "chrome/browser/net/url_request_context_getter.h" +#include "chrome/common/net/url_request_context_getter.h" #include "net/url_request/url_request_context.h" net::CookieStore* URLRequestContextGetter::GetCookieStore() { diff --git a/chrome/browser/net/url_request_context_getter.h b/chrome/common/net/url_request_context_getter.h index 2cedeb5..dcc77b3 100644 --- a/chrome/browser/net/url_request_context_getter.h +++ b/chrome/common/net/url_request_context_getter.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef CHROME_BROWSER_NET_URL_REQUEST_CONTEXT_GETTER_H_ -#define CHROME_BROWSER_NET_URL_REQUEST_CONTEXT_GETTER_H_ +#ifndef CHROME_COMMON_NET_URL_REQUEST_CONTEXT_GETTER_H_ +#define CHROME_COMMON_NET_URL_REQUEST_CONTEXT_GETTER_H_ #include "base/ref_counted.h" #include "base/task.h" @@ -51,5 +51,5 @@ struct URLRequestContextGetterTraits { } }; -#endif // CHROME_BROWSER_NET_URL_REQUEST_CONTEXT_GETTER_H_ +#endif // CHROME_COMMON_NET_URL_REQUEST_CONTEXT_GETTER_H_ diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc index db98fea..4481105 100644 --- a/chrome/test/testing_profile.cc +++ b/chrome/test/testing_profile.cc @@ -12,10 +12,10 @@ #include "chrome/browser/bookmarks/bookmark_model.h" #include "chrome/browser/dom_ui/ntp_resource_cache.h" #include "chrome/browser/history/history_backend.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/sessions/session_service.h" #include "chrome/browser/sync/profile_sync_service_mock.h" #include "chrome/common/chrome_constants.h" +#include "chrome/common/net/url_request_context_getter.h" #include "chrome/common/notification_service.h" #include "net/url_request/url_request_context.h" #include "testing/gmock/include/gmock/gmock.h" diff --git a/chrome/test/testing_profile.h b/chrome/test/testing_profile.h index 7c293e9..1edf867 100644 --- a/chrome/test/testing_profile.h +++ b/chrome/test/testing_profile.h @@ -19,10 +19,10 @@ #include "chrome/browser/history/history.h" #include "chrome/browser/in_process_webkit/webkit_context.h" #include "chrome/browser/json_pref_store.h" -#include "chrome/browser/net/url_request_context_getter.h" #include "chrome/browser/pref_service.h" #include "chrome/browser/profile.h" #include "chrome/browser/search_engines/template_url_model.h" +#include "chrome/common/net/url_request_context_getter.h" #include "net/base/cookie_monster.h" class ProfileSyncService; |