| 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 #ifndef NET_BASE_LAYERED_NETWORK_DELEGATE_H_ | 5 #ifndef NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
| 6 #define NET_BASE_LAYERED_NETWORK_DELEGATE_H_ | 6 #define NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 bool OnCanAccessFile(const URLRequest& request, | 76 bool OnCanAccessFile(const URLRequest& request, |
| 77 const base::FilePath& path) const final; | 77 const base::FilePath& path) const final; |
| 78 bool OnCanEnablePrivacyMode(const GURL& url, | 78 bool OnCanEnablePrivacyMode(const GURL& url, |
| 79 const GURL& first_party_for_cookies) const final; | 79 const GURL& first_party_for_cookies) const final; |
| 80 bool OnAreExperimentalCookieFeaturesEnabled() const final; | 80 bool OnAreExperimentalCookieFeaturesEnabled() const final; |
| 81 bool OnAreStrictSecureCookiesEnabled() const final; | 81 bool OnAreStrictSecureCookiesEnabled() const final; |
| 82 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 82 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
| 83 const URLRequest& request, | 83 const URLRequest& request, |
| 84 const GURL& target_url, | 84 const GURL& target_url, |
| 85 const GURL& referrer_url) const final; | 85 const GURL& referrer_url) const final; |
| 86 URLBlacklistState GetURLBlacklistState(const GURL& url) const final; |
| 86 | 87 |
| 87 protected: | 88 protected: |
| 88 virtual void OnBeforeURLRequestInternal(URLRequest* request, | 89 virtual void OnBeforeURLRequestInternal(URLRequest* request, |
| 89 const CompletionCallback& callback, | 90 const CompletionCallback& callback, |
| 90 GURL* new_url); | 91 GURL* new_url); |
| 91 | 92 |
| 92 virtual void OnBeforeSendHeadersInternal(URLRequest* request, | 93 virtual void OnBeforeSendHeadersInternal(URLRequest* request, |
| 93 const CompletionCallback& callback, | 94 const CompletionCallback& callback, |
| 94 HttpRequestHeaders* headers); | 95 HttpRequestHeaders* headers); |
| 95 | 96 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 const GURL& target_url, | 153 const GURL& target_url, |
| 153 const GURL& referrer_url) const; | 154 const GURL& referrer_url) const; |
| 154 | 155 |
| 155 private: | 156 private: |
| 156 std::unique_ptr<NetworkDelegate> nested_network_delegate_; | 157 std::unique_ptr<NetworkDelegate> nested_network_delegate_; |
| 157 }; | 158 }; |
| 158 | 159 |
| 159 } // namespace net | 160 } // namespace net |
| 160 | 161 |
| 161 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ | 162 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
| OLD | NEW |