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

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

Issue 19004: Change URLRequest to use a ref-counted buffer for actual IO.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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/browser/download/save_package.cc ('k') | chrome/browser/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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 URLRequest that handles 5 // This file contains URLFetcher, a wrapper around 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 #ifndef CHROME_BROWSER_URL_FETCHER_H__ 10 #ifndef CHROME_BROWSER_URL_FETCHER_H__
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 GURL original_url_; // The URL we were asked to fetch 178 GURL original_url_; // The URL we were asked to fetch
179 GURL url_; // The URL we eventually wound up at 179 GURL url_; // The URL we eventually wound up at
180 RequestType request_type_; // What type of request is this? 180 RequestType request_type_; // What type of request is this?
181 URLFetcher::Delegate* delegate_; // Object to notify on completion 181 URLFetcher::Delegate* delegate_; // Object to notify on completion
182 MessageLoop* delegate_loop_; // Message loop of the creating thread 182 MessageLoop* delegate_loop_; // Message loop of the creating thread
183 MessageLoop* io_loop_; // Message loop of the IO thread 183 MessageLoop* io_loop_; // Message loop of the IO thread
184 URLRequest* request_; // The actual request this wraps 184 URLRequest* request_; // The actual request this wraps
185 int load_flags_; // Flags for the load operation 185 int load_flags_; // Flags for the load operation
186 int response_code_; // HTTP status code for the request 186 int response_code_; // HTTP status code for the request
187 std::string data_; // Results of the request 187 std::string data_; // Results of the request
188 char buffer_[4096]; // Read buffer 188 scoped_refptr<net::IOBuffer> buffer_;
189 // Read buffer
189 scoped_refptr<URLRequestContext> request_context_; 190 scoped_refptr<URLRequestContext> request_context_;
190 // Cookie/cache info for the request 191 // Cookie/cache info for the request
191 ResponseCookies cookies_; // Response cookies 192 ResponseCookies cookies_; // Response cookies
192 std::string extra_request_headers_;// Extra headers for the request, if any 193 std::string extra_request_headers_;// Extra headers for the request, if any
193 scoped_refptr<net::HttpResponseHeaders> response_headers_; 194 scoped_refptr<net::HttpResponseHeaders> response_headers_;
194 195
195 std::string upload_content_; // HTTP POST payload 196 std::string upload_content_; // HTTP POST payload
196 std::string upload_content_type_; // MIME type of POST payload 197 std::string upload_content_type_; // MIME type of POST payload
197 198
198 // The overload protection entry for this URL. This is used to 199 // The overload protection entry for this URL. This is used to
(...skipping 11 matching lines...) Expand all
210 DISALLOW_EVIL_CONSTRUCTORS(Core); 211 DISALLOW_EVIL_CONSTRUCTORS(Core);
211 }; 212 };
212 213
213 scoped_refptr<Core> core_; 214 scoped_refptr<Core> core_;
214 215
215 DISALLOW_EVIL_CONSTRUCTORS(URLFetcher); 216 DISALLOW_EVIL_CONSTRUCTORS(URLFetcher);
216 }; 217 };
217 218
218 #endif // CHROME_BROWSER_URL_FETCHER_H__ 219 #endif // CHROME_BROWSER_URL_FETCHER_H__
219 220
OLDNEW
« no previous file with comments | « chrome/browser/download/save_package.cc ('k') | chrome/browser/net/url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698