OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PROFILES_PROFILE_IO_DATA_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 25 matching lines...) Expand all Loading... | |
36 class FileSystemContext; | 36 class FileSystemContext; |
37 } // namespace fileapi | 37 } // namespace fileapi |
38 | 38 |
39 namespace media_stream { | 39 namespace media_stream { |
40 class MediaStreamManager; | 40 class MediaStreamManager; |
41 } // namespace media_stream | 41 } // namespace media_stream |
42 | 42 |
43 namespace net { | 43 namespace net { |
44 class CookieStore; | 44 class CookieStore; |
45 class DnsCertProvenanceChecker; | 45 class DnsCertProvenanceChecker; |
46 class HttpServerProperties; | |
46 class HttpTransactionFactory; | 47 class HttpTransactionFactory; |
47 class NetLog; | 48 class NetLog; |
48 class OriginBoundCertService; | 49 class OriginBoundCertService; |
49 class ProxyConfigService; | 50 class ProxyConfigService; |
50 class ProxyService; | 51 class ProxyService; |
51 class SSLConfigService; | 52 class SSLConfigService; |
52 class TransportSecurityState; | 53 class TransportSecurityState; |
53 } // namespace net | 54 } // namespace net |
54 | 55 |
56 namespace chrome_browser_net { | |
57 class HttpServerPropertiesManager; | |
58 } | |
59 | |
55 namespace policy { | 60 namespace policy { |
56 class URLBlacklistManager; | 61 class URLBlacklistManager; |
57 } // namespace policy | 62 } // namespace policy |
58 | 63 |
59 namespace prerender { | 64 namespace prerender { |
60 class PrerenderManager; | 65 class PrerenderManager; |
61 }; // namespace prerender | 66 }; // namespace prerender |
62 | 67 |
63 namespace quota { | 68 namespace quota { |
64 class QuotaManager; | 69 class QuotaManager; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 } | 120 } |
116 | 121 |
117 BooleanPrefMember* safe_browsing_enabled() const { | 122 BooleanPrefMember* safe_browsing_enabled() const { |
118 return &safe_browsing_enabled_; | 123 return &safe_browsing_enabled_; |
119 } | 124 } |
120 | 125 |
121 net::TransportSecurityState* transport_security_state() const { | 126 net::TransportSecurityState* transport_security_state() const { |
122 return transport_security_state_.get(); | 127 return transport_security_state_.get(); |
123 } | 128 } |
124 | 129 |
130 net::HttpServerProperties* http_server_properties() const { | |
131 return reinterpret_cast<net::HttpServerProperties*>( | |
willchan no longer on Chromium
2011/10/06 22:13:22
There shouldn't be any reason to reinterpret_cast
ramant (doing other things)
2011/10/07 01:40:20
Moved this code to profile_impl_io_data.h.
Done.
| |
132 http_server_properties_manager_.get()); | |
133 } | |
134 | |
125 protected: | 135 protected: |
126 class AppRequestContext : public ChromeURLRequestContext { | 136 class AppRequestContext : public ChromeURLRequestContext { |
127 public: | 137 public: |
128 AppRequestContext(); | 138 AppRequestContext(); |
129 virtual ~AppRequestContext(); | 139 virtual ~AppRequestContext(); |
130 | 140 |
131 void SetCookieStore(net::CookieStore* cookie_store); | 141 void SetCookieStore(net::CookieStore* cookie_store); |
132 void SetHttpTransactionFactory(net::HttpTransactionFactory* http_factory); | 142 void SetHttpTransactionFactory(net::HttpTransactionFactory* http_factory); |
133 | 143 |
134 private: | 144 private: |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
273 mutable BooleanPrefMember safe_browsing_enabled_; | 283 mutable BooleanPrefMember safe_browsing_enabled_; |
274 | 284 |
275 // Pointed to by NetworkDelegate. | 285 // Pointed to by NetworkDelegate. |
276 mutable scoped_ptr<policy::URLBlacklistManager> url_blacklist_manager_; | 286 mutable scoped_ptr<policy::URLBlacklistManager> url_blacklist_manager_; |
277 | 287 |
278 // Pointed to by URLRequestContext. | 288 // Pointed to by URLRequestContext. |
279 mutable scoped_ptr<ChromeURLDataManagerBackend> | 289 mutable scoped_ptr<ChromeURLDataManagerBackend> |
280 chrome_url_data_manager_backend_; | 290 chrome_url_data_manager_backend_; |
281 mutable scoped_ptr<net::OriginBoundCertService> origin_bound_cert_service_; | 291 mutable scoped_ptr<net::OriginBoundCertService> origin_bound_cert_service_; |
282 mutable scoped_ptr<net::NetworkDelegate> network_delegate_; | 292 mutable scoped_ptr<net::NetworkDelegate> network_delegate_; |
293 mutable scoped_ptr<chrome_browser_net::HttpServerPropertiesManager> | |
294 http_server_properties_manager_; | |
willchan no longer on Chromium
2011/10/06 22:13:22
This doesn't belong here. It should be in ProfileI
ramant (doing other things)
2011/10/07 01:40:20
Done.
| |
283 mutable scoped_ptr<net::DnsCertProvenanceChecker> dns_cert_checker_; | 295 mutable scoped_ptr<net::DnsCertProvenanceChecker> dns_cert_checker_; |
284 mutable scoped_ptr<net::ProxyService> proxy_service_; | 296 mutable scoped_ptr<net::ProxyService> proxy_service_; |
285 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; | 297 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; |
286 mutable scoped_ptr<net::URLRequestJobFactory> job_factory_; | 298 mutable scoped_ptr<net::URLRequestJobFactory> job_factory_; |
287 | 299 |
288 // Pointed to by ResourceContext. | 300 // Pointed to by ResourceContext. |
289 mutable scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; | 301 mutable scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; |
290 mutable scoped_refptr<ChromeAppCacheService> appcache_service_; | 302 mutable scoped_refptr<ChromeAppCacheService> appcache_service_; |
291 mutable scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; | 303 mutable scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; |
292 mutable scoped_refptr<fileapi::FileSystemContext> file_system_context_; | 304 mutable scoped_refptr<fileapi::FileSystemContext> file_system_context_; |
(...skipping 18 matching lines...) Expand all Loading... | |
311 // called. | 323 // called. |
312 mutable scoped_refptr<ChromeURLRequestContext> main_request_context_; | 324 mutable scoped_refptr<ChromeURLRequestContext> main_request_context_; |
313 mutable scoped_refptr<ChromeURLRequestContext> extensions_request_context_; | 325 mutable scoped_refptr<ChromeURLRequestContext> extensions_request_context_; |
314 // One AppRequestContext per isolated app. | 326 // One AppRequestContext per isolated app. |
315 mutable AppRequestContextMap app_request_context_map_; | 327 mutable AppRequestContextMap app_request_context_map_; |
316 | 328 |
317 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 329 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
318 }; | 330 }; |
319 | 331 |
320 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 332 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |