| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/base/network_delegate.h" | 5 #include "net/base/network_delegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "net/base/load_flags.h" | 8 #include "net/base/load_flags.h" |
| 9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
| 10 #include "net/proxy/proxy_info.h" | 10 #include "net/proxy/proxy_info.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 return OnCanThrottleRequest(request); | 159 return OnCanThrottleRequest(request); |
| 160 } | 160 } |
| 161 | 161 |
| 162 bool NetworkDelegate::CanEnablePrivacyMode( | 162 bool NetworkDelegate::CanEnablePrivacyMode( |
| 163 const GURL& url, | 163 const GURL& url, |
| 164 const GURL& first_party_for_cookies) const { | 164 const GURL& first_party_for_cookies) const { |
| 165 DCHECK(CalledOnValidThread()); | 165 DCHECK(CalledOnValidThread()); |
| 166 return OnCanEnablePrivacyMode(url, first_party_for_cookies); | 166 return OnCanEnablePrivacyMode(url, first_party_for_cookies); |
| 167 } | 167 } |
| 168 | 168 |
| 169 bool NetworkDelegate::CancelURLRequestWithPolicyViolatingReferrerHeader( |
| 170 const URLRequest& request, |
| 171 const GURL& target_url, |
| 172 const GURL& referrer_url) const { |
| 173 DCHECK(CalledOnValidThread()); |
| 174 return OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
| 175 request, target_url, referrer_url); |
| 176 } |
| 177 |
| 169 int NetworkDelegate::OnBeforeURLRequest(URLRequest* request, | 178 int NetworkDelegate::OnBeforeURLRequest(URLRequest* request, |
| 170 const CompletionCallback& callback, | 179 const CompletionCallback& callback, |
| 171 GURL* new_url) { | 180 GURL* new_url) { |
| 172 return OK; | 181 return OK; |
| 173 } | 182 } |
| 174 | 183 |
| 175 void NetworkDelegate::OnResolveProxy( | 184 void NetworkDelegate::OnResolveProxy( |
| 176 const GURL& url, | 185 const GURL& url, |
| 177 int load_flags, | 186 int load_flags, |
| 178 const ProxyService& proxy_service, | 187 const ProxyService& proxy_service, |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 const GURL& first_party_for_cookies) const { | 271 const GURL& first_party_for_cookies) const { |
| 263 return false; | 272 return false; |
| 264 } | 273 } |
| 265 | 274 |
| 266 int NetworkDelegate::OnBeforeSocketStreamConnect( | 275 int NetworkDelegate::OnBeforeSocketStreamConnect( |
| 267 SocketStream* socket, | 276 SocketStream* socket, |
| 268 const CompletionCallback& callback) { | 277 const CompletionCallback& callback) { |
| 269 return OK; | 278 return OK; |
| 270 } | 279 } |
| 271 | 280 |
| 281 bool NetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
| 282 const URLRequest& request, |
| 283 const GURL& target_url, |
| 284 const GURL& referrer_url) const { |
| 285 return false; |
| 286 } |
| 287 |
| 272 } // namespace net | 288 } // namespace net |
| OLD | NEW |