| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; | 256 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; |
| 257 scoped_refptr<ChromeCookiePolicy> chrome_cookie_policy_; | 257 scoped_refptr<ChromeCookiePolicy> chrome_cookie_policy_; |
| 258 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 258 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 259 scoped_refptr<HostZoomMap> host_zoom_map_; | 259 scoped_refptr<HostZoomMap> host_zoom_map_; |
| 260 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; | 260 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; |
| 261 | 261 |
| 262 bool is_media_; | 262 bool is_media_; |
| 263 bool is_off_the_record_; | 263 bool is_off_the_record_; |
| 264 | 264 |
| 265 private: | 265 private: |
| 266 | |
| 267 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContext); | 266 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContext); |
| 268 }; | 267 }; |
| 269 | 268 |
| 270 // A URLRequestContextGetter subclass used by the browser. This returns a | 269 // A URLRequestContextGetter subclass used by the browser. This returns a |
| 271 // subclass of URLRequestContext which can be used to store extra information | 270 // subclass of URLRequestContext which can be used to store extra information |
| 272 // about requests. | 271 // about requests. |
| 273 // | 272 // |
| 274 // Most methods are expected to be called on the UI thread, except for | 273 // Most methods are expected to be called on the UI thread, except for |
| 275 // the destructor and GetURLRequestContext(). | 274 // the destructor and GetURLRequestContext(). |
| 276 class ChromeURLRequestContextGetter : public URLRequestContextGetter, | 275 class ChromeURLRequestContextGetter : public URLRequestContextGetter, |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 | 433 |
| 435 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory); | 434 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory); |
| 436 }; | 435 }; |
| 437 | 436 |
| 438 // Creates a proxy configuration from proxy-related preferences fetched | 437 // Creates a proxy configuration from proxy-related preferences fetched |
| 439 // from |pref_service|. The relevant preferences in |pref_service| are | 438 // from |pref_service|. The relevant preferences in |pref_service| are |
| 440 // initialized from the process' command line or by applicable proxy policies. | 439 // initialized from the process' command line or by applicable proxy policies. |
| 441 net::ProxyConfig* CreateProxyConfig(const PrefService* pref_service); | 440 net::ProxyConfig* CreateProxyConfig(const PrefService* pref_service); |
| 442 | 441 |
| 443 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ | 442 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ |
| OLD | NEW |