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

Side by Side Diff: content/common/net/url_fetcher_impl.h

Issue 10383271: Make AssociateWithRenderView() a free function in the 'content' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: actually rename fn 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
« no previous file with comments | « content/common/net/url_fetcher_core.cc ('k') | content/common/net/url_fetcher_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This file contains URLFetcher, a wrapper around net::URLRequest that handles 5 // This file contains URLFetcher, a wrapper around net::URLRequest that handles
6 // low-level details like thread safety, ref counting, and incremental buffer 6 // low-level details like thread safety, ref counting, and incremental buffer
7 // reading. This is useful for callers who simply want to get the data from a 7 // reading. This is useful for callers who simply want to get the data from a
8 // URL and don't care about all the nitty-gritty details. 8 // URL and don't care about all the nitty-gritty details.
9 // 9 //
10 // NOTE(willchan): Only one "IO" thread is supported for URLFetcher. This is a 10 // NOTE(willchan): Only one "IO" thread is supported for URLFetcher. This is a
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual void SetLoadFlags(int load_flags) OVERRIDE; 46 virtual void SetLoadFlags(int load_flags) OVERRIDE;
47 virtual int GetLoadFlags() const OVERRIDE; 47 virtual int GetLoadFlags() const OVERRIDE;
48 virtual void SetReferrer(const std::string& referrer) OVERRIDE; 48 virtual void SetReferrer(const std::string& referrer) OVERRIDE;
49 virtual void SetExtraRequestHeaders( 49 virtual void SetExtraRequestHeaders(
50 const std::string& extra_request_headers) OVERRIDE; 50 const std::string& extra_request_headers) OVERRIDE;
51 virtual void AddExtraRequestHeader(const std::string& header_line) OVERRIDE; 51 virtual void AddExtraRequestHeader(const std::string& header_line) OVERRIDE;
52 virtual void GetExtraRequestHeaders( 52 virtual void GetExtraRequestHeaders(
53 net::HttpRequestHeaders* headers) const OVERRIDE; 53 net::HttpRequestHeaders* headers) const OVERRIDE;
54 virtual void SetRequestContext( 54 virtual void SetRequestContext(
55 net::URLRequestContextGetter* request_context_getter) OVERRIDE; 55 net::URLRequestContextGetter* request_context_getter) OVERRIDE;
56 virtual void AssociateWithRenderView(const GURL& first_party_for_cookies, 56 virtual void SetFirstPartyForCookies(
57 int render_process_id, 57 const GURL& first_party_for_cookies) OVERRIDE;
58 int render_view_id) OVERRIDE; 58 virtual void SetURLRequestUserData(
59 const void* key,
60 const CreateDataCallback& create_data_callback) OVERRIDE;
59 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; 61 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE;
60 virtual void SetMaxRetries(int max_retries) OVERRIDE; 62 virtual void SetMaxRetries(int max_retries) OVERRIDE;
61 virtual int GetMaxRetries() const OVERRIDE; 63 virtual int GetMaxRetries() const OVERRIDE;
62 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; 64 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE;
63 virtual void SaveResponseToFileAtPath( 65 virtual void SaveResponseToFileAtPath(
64 const FilePath& file_path, 66 const FilePath& file_path,
65 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE; 67 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE;
66 virtual void SaveResponseToTemporaryFile( 68 virtual void SaveResponseToTemporaryFile(
67 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE; 69 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE;
68 virtual net::HttpResponseHeaders* GetResponseHeaders() const OVERRIDE; 70 virtual net::HttpResponseHeaders* GetResponseHeaders() const OVERRIDE;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // 108 //
107 // NOTE: for safety, this should only be used through ScopedURLFetcherFactory! 109 // NOTE: for safety, this should only be used through ScopedURLFetcherFactory!
108 static void set_factory(content::URLFetcherFactory* factory); 110 static void set_factory(content::URLFetcherFactory* factory);
109 111
110 const scoped_refptr<content::URLFetcherCore> core_; 112 const scoped_refptr<content::URLFetcherCore> core_;
111 113
112 DISALLOW_COPY_AND_ASSIGN(URLFetcherImpl); 114 DISALLOW_COPY_AND_ASSIGN(URLFetcherImpl);
113 }; 115 };
114 116
115 #endif // CONTENT_COMMON_NET_URL_FETCHER_IMPL_H_ 117 #endif // CONTENT_COMMON_NET_URL_FETCHER_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/net/url_fetcher_core.cc ('k') | content/common/net/url_fetcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698