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

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

Issue 2261103002: Use modified URLRequest::Read() and delegate methods in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@URLRequestRead
Patch Set: comments Created 4 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/url_request_context_adapter.h" 5 #include "components/cronet/android/url_request_context_adapter.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <limits> 10 #include <limits>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const net::CompletionCallback& callback, 72 const net::CompletionCallback& callback,
73 const net::HttpResponseHeaders* original_response_headers, 73 const net::HttpResponseHeaders* original_response_headers,
74 scoped_refptr<net::HttpResponseHeaders>* _response_headers, 74 scoped_refptr<net::HttpResponseHeaders>* _response_headers,
75 GURL* allowed_unsafe_redirect_url) override { 75 GURL* allowed_unsafe_redirect_url) override {
76 return net::OK; 76 return net::OK;
77 } 77 }
78 78
79 void OnBeforeRedirect(net::URLRequest* request, 79 void OnBeforeRedirect(net::URLRequest* request,
80 const GURL& new_location) override {} 80 const GURL& new_location) override {}
81 81
82 void OnResponseStarted(net::URLRequest* request) override {} 82 void OnResponseStarted(net::URLRequest* request, int net_error) override {}
83 83
84 void OnCompleted(net::URLRequest* request, bool started) override {} 84 void OnCompleted(net::URLRequest* request,
85 bool started,
86 int net_error) override {}
85 87
86 void OnURLRequestDestroyed(net::URLRequest* request) override {} 88 void OnURLRequestDestroyed(net::URLRequest* request) override {}
87 89
88 void OnPACScriptError(int line_number, 90 void OnPACScriptError(int line_number,
89 const base::string16& error) override {} 91 const base::string16& error) override {}
90 92
91 NetworkDelegate::AuthRequiredResponse OnAuthRequired( 93 NetworkDelegate::AuthRequiredResponse OnAuthRequired(
92 net::URLRequest* request, 94 net::URLRequest* request,
93 const net::AuthChallengeInfo& auth_info, 95 const net::AuthChallengeInfo& auth_info,
94 const AuthCallback& callback, 96 const AuthCallback& callback,
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 } 317 }
316 } 318 }
317 319
318 void NetLogObserver::OnAddEntry(const net::NetLog::Entry& entry) { 320 void NetLogObserver::OnAddEntry(const net::NetLog::Entry& entry) {
319 VLOG(2) << "Net log entry: type=" << static_cast<int>(entry.type()) 321 VLOG(2) << "Net log entry: type=" << static_cast<int>(entry.type())
320 << ", source=" << static_cast<int>(entry.source().type) 322 << ", source=" << static_cast<int>(entry.source().type)
321 << ", phase=" << static_cast<int>(entry.phase()); 323 << ", phase=" << static_cast<int>(entry.phase());
322 } 324 }
323 325
324 } // namespace cronet 326 } // namespace cronet
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698