| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ | 5 #ifndef IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ |
| 6 #define IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ | 6 #define IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
| 14 #include "ios/chrome/browser/application_context.h" | 14 #include "ios/chrome/browser/application_context.h" |
| 15 | 15 |
| 16 class PrefRegistrySimple; | 16 class PrefRegistrySimple; |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class CommandLine; | 19 class CommandLine; |
| 20 class SequencedTaskRunner; | 20 class SequencedTaskRunner; |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // Sets the locale used by the application. | 71 // Sets the locale used by the application. |
| 72 void SetApplicationLocale(const std::string& locale); | 72 void SetApplicationLocale(const std::string& locale); |
| 73 | 73 |
| 74 // Create the local state. | 74 // Create the local state. |
| 75 void CreateLocalState(); | 75 void CreateLocalState(); |
| 76 | 76 |
| 77 // Create the gcm driver. | 77 // Create the gcm driver. |
| 78 void CreateGCMDriver(); | 78 void CreateGCMDriver(); |
| 79 | 79 |
| 80 base::ThreadChecker thread_checker_; | 80 base::ThreadChecker thread_checker_; |
| 81 scoped_ptr<PrefService> local_state_; | 81 std::unique_ptr<PrefService> local_state_; |
| 82 scoped_ptr<net_log::ChromeNetLog> net_log_; | 82 std::unique_ptr<net_log::ChromeNetLog> net_log_; |
| 83 scoped_ptr<network_time::NetworkTimeTracker> network_time_tracker_; | 83 std::unique_ptr<network_time::NetworkTimeTracker> network_time_tracker_; |
| 84 scoped_ptr<IOSChromeIOThread> ios_chrome_io_thread_; | 84 std::unique_ptr<IOSChromeIOThread> ios_chrome_io_thread_; |
| 85 scoped_ptr<metrics_services_manager::MetricsServicesManager> | 85 std::unique_ptr<metrics_services_manager::MetricsServicesManager> |
| 86 metrics_services_manager_; | 86 metrics_services_manager_; |
| 87 scoped_ptr<gcm::GCMDriver> gcm_driver_; | 87 std::unique_ptr<gcm::GCMDriver> gcm_driver_; |
| 88 scoped_ptr<component_updater::ComponentUpdateService> component_updater_; | 88 std::unique_ptr<component_updater::ComponentUpdateService> component_updater_; |
| 89 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; | 89 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; |
| 90 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_service_; | 90 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_service_; |
| 91 scoped_ptr<ios::ChromeBrowserStateManager> chrome_browser_state_manager_; | 91 std::unique_ptr<ios::ChromeBrowserStateManager> chrome_browser_state_manager_; |
| 92 std::string application_locale_; | 92 std::string application_locale_; |
| 93 | 93 |
| 94 // Sequenced task runner for local state related I/O tasks. | 94 // Sequenced task runner for local state related I/O tasks. |
| 95 const scoped_refptr<base::SequencedTaskRunner> local_state_task_runner_; | 95 const scoped_refptr<base::SequencedTaskRunner> local_state_task_runner_; |
| 96 | 96 |
| 97 bool was_last_shutdown_clean_; | 97 bool was_last_shutdown_clean_; |
| 98 bool created_local_state_; | 98 bool created_local_state_; |
| 99 | 99 |
| 100 DISALLOW_COPY_AND_ASSIGN(ApplicationContextImpl); | 100 DISALLOW_COPY_AND_ASSIGN(ApplicationContextImpl); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ | 103 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ |
| OLD | NEW |