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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 namespace network_time { | 40 namespace network_time { |
41 class NetworkTimeTracker; | 41 class NetworkTimeTracker; |
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 RapporService; | 49 class RapporServiceImpl; |
50 } | 50 } |
51 | 51 |
52 namespace safe_browsing { | 52 namespace safe_browsing { |
53 class SafeBrowsingService; | 53 class SafeBrowsingService; |
54 } | 54 } |
55 | 55 |
56 namespace variations { | 56 namespace variations { |
57 class VariationsService; | 57 class VariationsService; |
58 } | 58 } |
59 | 59 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // if necessary. | 99 // if necessary. |
100 virtual metrics_services_manager::MetricsServicesManager* | 100 virtual metrics_services_manager::MetricsServicesManager* |
101 GetMetricsServicesManager() = 0; | 101 GetMetricsServicesManager() = 0; |
102 | 102 |
103 // Gets the MetricsService used by this application. | 103 // Gets the MetricsService used by this application. |
104 virtual metrics::MetricsService* GetMetricsService() = 0; | 104 virtual metrics::MetricsService* GetMetricsService() = 0; |
105 | 105 |
106 // Gets the VariationsService used by this application. | 106 // Gets the VariationsService used by this application. |
107 virtual variations::VariationsService* GetVariationsService() = 0; | 107 virtual variations::VariationsService* GetVariationsService() = 0; |
108 | 108 |
109 // Gets the RapporService. May return null. | 109 // Gets the RapporServiceImpl. May return null. |
110 virtual rappor::RapporService* GetRapporService() = 0; | 110 virtual rappor::RapporServiceImpl* GetRapporServiceImpl() = 0; |
111 | 111 |
112 // Gets the ChromeNetLog. | 112 // Gets the ChromeNetLog. |
113 virtual net_log::ChromeNetLog* GetNetLog() = 0; | 113 virtual net_log::ChromeNetLog* GetNetLog() = 0; |
114 | 114 |
115 // Gets the NetworkTimeTracker. | 115 // Gets the NetworkTimeTracker. |
116 virtual network_time::NetworkTimeTracker* GetNetworkTimeTracker() = 0; | 116 virtual network_time::NetworkTimeTracker* GetNetworkTimeTracker() = 0; |
117 | 117 |
118 // Gets the IOSChromeIOThread. | 118 // Gets the IOSChromeIOThread. |
119 virtual IOSChromeIOThread* GetIOSChromeIOThread() = 0; | 119 virtual IOSChromeIOThread* GetIOSChromeIOThread() = 0; |
120 | 120 |
(...skipping 12 matching lines...) Expand all Loading... |
133 | 133 |
134 protected: | 134 protected: |
135 // Sets the global ApplicationContext instance. | 135 // Sets the global ApplicationContext instance. |
136 static void SetApplicationContext(ApplicationContext* context); | 136 static void SetApplicationContext(ApplicationContext* context); |
137 | 137 |
138 private: | 138 private: |
139 DISALLOW_COPY_AND_ASSIGN(ApplicationContext); | 139 DISALLOW_COPY_AND_ASSIGN(ApplicationContext); |
140 }; | 140 }; |
141 | 141 |
142 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_ | 142 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_ |
OLD | NEW |