| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Sets the locale used by the application. | 70 // Sets the locale used by the application. |
| 71 void SetApplicationLocale(const std::string& locale); | 71 void SetApplicationLocale(const std::string& locale); |
| 72 | 72 |
| 73 // Create the local state. | 73 // Create the local state. |
| 74 void CreateLocalState(); | 74 void CreateLocalState(); |
| 75 | 75 |
| 76 // Create the gcm driver. | 76 // Create the gcm driver. |
| 77 void CreateGCMDriver(); | 77 void CreateGCMDriver(); |
| 78 | 78 |
| 79 base::ThreadChecker thread_checker_; | 79 base::ThreadChecker thread_checker_; |
| 80 scoped_ptr<PrefService> local_state_; | 80 std::unique_ptr<PrefService> local_state_; |
| 81 scoped_ptr<net_log::ChromeNetLog> net_log_; | 81 std::unique_ptr<net_log::ChromeNetLog> net_log_; |
| 82 scoped_ptr<network_time::NetworkTimeTracker> network_time_tracker_; | 82 std::unique_ptr<network_time::NetworkTimeTracker> network_time_tracker_; |
| 83 scoped_ptr<IOSChromeIOThread> ios_chrome_io_thread_; | 83 std::unique_ptr<IOSChromeIOThread> ios_chrome_io_thread_; |
| 84 scoped_ptr<metrics_services_manager::MetricsServicesManager> | 84 std::unique_ptr<metrics_services_manager::MetricsServicesManager> |
| 85 metrics_services_manager_; | 85 metrics_services_manager_; |
| 86 scoped_ptr<gcm::GCMDriver> gcm_driver_; | 86 std::unique_ptr<gcm::GCMDriver> gcm_driver_; |
| 87 scoped_ptr<component_updater::ComponentUpdateService> component_updater_; | 87 std::unique_ptr<component_updater::ComponentUpdateService> component_updater_; |
| 88 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; | 88 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; |
| 89 scoped_ptr<ios::ChromeBrowserStateManager> chrome_browser_state_manager_; | 89 std::unique_ptr<ios::ChromeBrowserStateManager> chrome_browser_state_manager_; |
| 90 std::string application_locale_; | 90 std::string application_locale_; |
| 91 | 91 |
| 92 // Sequenced task runner for local state related I/O tasks. | 92 // Sequenced task runner for local state related I/O tasks. |
| 93 const scoped_refptr<base::SequencedTaskRunner> local_state_task_runner_; | 93 const scoped_refptr<base::SequencedTaskRunner> local_state_task_runner_; |
| 94 | 94 |
| 95 bool was_last_shutdown_clean_; | 95 bool was_last_shutdown_clean_; |
| 96 bool created_local_state_; | 96 bool created_local_state_; |
| 97 | 97 |
| 98 DISALLOW_COPY_AND_ASSIGN(ApplicationContextImpl); | 98 DISALLOW_COPY_AND_ASSIGN(ApplicationContextImpl); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ | 101 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ |
| OLD | NEW |