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 protected: | 91 protected: |
91 virtual void OnBeforeURLRequestInternal(URLRequest* request, | 92 virtual void OnBeforeURLRequestInternal(URLRequest* request, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 137 |
137 virtual void OnCanSetCookieInternal(const URLRequest& request, | 138 virtual void OnCanSetCookieInternal(const URLRequest& request, |
138 const std::string& cookie_line, | 139 const std::string& cookie_line, |
139 CookieOptions* options); | 140 CookieOptions* options); |
140 | 141 |
141 virtual void OnAuthRequiredInternal(URLRequest* request, | 142 virtual void OnAuthRequiredInternal(URLRequest* request, |
142 const AuthChallengeInfo& auth_info, | 143 const AuthChallengeInfo& auth_info, |
143 const AuthCallback& callback, | 144 const AuthCallback& callback, |
144 AuthCredentials* credentials); | 145 AuthCredentials* credentials); |
145 | 146 |
146 virtual void OnCanAccessFileInternal(const URLRequest& request, | 147 virtual void OnCanAccessFileInternal( |
147 const base::FilePath& path) const; | 148 const URLRequest& request, |
| 149 const base::FilePath& original_path, |
| 150 const base::FilePath& absolute_path) const; |
148 | 151 |
149 virtual void OnCanEnablePrivacyModeInternal( | 152 virtual void OnCanEnablePrivacyModeInternal( |
150 const GURL& url, | 153 const GURL& url, |
151 const GURL& first_party_for_cookies) const; | 154 const GURL& first_party_for_cookies) const; |
152 | 155 |
153 virtual void OnAreExperimentalCookieFeaturesEnabledInternal() const; | 156 virtual void OnAreExperimentalCookieFeaturesEnabledInternal() const; |
154 | 157 |
155 virtual void OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( | 158 virtual void OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( |
156 const URLRequest& request, | 159 const URLRequest& request, |
157 const GURL& target_url, | 160 const GURL& target_url, |
158 const GURL& referrer_url) const; | 161 const GURL& referrer_url) const; |
159 | 162 |
160 private: | 163 private: |
161 std::unique_ptr<NetworkDelegate> nested_network_delegate_; | 164 std::unique_ptr<NetworkDelegate> nested_network_delegate_; |
162 }; | 165 }; |
163 | 166 |
164 } // namespace net | 167 } // namespace net |
165 | 168 |
166 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ | 169 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
OLD | NEW |