OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_NETWORK_DELEGATE_H_ | 5 #ifndef NET_BASE_NETWORK_DELEGATE_H_ |
6 #define NET_BASE_NETWORK_DELEGATE_H_ | 6 #define NET_BASE_NETWORK_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 const CookieList& cookie_list); | 98 const CookieList& cookie_list); |
99 bool CanSetCookie(const URLRequest& request, | 99 bool CanSetCookie(const URLRequest& request, |
100 const std::string& cookie_line, | 100 const std::string& cookie_line, |
101 CookieOptions* options); | 101 CookieOptions* options); |
102 bool CanAccessFile(const URLRequest& request, | 102 bool CanAccessFile(const URLRequest& request, |
103 const base::FilePath& path) const; | 103 const base::FilePath& path) const; |
104 bool CanThrottleRequest(const URLRequest& request) const; | 104 bool CanThrottleRequest(const URLRequest& request) const; |
105 bool CanEnablePrivacyMode(const GURL& url, | 105 bool CanEnablePrivacyMode(const GURL& url, |
106 const GURL& first_party_for_cookies) const; | 106 const GURL& first_party_for_cookies) const; |
107 | 107 |
108 int NotifyBeforeSocketStreamConnect(SocketStream* socket, | |
109 const CompletionCallback& callback); | |
110 | |
111 bool CancelURLRequestWithPolicyViolatingReferrerHeader( | 108 bool CancelURLRequestWithPolicyViolatingReferrerHeader( |
112 const URLRequest& request, | 109 const URLRequest& request, |
113 const GURL& target_url, | 110 const GURL& target_url, |
114 const GURL& referrer_url) const; | 111 const GURL& referrer_url) const; |
115 | 112 |
116 private: | 113 private: |
117 // This is the interface for subclasses of NetworkDelegate to implement. These | 114 // This is the interface for subclasses of NetworkDelegate to implement. These |
118 // member functions will be called by the respective public notification | 115 // member functions will be called by the respective public notification |
119 // member function, which will perform basic sanity checking. | 116 // member function, which will perform basic sanity checking. |
120 | 117 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 // header is stripped from the request. | 280 // header is stripped from the request. |
284 virtual bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 281 virtual bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
285 const URLRequest& request, | 282 const URLRequest& request, |
286 const GURL& target_url, | 283 const GURL& target_url, |
287 const GURL& referrer_url) const; | 284 const GURL& referrer_url) const; |
288 }; | 285 }; |
289 | 286 |
290 } // namespace net | 287 } // namespace net |
291 | 288 |
292 #endif // NET_BASE_NETWORK_DELEGATE_H_ | 289 #endif // NET_BASE_NETWORK_DELEGATE_H_ |
OLD | NEW |