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

Side by Side Diff: components/cronet/android/cronet_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, 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
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/cronet_url_request_context_adapter.h" 5 #include "components/cronet/android/cronet_url_request_context_adapter.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 scoped_refptr<net::HttpResponseHeaders>* _response_headers, 70 scoped_refptr<net::HttpResponseHeaders>* _response_headers,
71 GURL* allowed_unsafe_redirect_url) override { 71 GURL* allowed_unsafe_redirect_url) override {
72 return net::OK; 72 return net::OK;
73 } 73 }
74 74
75 void OnBeforeRedirect(net::URLRequest* request, 75 void OnBeforeRedirect(net::URLRequest* request,
76 const GURL& new_location) override {} 76 const GURL& new_location) override {}
77 77
78 void OnResponseStarted(net::URLRequest* request) override {} 78 void OnResponseStarted(net::URLRequest* request) override {}
79 79
80 void OnRawBytesRead(const net::URLRequest& request, int bytes_read) override {
81 }
82
83 void OnCompleted(net::URLRequest* request, bool started) override {} 80 void OnCompleted(net::URLRequest* request, bool started) override {}
84 81
85 void OnURLRequestDestroyed(net::URLRequest* request) override {} 82 void OnURLRequestDestroyed(net::URLRequest* request) override {}
86 83
87 void OnPACScriptError(int line_number, const base::string16& error) override { 84 void OnPACScriptError(int line_number, const base::string16& error) override {
88 } 85 }
89 86
90 NetworkDelegate::AuthRequiredResponse OnAuthRequired( 87 NetworkDelegate::AuthRequiredResponse OnAuthRequired(
91 net::URLRequest* request, 88 net::URLRequest* request,
92 const net::AuthChallengeInfo& auth_info, 89 const net::AuthChallengeInfo& auth_info,
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 } 417 }
421 418
422 static jint SetMinLogLevel(JNIEnv* env, jclass jcaller, jint jlog_level) { 419 static jint SetMinLogLevel(JNIEnv* env, jclass jcaller, jint jlog_level) {
423 jint old_log_level = static_cast<jint>(logging::GetMinLogLevel()); 420 jint old_log_level = static_cast<jint>(logging::GetMinLogLevel());
424 // MinLogLevel is global, shared by all URLRequestContexts. 421 // MinLogLevel is global, shared by all URLRequestContexts.
425 logging::SetMinLogLevel(static_cast<int>(jlog_level)); 422 logging::SetMinLogLevel(static_cast<int>(jlog_level));
426 return old_log_level; 423 return old_log_level;
427 } 424 }
428 425
429 } // namespace cronet 426 } // namespace cronet
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager.cc ('k') | components/cronet/android/url_request_context_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698