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

Side by Side Diff: net/url_request/url_fetcher_core.h

Issue 26784003: google_apis: Implement google_apis::ResponseWriter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment Created 7 years, 1 month 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 | « net/tools/get_server_time/get_server_time.cc ('k') | net/url_request/url_fetcher_core.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 #ifndef NET_URL_REQUEST_URL_FETCHER_CORE_H_ 5 #ifndef NET_URL_REQUEST_URL_FETCHER_CORE_H_
6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_ 6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 // Read response bytes from the request. 198 // Read response bytes from the request.
199 void ReadResponse(); 199 void ReadResponse();
200 200
201 // Notify Delegate about the progress of upload/download. 201 // Notify Delegate about the progress of upload/download.
202 void InformDelegateUploadProgress(); 202 void InformDelegateUploadProgress();
203 void InformDelegateUploadProgressInDelegateThread(int64 current, int64 total); 203 void InformDelegateUploadProgressInDelegateThread(int64 current, int64 total);
204 void InformDelegateDownloadProgress(); 204 void InformDelegateDownloadProgress();
205 void InformDelegateDownloadProgressInDelegateThread(int64 current, 205 void InformDelegateDownloadProgressInDelegateThread(int64 current,
206 int64 total); 206 int64 total);
207 void InformDelegateDownloadDataIfNecessary(int bytes_read);
208 void InformDelegateDownloadDataInDelegateThread(
209 scoped_ptr<std::string> download_data);
210 207
211 URLFetcher* fetcher_; // Corresponding fetcher object 208 URLFetcher* fetcher_; // Corresponding fetcher object
212 GURL original_url_; // The URL we were asked to fetch 209 GURL original_url_; // The URL we were asked to fetch
213 GURL url_; // The URL we eventually wound up at 210 GURL url_; // The URL we eventually wound up at
214 URLFetcher::RequestType request_type_; // What type of request is this? 211 URLFetcher::RequestType request_type_; // What type of request is this?
215 URLRequestStatus status_; // Status of the request 212 URLRequestStatus status_; // Status of the request
216 URLFetcherDelegate* delegate_; // Object to notify on completion 213 URLFetcherDelegate* delegate_; // Object to notify on completion
217 // Task runner for the creating thread. Used to interact with the delegate. 214 // Task runner for the creating thread. Used to interact with the delegate.
218 scoped_refptr<base::SingleThreadTaskRunner> delegate_task_runner_; 215 scoped_refptr<base::SingleThreadTaskRunner> delegate_task_runner_;
219 // Task runner for network operations. 216 // Task runner for network operations.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 base::debug::StackTrace stack_trace_; 315 base::debug::StackTrace stack_trace_;
319 316
320 static base::LazyInstance<Registry> g_registry; 317 static base::LazyInstance<Registry> g_registry;
321 318
322 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); 319 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore);
323 }; 320 };
324 321
325 } // namespace net 322 } // namespace net
326 323
327 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ 324 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_
OLDNEW
« no previous file with comments | « net/tools/get_server_time/get_server_time.cc ('k') | net/url_request/url_fetcher_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698