| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 const GURL& endpoint) const { | 291 const GURL& endpoint) const { |
| 289 OnCanUseReportingClientInternal(origin, endpoint); | 292 OnCanUseReportingClientInternal(origin, endpoint); |
| 290 return nested_network_delegate_->CanUseReportingClient(origin, endpoint); | 293 return nested_network_delegate_->CanUseReportingClient(origin, endpoint); |
| 291 } | 294 } |
| 292 | 295 |
| 293 void LayeredNetworkDelegate::OnCanUseReportingClientInternal( | 296 void LayeredNetworkDelegate::OnCanUseReportingClientInternal( |
| 294 const url::Origin& origin, | 297 const url::Origin& origin, |
| 295 const GURL& endpoint) const {} | 298 const GURL& endpoint) const {} |
| 296 | 299 |
| 297 } // namespace net | 300 } // namespace net |
| OLD | NEW |