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

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

Issue 1284993005: Notify NetworkDelegate when bytes have been received over the network. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed empty cronet OnRawBytesRead implementation Created 5 years, 3 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
« no previous file with comments | « net/url_request/url_request_context_builder.cc ('k') | net/url_request/url_request_http_job.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_REQUEST_HTTP_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
14 #include "base/time/time.h" 16 #include "base/time/time.h"
15 #include "net/base/auth.h" 17 #include "net/base/auth.h"
16 #include "net/base/completion_callback.h" 18 #include "net/base/completion_callback.h"
17 #include "net/base/net_export.h" 19 #include "net/base/net_export.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // a callback from the NetworkDelegate. Used as a fail-fast mechanism. 269 // a callback from the NetworkDelegate. Used as a fail-fast mechanism.
268 // True if we are waiting a callback and 270 // True if we are waiting a callback and
269 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, 271 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet,
270 // to inform the NetworkDelegate that it may not call back. 272 // to inform the NetworkDelegate that it may not call back.
271 bool awaiting_callback_; 273 bool awaiting_callback_;
272 274
273 const HttpUserAgentSettings* http_user_agent_settings_; 275 const HttpUserAgentSettings* http_user_agent_settings_;
274 276
275 URLRequestBackoffManager* backoff_manager_; 277 URLRequestBackoffManager* backoff_manager_;
276 278
279 // Keeps track of total received bytes over the network from transactions used
280 // by this job that have already been destroyed.
281 int64_t total_received_bytes_from_previous_transactions_;
282
277 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; 283 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_;
278 284
279 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); 285 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob);
280 }; 286 };
281 287
282 } // namespace net 288 } // namespace net
283 289
284 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 290 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_context_builder.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698