Chromium Code Reviews| 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_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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 blob_protocol_handler, | 88 blob_protocol_handler, |
| 89 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 89 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 90 file_system_protocol_handler, | 90 file_system_protocol_handler, |
| 91 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 91 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 92 developer_protocol_handler, | 92 developer_protocol_handler, |
| 93 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 93 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 94 chrome_protocol_handler, | 94 chrome_protocol_handler, |
| 95 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 95 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 96 chrome_devtools_protocol_handler) const; | 96 chrome_devtools_protocol_handler) const; |
| 97 | 97 |
| 98 net::CookieStore* GetExtensionsCookieStore() const; | |
| 99 | |
| 98 ChromeURLRequestContext* GetMainRequestContext() const; | 100 ChromeURLRequestContext* GetMainRequestContext() const; |
| 99 ChromeURLRequestContext* GetMediaRequestContext() const; | 101 ChromeURLRequestContext* GetMediaRequestContext() const; |
| 100 ChromeURLRequestContext* GetExtensionsRequestContext() const; | |
| 101 ChromeURLRequestContext* GetIsolatedAppRequestContext( | 102 ChromeURLRequestContext* GetIsolatedAppRequestContext( |
| 102 ChromeURLRequestContext* main_context, | 103 ChromeURLRequestContext* main_context, |
| 103 const StoragePartitionDescriptor& partition_descriptor, | 104 const StoragePartitionDescriptor& partition_descriptor, |
| 104 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 105 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
| 105 protocol_handler_interceptor, | 106 protocol_handler_interceptor, |
| 106 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 107 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 107 blob_protocol_handler, | 108 blob_protocol_handler, |
| 108 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 109 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 109 file_system_protocol_handler, | 110 file_system_protocol_handler, |
| 110 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 111 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 152 } | 153 } |
| 153 | 154 |
| 154 void set_reverse_autologin_pending_email(const std::string& email) { | 155 void set_reverse_autologin_pending_email(const std::string& email) { |
| 155 reverse_autologin_pending_email_ = email; | 156 reverse_autologin_pending_email_ = email; |
| 156 } | 157 } |
| 157 | 158 |
| 158 StringListPrefMember* one_click_signin_rejected_email_list() const { | 159 StringListPrefMember* one_click_signin_rejected_email_list() const { |
| 159 return &one_click_signin_rejected_email_list_; | 160 return &one_click_signin_rejected_email_list_; |
| 160 } | 161 } |
| 161 | 162 |
| 162 ChromeURLRequestContext* extensions_request_context() const { | |
|
awong
2013/07/31 00:51:18
There were 2 accessors for the same field in this
| |
| 163 return extensions_request_context_.get(); | |
| 164 } | |
| 165 | |
| 166 BooleanPrefMember* safe_browsing_enabled() const { | 163 BooleanPrefMember* safe_browsing_enabled() const { |
| 167 return &safe_browsing_enabled_; | 164 return &safe_browsing_enabled_; |
| 168 } | 165 } |
| 169 | 166 |
| 170 BooleanPrefMember* printing_enabled() const { | 167 BooleanPrefMember* printing_enabled() const { |
| 171 return &printing_enabled_; | 168 return &printing_enabled_; |
| 172 } | 169 } |
| 173 | 170 |
| 174 BooleanPrefMember* sync_disabled() const { | 171 BooleanPrefMember* sync_disabled() const { |
| 175 return &sync_disabled_; | 172 return &sync_disabled_; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 390 blob_protocol_handler, | 387 blob_protocol_handler, |
| 391 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 388 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 392 file_system_protocol_handler, | 389 file_system_protocol_handler, |
| 393 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 390 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 394 developer_protocol_handler, | 391 developer_protocol_handler, |
| 395 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 392 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 396 chrome_protocol_handler, | 393 chrome_protocol_handler, |
| 397 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 394 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 398 chrome_devtools_protocol_handler) const = 0; | 395 chrome_devtools_protocol_handler) const = 0; |
| 399 | 396 |
| 400 // Initializes the RequestContext for extensions. | |
| 401 virtual void InitializeExtensionsRequestContext( | |
| 402 ProfileParams* profile_params) const = 0; | |
| 403 // Does an on-demand initialization of a RequestContext for the given | 397 // Does an on-demand initialization of a RequestContext for the given |
| 404 // isolated app. | 398 // isolated app. |
| 405 virtual ChromeURLRequestContext* InitializeAppRequestContext( | 399 virtual ChromeURLRequestContext* InitializeAppRequestContext( |
| 406 ChromeURLRequestContext* main_context, | 400 ChromeURLRequestContext* main_context, |
| 407 const StoragePartitionDescriptor& details, | 401 const StoragePartitionDescriptor& details, |
| 408 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 402 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
| 409 protocol_handler_interceptor, | 403 protocol_handler_interceptor, |
| 410 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 404 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 411 blob_protocol_handler, | 405 blob_protocol_handler, |
| 412 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 406 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 523 #if defined(ENABLE_NOTIFICATIONS) | 517 #if defined(ENABLE_NOTIFICATIONS) |
| 524 mutable DesktopNotificationService* notification_service_; | 518 mutable DesktopNotificationService* notification_service_; |
| 525 #endif | 519 #endif |
| 526 | 520 |
| 527 mutable scoped_ptr<TransportSecurityPersister> | 521 mutable scoped_ptr<TransportSecurityPersister> |
| 528 transport_security_persister_; | 522 transport_security_persister_; |
| 529 | 523 |
| 530 // These are only valid in between LazyInitialize() and their accessor being | 524 // These are only valid in between LazyInitialize() and their accessor being |
| 531 // called. | 525 // called. |
| 532 mutable scoped_ptr<ChromeURLRequestContext> main_request_context_; | 526 mutable scoped_ptr<ChromeURLRequestContext> main_request_context_; |
| 533 mutable scoped_ptr<ChromeURLRequestContext> extensions_request_context_; | 527 protected: |
| 528 mutable scoped_refptr<net::CookieStore> extension_cookie_store_; | |
| 529 private: | |
| 534 // One URLRequestContext per isolated app for main and media requests. | 530 // One URLRequestContext per isolated app for main and media requests. |
| 535 mutable URLRequestContextMap app_request_context_map_; | 531 mutable URLRequestContextMap app_request_context_map_; |
| 536 mutable URLRequestContextMap isolated_media_request_context_map_; | 532 mutable URLRequestContextMap isolated_media_request_context_map_; |
| 537 | 533 |
| 538 mutable scoped_ptr<ResourceContext> resource_context_; | 534 mutable scoped_ptr<ResourceContext> resource_context_; |
| 539 | 535 |
| 540 mutable scoped_refptr<CookieSettings> cookie_settings_; | 536 mutable scoped_refptr<CookieSettings> cookie_settings_; |
| 541 | 537 |
| 542 mutable scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> | 538 mutable scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> |
| 543 resource_prefetch_predictor_observer_; | 539 resource_prefetch_predictor_observer_; |
| 544 | 540 |
| 545 mutable scoped_ptr<ChromeHttpUserAgentSettings> | 541 mutable scoped_ptr<ChromeHttpUserAgentSettings> |
| 546 chrome_http_user_agent_settings_; | 542 chrome_http_user_agent_settings_; |
| 547 | 543 |
| 548 mutable chrome_browser_net::LoadTimeStats* load_time_stats_; | 544 mutable chrome_browser_net::LoadTimeStats* load_time_stats_; |
| 549 | 545 |
| 550 #if defined(ENABLE_MANAGED_USERS) | 546 #if defined(ENABLE_MANAGED_USERS) |
| 551 mutable scoped_refptr<const ManagedModeURLFilter> managed_mode_url_filter_; | 547 mutable scoped_refptr<const ManagedModeURLFilter> managed_mode_url_filter_; |
| 552 #endif | 548 #endif |
| 553 | 549 |
| 554 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 550 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 555 bool initialized_on_UI_thread_; | 551 bool initialized_on_UI_thread_; |
| 556 | 552 |
| 557 bool is_incognito_; | 553 bool is_incognito_; |
| 558 | 554 |
| 559 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 555 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 560 }; | 556 }; |
| 561 | 557 |
| 562 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 558 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |