summaryrefslogtreecommitdiffstats
path: root/content/test
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-02 13:47:01 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-02 13:47:01 +0000
commitd2106bc916c93d388c87327fd390ef35a85ec991 (patch)
treed7d38cd5bfd49d1e0672086ea04daa5e98871d68 /content/test
parent40cb8e0cc19c8b2d192a1d62389cc0da34725fea (diff)
downloadchromium_src-d2106bc916c93d388c87327fd390ef35a85ec991.zip
chromium_src-d2106bc916c93d388c87327fd390ef35a85ec991.tar.gz
chromium_src-d2106bc916c93d388c87327fd390ef35a85ec991.tar.bz2
Move URLFetcherImpl::Core into its own class and file
This is the first step of moving URLFetcher to net. This turns URLFetcherImpl into a wrapper around URLFetcherCore. Remove some unused functions. Make URLFetcher::GetExtraRequestHeaders() const. BUG=118220 TEST= Review URL: http://codereview.chromium.org/9838031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130119 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test')
-rw-r--r--content/test/test_url_fetcher_factory.cc3
-rw-r--r--content/test/test_url_fetcher_factory.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/content/test/test_url_fetcher_factory.cc b/content/test/test_url_fetcher_factory.cc
index 41d1e31..d8deeec 100644
--- a/content/test/test_url_fetcher_factory.cc
+++ b/content/test/test_url_fetcher_factory.cc
@@ -80,7 +80,8 @@ void TestURLFetcher::AddExtraRequestHeader(const std::string& header_line) {
fake_extra_request_headers_.AddHeaderFromString(header_line);
}
-void TestURLFetcher::GetExtraRequestHeaders(net::HttpRequestHeaders* headers) {
+void TestURLFetcher::GetExtraRequestHeaders(
+ net::HttpRequestHeaders* headers) const {
*headers = fake_extra_request_headers_;
}
diff --git a/content/test/test_url_fetcher_factory.h b/content/test/test_url_fetcher_factory.h
index cf809d7..c26a666 100644
--- a/content/test/test_url_fetcher_factory.h
+++ b/content/test/test_url_fetcher_factory.h
@@ -77,7 +77,7 @@ class TestURLFetcher : public content::URLFetcher {
const std::string& extra_request_headers) OVERRIDE;
virtual void AddExtraRequestHeader(const std::string& header_line) OVERRIDE;
virtual void GetExtraRequestHeaders(
- net::HttpRequestHeaders* headers) OVERRIDE;
+ net::HttpRequestHeaders* headers) const OVERRIDE;
virtual void SetRequestContext(
net::URLRequestContextGetter* request_context_getter) OVERRIDE;
virtual void AssociateWithRenderView(const GURL& first_party_for_cookies,