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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 AuthRequiredResponse OnAuthRequired(URLRequest* request, | 71 AuthRequiredResponse OnAuthRequired(URLRequest* request, |
72 const AuthChallengeInfo& auth_info, | 72 const AuthChallengeInfo& auth_info, |
73 const AuthCallback& callback, | 73 const AuthCallback& callback, |
74 AuthCredentials* credentials) final; | 74 AuthCredentials* credentials) final; |
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& original_path, |
| 82 const base::FilePath& absolute_path) const final; |
82 bool OnCanEnablePrivacyMode(const GURL& url, | 83 bool OnCanEnablePrivacyMode(const GURL& url, |
83 const GURL& first_party_for_cookies) const final; | 84 const GURL& first_party_for_cookies) const final; |
84 bool OnAreExperimentalCookieFeaturesEnabled() const final; | 85 bool OnAreExperimentalCookieFeaturesEnabled() const final; |
85 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 86 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
86 const URLRequest& request, | 87 const URLRequest& request, |
87 const GURL& target_url, | 88 const GURL& target_url, |
88 const GURL& referrer_url) const final; | 89 const GURL& referrer_url) const final; |
89 | 90 |
90 bool OnCanQueueReportingReport(const url::Origin& origin) const final; | 91 bool OnCanQueueReportingReport(const url::Origin& origin) const final; |
91 | 92 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 147 |
147 virtual void OnCanSetCookieInternal(const URLRequest& request, | 148 virtual void OnCanSetCookieInternal(const URLRequest& request, |
148 const std::string& cookie_line, | 149 const std::string& cookie_line, |
149 CookieOptions* options); | 150 CookieOptions* options); |
150 | 151 |
151 virtual void OnAuthRequiredInternal(URLRequest* request, | 152 virtual void OnAuthRequiredInternal(URLRequest* request, |
152 const AuthChallengeInfo& auth_info, | 153 const AuthChallengeInfo& auth_info, |
153 const AuthCallback& callback, | 154 const AuthCallback& callback, |
154 AuthCredentials* credentials); | 155 AuthCredentials* credentials); |
155 | 156 |
156 virtual void OnCanAccessFileInternal(const URLRequest& request, | 157 virtual void OnCanAccessFileInternal( |
157 const base::FilePath& path) const; | 158 const URLRequest& request, |
| 159 const base::FilePath& original_path, |
| 160 const base::FilePath& absolute_path) const; |
158 | 161 |
159 virtual void OnCanEnablePrivacyModeInternal( | 162 virtual void OnCanEnablePrivacyModeInternal( |
160 const GURL& url, | 163 const GURL& url, |
161 const GURL& first_party_for_cookies) const; | 164 const GURL& first_party_for_cookies) const; |
162 | 165 |
163 virtual void OnAreExperimentalCookieFeaturesEnabledInternal() const; | 166 virtual void OnAreExperimentalCookieFeaturesEnabledInternal() const; |
164 | 167 |
165 virtual void OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( | 168 virtual void OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( |
166 const URLRequest& request, | 169 const URLRequest& request, |
167 const GURL& target_url, | 170 const GURL& target_url, |
(...skipping 11 matching lines...) Expand all Loading... |
179 virtual void OnCanUseReportingClientInternal(const url::Origin& origin, | 182 virtual void OnCanUseReportingClientInternal(const url::Origin& origin, |
180 const GURL& endpoint) const; | 183 const GURL& endpoint) const; |
181 | 184 |
182 private: | 185 private: |
183 std::unique_ptr<NetworkDelegate> nested_network_delegate_; | 186 std::unique_ptr<NetworkDelegate> nested_network_delegate_; |
184 }; | 187 }; |
185 | 188 |
186 } // namespace net | 189 } // namespace net |
187 | 190 |
188 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ | 191 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
OLD | NEW |