OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_URL_REQUEST_CONTEXT_H_ | 5 #ifndef CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ |
6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ | 6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 scoped_refptr<ChromeCookiePolicy> chrome_cookie_policy_; | 271 scoped_refptr<ChromeCookiePolicy> chrome_cookie_policy_; |
272 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 272 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
273 scoped_refptr<HostZoomMap> host_zoom_map_; | 273 scoped_refptr<HostZoomMap> host_zoom_map_; |
274 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; | 274 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; |
275 scoped_refptr<FileSystemHostContext> file_system_host_context_; | 275 scoped_refptr<FileSystemHostContext> file_system_host_context_; |
276 | 276 |
277 bool is_media_; | 277 bool is_media_; |
278 bool is_off_the_record_; | 278 bool is_off_the_record_; |
279 | 279 |
280 private: | 280 private: |
| 281 |
281 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContext); | 282 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContext); |
282 }; | 283 }; |
283 | 284 |
284 // A URLRequestContextGetter subclass used by the browser. This returns a | 285 // A URLRequestContextGetter subclass used by the browser. This returns a |
285 // subclass of URLRequestContext which can be used to store extra information | 286 // subclass of URLRequestContext which can be used to store extra information |
286 // about requests. | 287 // about requests. |
287 // | 288 // |
288 // Most methods are expected to be called on the UI thread, except for | 289 // Most methods are expected to be called on the UI thread, except for |
289 // the destructor and GetURLRequestContext(). | 290 // the destructor and GetURLRequestContext(). |
290 class ChromeURLRequestContextGetter : public URLRequestContextGetter, | 291 class ChromeURLRequestContextGetter : public URLRequestContextGetter, |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 | 450 |
450 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory); | 451 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory); |
451 }; | 452 }; |
452 | 453 |
453 // Creates a proxy configuration from proxy-related preferences fetched | 454 // Creates a proxy configuration from proxy-related preferences fetched |
454 // from |pref_service|. The relevant preferences in |pref_service| are | 455 // from |pref_service|. The relevant preferences in |pref_service| are |
455 // initialized from the process' command line or by applicable proxy policies. | 456 // initialized from the process' command line or by applicable proxy policies. |
456 net::ProxyConfig* CreateProxyConfig(const PrefService* pref_service); | 457 net::ProxyConfig* CreateProxyConfig(const PrefService* pref_service); |
457 | 458 |
458 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ | 459 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ |
OLD | NEW |