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

Side by Side Diff: net/cronet/android/url_request_context_peer.cc

Issue 154473002: Support redirectUrl at onHeadersReceived in WebRequest / DWR API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix WebRequestRulesRegistrySimpleTest.StageChecker test Created 6 years, 9 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/base/network_delegate.cc ('k') | net/proxy/network_delegate_error_observer_unittest.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 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 "net/cronet/android/url_request_context_peer.h" 5 #include "net/cronet/android/url_request_context_peer.h"
6 6
7 #include "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 #include "net/cert/cert_verifier.h" 8 #include "net/cert/cert_verifier.h"
9 #include "net/http/http_auth_handler_factory.h" 9 #include "net/http/http_auth_handler_factory.h"
10 #include "net/http/http_network_layer.h" 10 #include "net/http/http_network_layer.h"
(...skipping 26 matching lines...) Expand all
37 return net::OK; 37 return net::OK;
38 } 38 }
39 39
40 virtual void OnSendHeaders(net::URLRequest* request, 40 virtual void OnSendHeaders(net::URLRequest* request,
41 const net::HttpRequestHeaders& headers) OVERRIDE {} 41 const net::HttpRequestHeaders& headers) OVERRIDE {}
42 42
43 virtual int OnHeadersReceived( 43 virtual int OnHeadersReceived(
44 net::URLRequest* request, 44 net::URLRequest* request,
45 const net::CompletionCallback& callback, 45 const net::CompletionCallback& callback,
46 const net::HttpResponseHeaders* original_response_headers, 46 const net::HttpResponseHeaders* original_response_headers,
47 scoped_refptr<net::HttpResponseHeaders>* _response_headers) OVERRIDE { 47 scoped_refptr<net::HttpResponseHeaders>* _response_headers,
48 GURL* allowed_unsafe_redirect_url) OVERRIDE {
48 return net::OK; 49 return net::OK;
49 } 50 }
50 51
51 virtual void OnBeforeRedirect(net::URLRequest* request, 52 virtual void OnBeforeRedirect(net::URLRequest* request,
52 const GURL& new_location) OVERRIDE {} 53 const GURL& new_location) OVERRIDE {}
53 54
54 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE {} 55 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE {}
55 56
56 virtual void OnRawBytesRead(const net::URLRequest& request, 57 virtual void OnRawBytesRead(const net::URLRequest& request,
57 int bytes_read) OVERRIDE {} 58 int bytes_read) OVERRIDE {}
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 return network_thread_->message_loop_proxy(); 222 return network_thread_->message_loop_proxy();
222 } 223 }
223 224
224 void NetLogObserver::OnAddEntry(const net::NetLog::Entry& entry) { 225 void NetLogObserver::OnAddEntry(const net::NetLog::Entry& entry) {
225 if (VLOG_IS_ON(2)) { 226 if (VLOG_IS_ON(2)) {
226 VLOG(2) << "Net log entry: type=" << entry.type() 227 VLOG(2) << "Net log entry: type=" << entry.type()
227 << ", source=" << entry.source().type 228 << ", source=" << entry.source().type
228 << ", phase=" << entry.phase(); 229 << ", phase=" << entry.phase();
229 } 230 }
230 } 231 }
OLDNEW
« no previous file with comments | « net/base/network_delegate.cc ('k') | net/proxy/network_delegate_error_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698