| 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 <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 204 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 205 scoped_refptr<HostZoomMap> host_zoom_map_; | 205 scoped_refptr<HostZoomMap> host_zoom_map_; |
| 206 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; | 206 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; |
| 207 scoped_refptr<FileSystemHostContext> file_system_host_context_; | 207 scoped_refptr<FileSystemHostContext> file_system_host_context_; |
| 208 scoped_refptr<ExtensionInfoMap> extension_info_map_; | 208 scoped_refptr<ExtensionInfoMap> extension_info_map_; |
| 209 | 209 |
| 210 bool is_media_; | 210 bool is_media_; |
| 211 bool is_off_the_record_; | 211 bool is_off_the_record_; |
| 212 | 212 |
| 213 private: | 213 private: |
| 214 | |
| 215 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContext); | 214 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContext); |
| 216 }; | 215 }; |
| 217 | 216 |
| 218 // A URLRequestContextGetter subclass used by the browser. This returns a | 217 // A URLRequestContextGetter subclass used by the browser. This returns a |
| 219 // subclass of URLRequestContext which can be used to store extra information | 218 // subclass of URLRequestContext which can be used to store extra information |
| 220 // about requests. | 219 // about requests. |
| 221 // | 220 // |
| 222 // Most methods are expected to be called on the UI thread, except for | 221 // Most methods are expected to be called on the UI thread, except for |
| 223 // the destructor and GetURLRequestContext(). | 222 // the destructor and GetURLRequestContext(). |
| 224 class ChromeURLRequestContextGetter : public URLRequestContextGetter, | 223 class ChromeURLRequestContextGetter : public URLRequestContextGetter, |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 | 375 |
| 377 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory); | 376 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory); |
| 378 }; | 377 }; |
| 379 | 378 |
| 380 // Creates a proxy configuration from proxy-related preferences fetched | 379 // Creates a proxy configuration from proxy-related preferences fetched |
| 381 // from |pref_service|. The relevant preferences in |pref_service| are | 380 // from |pref_service|. The relevant preferences in |pref_service| are |
| 382 // initialized from the process' command line or by applicable proxy policies. | 381 // initialized from the process' command line or by applicable proxy policies. |
| 383 net::ProxyConfig* CreateProxyConfig(const PrefService* pref_service); | 382 net::ProxyConfig* CreateProxyConfig(const PrefService* pref_service); |
| 384 | 383 |
| 385 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ | 384 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ |
| OLD | NEW |