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 CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 bool OnCanAccessFile(const net::URLRequest& request, | 185 bool OnCanAccessFile(const net::URLRequest& request, |
186 const base::FilePath& path) const override; | 186 const base::FilePath& path) const override; |
187 bool OnCanThrottleRequest(const net::URLRequest& request) const override; | 187 bool OnCanThrottleRequest(const net::URLRequest& request) const override; |
188 bool OnCanEnablePrivacyMode( | 188 bool OnCanEnablePrivacyMode( |
189 const GURL& url, | 189 const GURL& url, |
190 const GURL& first_party_for_cookies) const override; | 190 const GURL& first_party_for_cookies) const override; |
191 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 191 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
192 const net::URLRequest& request, | 192 const net::URLRequest& request, |
193 const GURL& target_url, | 193 const GURL& target_url, |
194 const GURL& referrer_url) const override; | 194 const GURL& referrer_url) const override; |
| 195 bool OnIsSupportedMimeType(const std::string& mime_type) const override; |
195 | 196 |
196 void AccumulateContentLength( | 197 void AccumulateContentLength( |
197 int64 received_payload_byte_count, | 198 int64 received_payload_byte_count, |
198 int64 original_payload_byte_count); | 199 int64 original_payload_byte_count); |
199 | 200 |
200 scoped_ptr<ChromeExtensionsNetworkDelegate> extensions_delegate_; | 201 scoped_ptr<ChromeExtensionsNetworkDelegate> extensions_delegate_; |
201 | 202 |
202 void* profile_; | 203 void* profile_; |
203 base::FilePath profile_path_; | 204 base::FilePath profile_path_; |
204 scoped_refptr<CookieSettings> cookie_settings_; | 205 scoped_refptr<CookieSettings> cookie_settings_; |
(...skipping 27 matching lines...) Expand all Loading... |
232 scoped_ptr<ClientHints> client_hints_; | 233 scoped_ptr<ClientHints> client_hints_; |
233 | 234 |
234 bool first_request_; | 235 bool first_request_; |
235 | 236 |
236 prerender::PrerenderTracker* prerender_tracker_; | 237 prerender::PrerenderTracker* prerender_tracker_; |
237 | 238 |
238 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 239 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
239 }; | 240 }; |
240 | 241 |
241 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 242 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
OLD | NEW |