OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |