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_TEST_TESTING_APPLICATION_CONTEXT_H_ | 5 #ifndef IOS_CHROME_TEST_TESTING_APPLICATION_CONTEXT_H_ |
6 #define IOS_CHROME_TEST_TESTING_APPLICATION_CONTEXT_H_ | 6 #define IOS_CHROME_TEST_TESTING_APPLICATION_CONTEXT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 // ApplicationContext implementation. | 31 // ApplicationContext implementation. |
32 void OnAppEnterForeground() override; | 32 void OnAppEnterForeground() override; |
33 void OnAppEnterBackground() override; | 33 void OnAppEnterBackground() override; |
34 bool WasLastShutdownClean() override; | 34 bool WasLastShutdownClean() override; |
35 PrefService* GetLocalState() override; | 35 PrefService* GetLocalState() override; |
36 net::URLRequestContextGetter* GetSystemURLRequestContext() override; | 36 net::URLRequestContextGetter* GetSystemURLRequestContext() override; |
37 const std::string& GetApplicationLocale() override; | 37 const std::string& GetApplicationLocale() override; |
38 ios::ChromeBrowserStateManager* GetChromeBrowserStateManager() override; | 38 ios::ChromeBrowserStateManager* GetChromeBrowserStateManager() override; |
39 metrics::MetricsService* GetMetricsService() override; | 39 metrics::MetricsService* GetMetricsService() override; |
40 variations::VariationsService* GetVariationsService() override; | 40 variations::VariationsService* GetVariationsService() override; |
41 policy::BrowserPolicyConnector* GetBrowserPolicyConnector() override; | |
42 policy::PolicyService* GetPolicyService() override; | |
43 rappor::RapporService* GetRapporService() override; | 41 rappor::RapporService* GetRapporService() override; |
44 net_log::ChromeNetLog* GetNetLog() override; | 42 net_log::ChromeNetLog* GetNetLog() override; |
45 network_time::NetworkTimeTracker* GetNetworkTimeTracker() override; | 43 network_time::NetworkTimeTracker* GetNetworkTimeTracker() override; |
46 | 44 |
47 private: | 45 private: |
48 base::ThreadChecker thread_checker_; | 46 base::ThreadChecker thread_checker_; |
49 std::string application_locale_; | 47 std::string application_locale_; |
50 PrefService* local_state_; | 48 PrefService* local_state_; |
51 ios::ChromeBrowserStateManager* chrome_browser_state_manager_; | 49 ios::ChromeBrowserStateManager* chrome_browser_state_manager_; |
52 scoped_ptr<network_time::NetworkTimeTracker> network_time_tracker_; | 50 scoped_ptr<network_time::NetworkTimeTracker> network_time_tracker_; |
53 bool was_last_shutdown_clean_; | 51 bool was_last_shutdown_clean_; |
54 | 52 |
55 DISALLOW_COPY_AND_ASSIGN(TestingApplicationContext); | 53 DISALLOW_COPY_AND_ASSIGN(TestingApplicationContext); |
56 }; | 54 }; |
57 | 55 |
58 #endif // IOS_CHROME_TEST_TESTING_APPLICATION_CONTEXT_H_ | 56 #endif // IOS_CHROME_TEST_TESTING_APPLICATION_CONTEXT_H_ |
OLD | NEW |