OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ | 5 #ifndef COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ |
6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ | 6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 void RemoveObserver(Observer* observer); | 91 void RemoveObserver(Observer* observer); |
92 | 92 |
93 InstanceHolder<mojom::AppInstance>* app() { return &app_; } | 93 InstanceHolder<mojom::AppInstance>* app() { return &app_; } |
94 InstanceHolder<mojom::AudioInstance>* audio() { return &audio_; } | 94 InstanceHolder<mojom::AudioInstance>* audio() { return &audio_; } |
95 InstanceHolder<mojom::AuthInstance>* auth() { return &auth_; } | 95 InstanceHolder<mojom::AuthInstance>* auth() { return &auth_; } |
96 InstanceHolder<mojom::BluetoothInstance>* bluetooth() { return &bluetooth_; } | 96 InstanceHolder<mojom::BluetoothInstance>* bluetooth() { return &bluetooth_; } |
97 InstanceHolder<mojom::ClipboardInstance>* clipboard() { return &clipboard_; } | 97 InstanceHolder<mojom::ClipboardInstance>* clipboard() { return &clipboard_; } |
98 InstanceHolder<mojom::CrashCollectorInstance>* crash_collector() { | 98 InstanceHolder<mojom::CrashCollectorInstance>* crash_collector() { |
99 return &crash_collector_; | 99 return &crash_collector_; |
100 } | 100 } |
| 101 InstanceHolder<mojom::EnterpriseReportingInstance>* enterprise_reporting() { |
| 102 return &enterprise_reporting_; |
| 103 } |
101 InstanceHolder<mojom::FileSystemInstance>* file_system() { | 104 InstanceHolder<mojom::FileSystemInstance>* file_system() { |
102 return &file_system_; | 105 return &file_system_; |
103 } | 106 } |
104 InstanceHolder<mojom::ImeInstance>* ime() { return &ime_; } | 107 InstanceHolder<mojom::ImeInstance>* ime() { return &ime_; } |
105 InstanceHolder<mojom::IntentHelperInstance>* intent_helper() { | 108 InstanceHolder<mojom::IntentHelperInstance>* intent_helper() { |
106 return &intent_helper_; | 109 return &intent_helper_; |
107 } | 110 } |
108 InstanceHolder<mojom::MetricsInstance>* metrics() { return &metrics_; } | 111 InstanceHolder<mojom::MetricsInstance>* metrics() { return &metrics_; } |
109 InstanceHolder<mojom::NetInstance>* net() { return &net_; } | 112 InstanceHolder<mojom::NetInstance>* net() { return &net_; } |
110 InstanceHolder<mojom::NotificationsInstance>* notifications() { | 113 InstanceHolder<mojom::NotificationsInstance>* notifications() { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 172 |
170 ArcBridgeService(); | 173 ArcBridgeService(); |
171 | 174 |
172 // Instance holders. | 175 // Instance holders. |
173 InstanceHolder<mojom::AppInstance> app_; | 176 InstanceHolder<mojom::AppInstance> app_; |
174 InstanceHolder<mojom::AudioInstance> audio_; | 177 InstanceHolder<mojom::AudioInstance> audio_; |
175 InstanceHolder<mojom::AuthInstance> auth_; | 178 InstanceHolder<mojom::AuthInstance> auth_; |
176 InstanceHolder<mojom::BluetoothInstance> bluetooth_; | 179 InstanceHolder<mojom::BluetoothInstance> bluetooth_; |
177 InstanceHolder<mojom::ClipboardInstance> clipboard_; | 180 InstanceHolder<mojom::ClipboardInstance> clipboard_; |
178 InstanceHolder<mojom::CrashCollectorInstance> crash_collector_; | 181 InstanceHolder<mojom::CrashCollectorInstance> crash_collector_; |
| 182 InstanceHolder<mojom::EnterpriseReportingInstance> enterprise_reporting_; |
179 InstanceHolder<mojom::FileSystemInstance> file_system_; | 183 InstanceHolder<mojom::FileSystemInstance> file_system_; |
180 InstanceHolder<mojom::ImeInstance> ime_; | 184 InstanceHolder<mojom::ImeInstance> ime_; |
181 InstanceHolder<mojom::IntentHelperInstance> intent_helper_; | 185 InstanceHolder<mojom::IntentHelperInstance> intent_helper_; |
182 InstanceHolder<mojom::MetricsInstance> metrics_; | 186 InstanceHolder<mojom::MetricsInstance> metrics_; |
183 InstanceHolder<mojom::NetInstance> net_; | 187 InstanceHolder<mojom::NetInstance> net_; |
184 InstanceHolder<mojom::NotificationsInstance> notifications_; | 188 InstanceHolder<mojom::NotificationsInstance> notifications_; |
185 InstanceHolder<mojom::ObbMounterInstance> obb_mounter_; | 189 InstanceHolder<mojom::ObbMounterInstance> obb_mounter_; |
186 InstanceHolder<mojom::PolicyInstance> policy_; | 190 InstanceHolder<mojom::PolicyInstance> policy_; |
187 InstanceHolder<mojom::PowerInstance> power_; | 191 InstanceHolder<mojom::PowerInstance> power_; |
188 InstanceHolder<mojom::ProcessInstance> process_; | 192 InstanceHolder<mojom::ProcessInstance> process_; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 234 |
231 // WeakPtrFactory to use callbacks. | 235 // WeakPtrFactory to use callbacks. |
232 base::WeakPtrFactory<ArcBridgeService> weak_factory_; | 236 base::WeakPtrFactory<ArcBridgeService> weak_factory_; |
233 | 237 |
234 DISALLOW_COPY_AND_ASSIGN(ArcBridgeService); | 238 DISALLOW_COPY_AND_ASSIGN(ArcBridgeService); |
235 }; | 239 }; |
236 | 240 |
237 } // namespace arc | 241 } // namespace arc |
238 | 242 |
239 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ | 243 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ |
OLD | NEW |