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

Side by Side Diff: chrome/common/net/url_fetcher.h

Issue 6308009: If user had consented for metrics reporting, send speech input request origin to the server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 11 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 | « chrome/chrome_common.gypi ('k') | chrome/common/net/url_fetcher.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 void set_upload_data(const std::string& upload_content_type, 132 void set_upload_data(const std::string& upload_content_type,
133 const std::string& upload_content); 133 const std::string& upload_content);
134 134
135 // Set one or more load flags as defined in net/base/load_flags.h. Must be 135 // Set one or more load flags as defined in net/base/load_flags.h. Must be
136 // called before the request is started. 136 // called before the request is started.
137 void set_load_flags(int load_flags); 137 void set_load_flags(int load_flags);
138 138
139 // Returns the current load flags. 139 // Returns the current load flags.
140 int load_flags() const; 140 int load_flags() const;
141 141
142 // The referrer URL for the request. Must be called before the request is
143 // started.
144 void set_referrer(const std::string& referrer);
145
142 // Set extra headers on the request. Must be called before the request 146 // Set extra headers on the request. Must be called before the request
143 // is started. 147 // is started.
144 void set_extra_request_headers(const std::string& extra_request_headers); 148 void set_extra_request_headers(const std::string& extra_request_headers);
145 149
146 // Set the net::URLRequestContext on the request. Must be called before the 150 // Set the net::URLRequestContext on the request. Must be called before the
147 // request is started. 151 // request is started.
148 void set_request_context( 152 void set_request_context(
149 URLRequestContextGetter* request_context_getter); 153 URLRequestContextGetter* request_context_getter);
150 154
151 // If |retry| is false, 5xx responses will be propagated to the observer, 155 // If |retry| is false, 5xx responses will be propagated to the observer,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 base::TimeDelta backoff_delay_; 217 base::TimeDelta backoff_delay_;
214 // Maximum retries allowed. 218 // Maximum retries allowed.
215 int max_retries_; 219 int max_retries_;
216 220
217 static bool g_interception_enabled; 221 static bool g_interception_enabled;
218 222
219 DISALLOW_COPY_AND_ASSIGN(URLFetcher); 223 DISALLOW_COPY_AND_ASSIGN(URLFetcher);
220 }; 224 };
221 225
222 #endif // CHROME_COMMON_NET_URL_FETCHER_H_ 226 #endif // CHROME_COMMON_NET_URL_FETCHER_H_
OLDNEW
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/net/url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698