| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 bool OnCanGetCookies(const URLRequest& request, | 75 bool OnCanGetCookies(const URLRequest& request, |
| 76 const CookieList& cookie_list) final; | 76 const CookieList& cookie_list) final; |
| 77 bool OnCanSetCookie(const URLRequest& request, | 77 bool OnCanSetCookie(const URLRequest& request, |
| 78 const std::string& cookie_line, | 78 const std::string& cookie_line, |
| 79 CookieOptions* options) final; | 79 CookieOptions* options) final; |
| 80 bool OnCanAccessFile(const URLRequest& request, | 80 bool OnCanAccessFile(const URLRequest& request, |
| 81 const base::FilePath& path) const final; | 81 const base::FilePath& path) const final; |
| 82 bool OnCanEnablePrivacyMode(const GURL& url, | 82 bool OnCanEnablePrivacyMode(const GURL& url, |
| 83 const GURL& first_party_for_cookies) const final; | 83 const GURL& first_party_for_cookies) const final; |
| 84 bool OnAreExperimentalCookieFeaturesEnabled() const final; | 84 bool OnAreExperimentalCookieFeaturesEnabled() const final; |
| 85 bool OnAreStrictSecureCookiesEnabled() const final; | |
| 86 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 85 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
| 87 const URLRequest& request, | 86 const URLRequest& request, |
| 88 const GURL& target_url, | 87 const GURL& target_url, |
| 89 const GURL& referrer_url) const final; | 88 const GURL& referrer_url) const final; |
| 90 | 89 |
| 91 protected: | 90 protected: |
| 92 virtual void OnBeforeURLRequestInternal(URLRequest* request, | 91 virtual void OnBeforeURLRequestInternal(URLRequest* request, |
| 93 const CompletionCallback& callback, | 92 const CompletionCallback& callback, |
| 94 GURL* new_url); | 93 GURL* new_url); |
| 95 | 94 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 AuthCredentials* credentials); | 144 AuthCredentials* credentials); |
| 146 | 145 |
| 147 virtual void OnCanAccessFileInternal(const URLRequest& request, | 146 virtual void OnCanAccessFileInternal(const URLRequest& request, |
| 148 const base::FilePath& path) const; | 147 const base::FilePath& path) const; |
| 149 | 148 |
| 150 virtual void OnCanEnablePrivacyModeInternal( | 149 virtual void OnCanEnablePrivacyModeInternal( |
| 151 const GURL& url, | 150 const GURL& url, |
| 152 const GURL& first_party_for_cookies) const; | 151 const GURL& first_party_for_cookies) const; |
| 153 | 152 |
| 154 virtual void OnAreExperimentalCookieFeaturesEnabledInternal() const; | 153 virtual void OnAreExperimentalCookieFeaturesEnabledInternal() const; |
| 155 virtual void OnAreStrictSecureCookiesEnabledInternal() const; | |
| 156 | 154 |
| 157 virtual void OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( | 155 virtual void OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( |
| 158 const URLRequest& request, | 156 const URLRequest& request, |
| 159 const GURL& target_url, | 157 const GURL& target_url, |
| 160 const GURL& referrer_url) const; | 158 const GURL& referrer_url) const; |
| 161 | 159 |
| 162 private: | 160 private: |
| 163 std::unique_ptr<NetworkDelegate> nested_network_delegate_; | 161 std::unique_ptr<NetworkDelegate> nested_network_delegate_; |
| 164 }; | 162 }; |
| 165 | 163 |
| 166 } // namespace net | 164 } // namespace net |
| 167 | 165 |
| 168 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ | 166 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
| OLD | NEW |