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

Side by Side Diff: components/cronet/android/url_request_context_adapter.cc

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, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "components/cronet/android/url_request_context_adapter.h" 5 #include "components/cronet/android/url_request_context_adapter.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 scoped_refptr<net::HttpResponseHeaders>* _response_headers, 62 scoped_refptr<net::HttpResponseHeaders>* _response_headers,
63 GURL* allowed_unsafe_redirect_url) override { 63 GURL* allowed_unsafe_redirect_url) override {
64 return net::OK; 64 return net::OK;
65 } 65 }
66 66
67 void OnBeforeRedirect(net::URLRequest* request, 67 void OnBeforeRedirect(net::URLRequest* request,
68 const GURL& new_location) override {} 68 const GURL& new_location) override {}
69 69
70 void OnResponseStarted(net::URLRequest* request) override {} 70 void OnResponseStarted(net::URLRequest* request) override {}
71 71
72 void OnRawBytesRead(const net::URLRequest& request,
73 int bytes_read) override {}
74
75 void OnCompleted(net::URLRequest* request, bool started) override {} 72 void OnCompleted(net::URLRequest* request, bool started) override {}
76 73
77 void OnURLRequestDestroyed(net::URLRequest* request) override {} 74 void OnURLRequestDestroyed(net::URLRequest* request) override {}
78 75
79 void OnPACScriptError(int line_number, 76 void OnPACScriptError(int line_number,
80 const base::string16& error) override {} 77 const base::string16& error) override {}
81 78
82 NetworkDelegate::AuthRequiredResponse OnAuthRequired( 79 NetworkDelegate::AuthRequiredResponse OnAuthRequired(
83 net::URLRequest* request, 80 net::URLRequest* request,
84 const net::AuthChallengeInfo& auth_info, 81 const net::AuthChallengeInfo& auth_info,
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 write_to_file_observer_.reset(); 304 write_to_file_observer_.reset();
308 } 305 }
309 } 306 }
310 307
311 void NetLogObserver::OnAddEntry(const net::NetLog::Entry& entry) { 308 void NetLogObserver::OnAddEntry(const net::NetLog::Entry& entry) {
312 VLOG(2) << "Net log entry: type=" << entry.type() 309 VLOG(2) << "Net log entry: type=" << entry.type()
313 << ", source=" << entry.source().type << ", phase=" << entry.phase(); 310 << ", source=" << entry.source().type << ", phase=" << entry.phase();
314 } 311 }
315 312
316 } // namespace cronet 313 } // namespace cronet
OLDNEW
« no previous file with comments | « components/cronet/android/cronet_url_request_context_adapter.cc ('k') | content/shell/browser/shell_network_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698