| 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_H_ | 5 #ifndef IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_ |
| 6 #define IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_ | 6 #define IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace physical_web { | 44 namespace physical_web { |
| 45 class PhysicalWebDataSource; | 45 class PhysicalWebDataSource; |
| 46 } | 46 } |
| 47 | 47 |
| 48 namespace rappor { | 48 namespace rappor { |
| 49 class RapporServiceImpl; | 49 class RapporServiceImpl; |
| 50 } | 50 } |
| 51 | 51 |
| 52 namespace ukm { |
| 53 class UkmService; |
| 54 } |
| 55 |
| 52 namespace variations { | 56 namespace variations { |
| 53 class VariationsService; | 57 class VariationsService; |
| 54 } | 58 } |
| 55 | 59 |
| 56 class ApplicationContext; | 60 class ApplicationContext; |
| 57 class CRLSetFetcher; | 61 class CRLSetFetcher; |
| 58 class IOSChromeIOThread; | 62 class IOSChromeIOThread; |
| 59 class PrefService; | 63 class PrefService; |
| 60 | 64 |
| 61 // Gets the global application context. Cannot return null. | 65 // Gets the global application context. Cannot return null. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 92 virtual ios::ChromeBrowserStateManager* GetChromeBrowserStateManager() = 0; | 96 virtual ios::ChromeBrowserStateManager* GetChromeBrowserStateManager() = 0; |
| 93 | 97 |
| 94 // Gets the manager for the various metrics-related service, constructing it | 98 // Gets the manager for the various metrics-related service, constructing it |
| 95 // if necessary. | 99 // if necessary. |
| 96 virtual metrics_services_manager::MetricsServicesManager* | 100 virtual metrics_services_manager::MetricsServicesManager* |
| 97 GetMetricsServicesManager() = 0; | 101 GetMetricsServicesManager() = 0; |
| 98 | 102 |
| 99 // Gets the MetricsService used by this application. | 103 // Gets the MetricsService used by this application. |
| 100 virtual metrics::MetricsService* GetMetricsService() = 0; | 104 virtual metrics::MetricsService* GetMetricsService() = 0; |
| 101 | 105 |
| 106 // Gets the UkmService used by this application. |
| 107 virtual ukm::UkmService* GetUkmService() = 0; |
| 108 |
| 102 // Gets the VariationsService used by this application. | 109 // Gets the VariationsService used by this application. |
| 103 virtual variations::VariationsService* GetVariationsService() = 0; | 110 virtual variations::VariationsService* GetVariationsService() = 0; |
| 104 | 111 |
| 105 // Gets the RapporServiceImpl. May return null. | 112 // Gets the RapporServiceImpl. May return null. |
| 106 virtual rappor::RapporServiceImpl* GetRapporServiceImpl() = 0; | 113 virtual rappor::RapporServiceImpl* GetRapporServiceImpl() = 0; |
| 107 | 114 |
| 108 // Gets the ChromeNetLog. | 115 // Gets the ChromeNetLog. |
| 109 virtual net_log::ChromeNetLog* GetNetLog() = 0; | 116 virtual net_log::ChromeNetLog* GetNetLog() = 0; |
| 110 | 117 |
| 111 // Gets the NetworkTimeTracker. | 118 // Gets the NetworkTimeTracker. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 129 | 136 |
| 130 protected: | 137 protected: |
| 131 // Sets the global ApplicationContext instance. | 138 // Sets the global ApplicationContext instance. |
| 132 static void SetApplicationContext(ApplicationContext* context); | 139 static void SetApplicationContext(ApplicationContext* context); |
| 133 | 140 |
| 134 private: | 141 private: |
| 135 DISALLOW_COPY_AND_ASSIGN(ApplicationContext); | 142 DISALLOW_COPY_AND_ASSIGN(ApplicationContext); |
| 136 }; | 143 }; |
| 137 | 144 |
| 138 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_ | 145 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_ |
| OLD | NEW |