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

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

Issue 9572001: Do cookie checks in NetworkDelegate instead of the URLRequest::Delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix Created 8 years, 9 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 #ifndef CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_ 5 #ifndef CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_
6 #define CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_ 6 #define CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual void SetLoadFlags(int load_flags) OVERRIDE; 72 virtual void SetLoadFlags(int load_flags) OVERRIDE;
73 virtual int GetLoadFlags() const OVERRIDE; 73 virtual int GetLoadFlags() const OVERRIDE;
74 virtual void SetReferrer(const std::string& referrer) OVERRIDE; 74 virtual void SetReferrer(const std::string& referrer) OVERRIDE;
75 virtual void SetExtraRequestHeaders( 75 virtual void SetExtraRequestHeaders(
76 const std::string& extra_request_headers) OVERRIDE; 76 const std::string& extra_request_headers) OVERRIDE;
77 virtual void AddExtraRequestHeader(const std::string& header_line) OVERRIDE; 77 virtual void AddExtraRequestHeader(const std::string& header_line) OVERRIDE;
78 virtual void GetExtraRequestHeaders( 78 virtual void GetExtraRequestHeaders(
79 net::HttpRequestHeaders* headers) OVERRIDE; 79 net::HttpRequestHeaders* headers) OVERRIDE;
80 virtual void SetRequestContext( 80 virtual void SetRequestContext(
81 net::URLRequestContextGetter* request_context_getter) OVERRIDE; 81 net::URLRequestContextGetter* request_context_getter) OVERRIDE;
82 virtual void SetContentURLRequestUserData(
83 content::ContentURLRequestUserData* user_data) OVERRIDE;
82 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; 84 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE;
83 virtual void SetMaxRetries(int max_retries) OVERRIDE; 85 virtual void SetMaxRetries(int max_retries) OVERRIDE;
84 virtual int GetMaxRetries() const OVERRIDE; 86 virtual int GetMaxRetries() const OVERRIDE;
85 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; 87 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE;
86 virtual void SaveResponseToTemporaryFile( 88 virtual void SaveResponseToTemporaryFile(
87 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE; 89 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE;
88 virtual net::HttpResponseHeaders* GetResponseHeaders() const OVERRIDE; 90 virtual net::HttpResponseHeaders* GetResponseHeaders() const OVERRIDE;
89 virtual net::HostPortPair GetSocketAddress() const OVERRIDE; 91 virtual net::HostPortPair GetSocketAddress() const OVERRIDE;
90 virtual bool WasFetchedViaProxy() const OVERRIDE; 92 virtual bool WasFetchedViaProxy() const OVERRIDE;
91 virtual void Start() OVERRIDE; 93 virtual void Start() OVERRIDE;
92 virtual void StartWithRequestContextGetter( 94 virtual void StartWithRequestContextGetterAndUserData(
93 net::URLRequestContextGetter* request_context_getter) OVERRIDE; 95 net::URLRequestContextGetter* request_context_getter,
96 content::ContentURLRequestUserData* user_data) OVERRIDE;
94 97
95 // URL we were created with. Because of how we're using URLFetcher GetURL() 98 // URL we were created with. Because of how we're using URLFetcher GetURL()
96 // always returns an empty URL. Chances are you'll want to use 99 // always returns an empty URL. Chances are you'll want to use
97 // GetOriginalURL() in your tests. 100 // GetOriginalURL() in your tests.
98 virtual const GURL& GetOriginalURL() const OVERRIDE; 101 virtual const GURL& GetOriginalURL() const OVERRIDE;
99 virtual const GURL& GetURL() const OVERRIDE; 102 virtual const GURL& GetURL() const OVERRIDE;
100 virtual const net::URLRequestStatus& GetStatus() const OVERRIDE; 103 virtual const net::URLRequestStatus& GetStatus() const OVERRIDE;
101 virtual int GetResponseCode() const OVERRIDE; 104 virtual int GetResponseCode() const OVERRIDE;
102 virtual const net::ResponseCookies& GetCookies() const OVERRIDE; 105 virtual const net::ResponseCookies& GetCookies() const OVERRIDE;
103 virtual bool FileErrorOccurred( 106 virtual bool FileErrorOccurred(
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // This method will create a real URLFetcher. 280 // This method will create a real URLFetcher.
278 virtual content::URLFetcher* CreateURLFetcher( 281 virtual content::URLFetcher* CreateURLFetcher(
279 int id, 282 int id,
280 const GURL& url, 283 const GURL& url,
281 content::URLFetcher::RequestType request_type, 284 content::URLFetcher::RequestType request_type,
282 content::URLFetcherDelegate* d) OVERRIDE; 285 content::URLFetcherDelegate* d) OVERRIDE;
283 286
284 }; 287 };
285 288
286 #endif // CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_ 289 #endif // CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698