| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 CookieOptions* options) final; | 77 CookieOptions* options) final; |
| 78 bool OnCanAccessFile(const URLRequest& request, | 78 bool OnCanAccessFile(const URLRequest& request, |
| 79 const base::FilePath& path) const final; | 79 const base::FilePath& path) const final; |
| 80 bool OnCanThrottleRequest(const URLRequest& request) const final; | 80 bool OnCanThrottleRequest(const URLRequest& request) const final; |
| 81 bool OnCanEnablePrivacyMode(const GURL& url, | 81 bool OnCanEnablePrivacyMode(const GURL& url, |
| 82 const GURL& first_party_for_cookies) const final; | 82 const GURL& first_party_for_cookies) const final; |
| 83 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 83 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
| 84 const URLRequest& request, | 84 const URLRequest& request, |
| 85 const GURL& target_url, | 85 const GURL& target_url, |
| 86 const GURL& referrer_url) const final; | 86 const GURL& referrer_url) const final; |
| 87 bool OnIsSupportedMimeType(const std::string& mime_type) const final; |
| 87 | 88 |
| 88 protected: | 89 protected: |
| 89 virtual void OnBeforeURLRequestInternal(URLRequest* request, | 90 virtual void OnBeforeURLRequestInternal(URLRequest* request, |
| 90 const CompletionCallback& callback, | 91 const CompletionCallback& callback, |
| 91 GURL* new_url); | 92 GURL* new_url); |
| 92 | 93 |
| 93 virtual void OnResolveProxyInternal(const GURL& url, | 94 virtual void OnResolveProxyInternal(const GURL& url, |
| 94 int load_flags, | 95 int load_flags, |
| 95 const ProxyService& proxy_service, | 96 const ProxyService& proxy_service, |
| 96 ProxyInfo* result); | 97 ProxyInfo* result); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 const GURL& target_url, | 158 const GURL& target_url, |
| 158 const GURL& referrer_url) const; | 159 const GURL& referrer_url) const; |
| 159 | 160 |
| 160 private: | 161 private: |
| 161 scoped_ptr<NetworkDelegate> nested_network_delegate_; | 162 scoped_ptr<NetworkDelegate> nested_network_delegate_; |
| 162 }; | 163 }; |
| 163 | 164 |
| 164 } // namespace net | 165 } // namespace net |
| 165 | 166 |
| 166 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ | 167 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
| OLD | NEW |