OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/shell/browser/shell_network_delegate.h" | 5 #include "content/shell/browser/shell_network_delegate.h" |
6 | 6 |
7 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
8 #include "net/base/static_cookie_policy.h" | 8 #include "net/base/static_cookie_policy.h" |
9 #include "net/url_request/url_request.h" | 9 #include "net/url_request/url_request.h" |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 void ShellNetworkDelegate::OnSendHeaders( | 41 void ShellNetworkDelegate::OnSendHeaders( |
42 net::URLRequest* request, | 42 net::URLRequest* request, |
43 const net::HttpRequestHeaders& headers) { | 43 const net::HttpRequestHeaders& headers) { |
44 } | 44 } |
45 | 45 |
46 int ShellNetworkDelegate::OnHeadersReceived( | 46 int ShellNetworkDelegate::OnHeadersReceived( |
47 net::URLRequest* request, | 47 net::URLRequest* request, |
48 const net::CompletionCallback& callback, | 48 const net::CompletionCallback& callback, |
49 const net::HttpResponseHeaders* original_response_headers, | 49 const net::HttpResponseHeaders* original_response_headers, |
50 scoped_refptr<net::HttpResponseHeaders>* override_response_headers) { | 50 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, |
| 51 GURL* allowed_unsafe_redirect_url) { |
51 return net::OK; | 52 return net::OK; |
52 } | 53 } |
53 | 54 |
54 void ShellNetworkDelegate::OnBeforeRedirect(net::URLRequest* request, | 55 void ShellNetworkDelegate::OnBeforeRedirect(net::URLRequest* request, |
55 const GURL& new_location) { | 56 const GURL& new_location) { |
56 } | 57 } |
57 | 58 |
58 void ShellNetworkDelegate::OnResponseStarted(net::URLRequest* request) { | 59 void ShellNetworkDelegate::OnResponseStarted(net::URLRequest* request) { |
59 } | 60 } |
60 | 61 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 return false; | 114 return false; |
114 } | 115 } |
115 | 116 |
116 int ShellNetworkDelegate::OnBeforeSocketStreamConnect( | 117 int ShellNetworkDelegate::OnBeforeSocketStreamConnect( |
117 net::SocketStream* socket, | 118 net::SocketStream* socket, |
118 const net::CompletionCallback& callback) { | 119 const net::CompletionCallback& callback) { |
119 return net::OK; | 120 return net::OK; |
120 } | 121 } |
121 | 122 |
122 } // namespace content | 123 } // namespace content |
OLD | NEW |