Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1474)

Side by Side Diff: content/test/test_url_fetcher_factory.cc

Issue 10383271: Make AssociateWithRenderView() a free function in the 'content' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use correct namespace Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/test/test_url_fetcher_factory.h" 5 #include "content/test/test_url_fetcher_factory.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 void TestURLFetcher::GetExtraRequestHeaders( 83 void TestURLFetcher::GetExtraRequestHeaders(
84 net::HttpRequestHeaders* headers) const { 84 net::HttpRequestHeaders* headers) const {
85 *headers = fake_extra_request_headers_; 85 *headers = fake_extra_request_headers_;
86 } 86 }
87 87
88 void TestURLFetcher::SetRequestContext( 88 void TestURLFetcher::SetRequestContext(
89 net::URLRequestContextGetter* request_context_getter) { 89 net::URLRequestContextGetter* request_context_getter) {
90 } 90 }
91 91
92 void TestURLFetcher::AssociateWithRenderView( 92 void TestURLFetcher::SetFirstPartyForCookies(
93 const GURL& first_party_for_cookies, 93 const GURL& first_party_for_cookies) {
94 int render_process_id, 94 }
95 int render_view_id) { 95
96 void TestURLFetcher::SetURLRequestUserData(
97 const void* key,
98 const CreateDataCallback& create_data_callback) {
96 } 99 }
97 100
98 void TestURLFetcher::SetAutomaticallyRetryOn5xx(bool retry) { 101 void TestURLFetcher::SetAutomaticallyRetryOn5xx(bool retry) {
99 } 102 }
100 103
101 void TestURLFetcher::SetMaxRetries(int max_retries) { 104 void TestURLFetcher::SetMaxRetries(int max_retries) {
102 fake_max_retries_ = max_retries; 105 fake_max_retries_ = max_retries;
103 } 106 }
104 107
105 int TestURLFetcher::GetMaxRetries() const { 108 int TestURLFetcher::GetMaxRetries() const {
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 330
328 URLFetcherImplFactory::~URLFetcherImplFactory() {} 331 URLFetcherImplFactory::~URLFetcherImplFactory() {}
329 332
330 content::URLFetcher* URLFetcherImplFactory::CreateURLFetcher( 333 content::URLFetcher* URLFetcherImplFactory::CreateURLFetcher(
331 int id, 334 int id,
332 const GURL& url, 335 const GURL& url,
333 content::URLFetcher::RequestType request_type, 336 content::URLFetcher::RequestType request_type,
334 content::URLFetcherDelegate* d) { 337 content::URLFetcherDelegate* d) {
335 return new URLFetcherImpl(url, request_type, d); 338 return new URLFetcherImpl(url, request_type, d);
336 } 339 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698