| 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/base/layered_network_delegate.h" | 5 #include "net/base/layered_network_delegate.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 OnCanSetCookieInternal(request, cookie_line, options); | 196 OnCanSetCookieInternal(request, cookie_line, options); |
| 197 return nested_network_delegate_->CanSetCookie(request, cookie_line, options); | 197 return nested_network_delegate_->CanSetCookie(request, cookie_line, options); |
| 198 } | 198 } |
| 199 | 199 |
| 200 void LayeredNetworkDelegate::OnCanSetCookieInternal( | 200 void LayeredNetworkDelegate::OnCanSetCookieInternal( |
| 201 const URLRequest& request, | 201 const URLRequest& request, |
| 202 const std::string& cookie_line, | 202 const std::string& cookie_line, |
| 203 CookieOptions* options) { | 203 CookieOptions* options) { |
| 204 } | 204 } |
| 205 | 205 |
| 206 bool LayeredNetworkDelegate::OnCanAccessFile(const URLRequest& request, | 206 bool LayeredNetworkDelegate::OnCanAccessFile( |
| 207 const base::FilePath& path) const { | 207 const URLRequest& request, |
| 208 OnCanAccessFileInternal(request, path); | 208 const base::FilePath& original_path, |
| 209 return nested_network_delegate_->CanAccessFile(request, path); | 209 const base::FilePath& absolute_path) const { |
| 210 OnCanAccessFileInternal(request, original_path, absolute_path); |
| 211 return nested_network_delegate_->CanAccessFile(request, original_path, |
| 212 absolute_path); |
| 210 } | 213 } |
| 211 | 214 |
| 212 void LayeredNetworkDelegate::OnCanAccessFileInternal( | 215 void LayeredNetworkDelegate::OnCanAccessFileInternal( |
| 213 const URLRequest& request, | 216 const URLRequest& request, |
| 214 const base::FilePath& path) const { | 217 const base::FilePath& original_path, |
| 215 } | 218 const base::FilePath& absolute_path) const {} |
| 216 | 219 |
| 217 bool LayeredNetworkDelegate::OnCanEnablePrivacyMode( | 220 bool LayeredNetworkDelegate::OnCanEnablePrivacyMode( |
| 218 const GURL& url, | 221 const GURL& url, |
| 219 const GURL& first_party_for_cookies) const { | 222 const GURL& first_party_for_cookies) const { |
| 220 OnCanEnablePrivacyModeInternal(url, first_party_for_cookies); | 223 OnCanEnablePrivacyModeInternal(url, first_party_for_cookies); |
| 221 return nested_network_delegate_->CanEnablePrivacyMode( | 224 return nested_network_delegate_->CanEnablePrivacyMode( |
| 222 url, first_party_for_cookies); | 225 url, first_party_for_cookies); |
| 223 } | 226 } |
| 224 | 227 |
| 225 void LayeredNetworkDelegate::OnCanEnablePrivacyModeInternal( | 228 void LayeredNetworkDelegate::OnCanEnablePrivacyModeInternal( |
| (...skipping 22 matching lines...) Expand all Loading... |
| 248 } | 251 } |
| 249 | 252 |
| 250 void LayeredNetworkDelegate:: | 253 void LayeredNetworkDelegate:: |
| 251 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( | 254 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( |
| 252 const URLRequest& request, | 255 const URLRequest& request, |
| 253 const GURL& target_url, | 256 const GURL& target_url, |
| 254 const GURL& referrer_url) const { | 257 const GURL& referrer_url) const { |
| 255 } | 258 } |
| 256 | 259 |
| 257 } // namespace net | 260 } // namespace net |
| OLD | NEW |