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 CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ | 5 #ifndef CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ |
6 #define CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ | 6 #define CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chromeos/chromeos_export.h" | 9 #include "chromeos/chromeos_export.h" |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
72 NFC = 1 << 12, | 72 NFC = 1 << 12, |
73 PERMISSION_BROKER = 1 << 13, | 73 PERMISSION_BROKER = 1 << 13, |
74 POWER_MANAGER = 1 << 14, | 74 POWER_MANAGER = 1 << 14, |
75 SESSION_MANAGER = 1 << 15, | 75 SESSION_MANAGER = 1 << 15, |
76 SMS = 1 << 16, | 76 SMS = 1 << 16, |
77 SYSTEM_CLOCK = 1 << 17, | 77 SYSTEM_CLOCK = 1 << 17, |
78 UPDATE_ENGINE = 1 << 18, | 78 UPDATE_ENGINE = 1 << 18, |
79 ALL_CLIENTS = ~static_cast<DBusClientTypeMask>(0), | 79 ALL_CLIENTS = ~static_cast<DBusClientTypeMask>(0), |
80 }; | 80 }; |
81 | 81 |
82 DBusClientBundle(); | 82 ~DBusClientBundle(); |
83 virtual ~DBusClientBundle(); | |
84 | 83 |
85 // Initialize proper runtime environment for its dbus clients. | 84 // Initialize proper runtime environment for its dbus clients. |
86 void SetupDefaultEnvironment(); | 85 void SetupDefaultEnvironment(); |
87 | 86 |
88 // Parses command line param values for dbus subsystem that should be | 87 // Parses command line param values for dbus subsystem that should be |
89 // un-stubbed. | 88 // un-stubbed. |
90 static DBusClientTypeMask ParseUnstubList(const std::string& unstub_list); | 89 static DBusClientTypeMask ParseUnstubList(const std::string& unstub_list); |
91 | 90 |
92 BluetoothAdapterClient* bluetooth_adapter_client() { | 91 BluetoothAdapterClient* bluetooth_adapter_client() { |
93 return bluetooth_adapter_client_.get(); | 92 return bluetooth_adapter_client_.get(); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
223 | 222 |
224 SMSClient* sms_client() { | 223 SMSClient* sms_client() { |
225 return sms_client_.get(); | 224 return sms_client_.get(); |
226 } | 225 } |
227 | 226 |
228 UpdateEngineClient* update_engine_client() { | 227 UpdateEngineClient* update_engine_client() { |
229 return update_engine_client_.get(); | 228 return update_engine_client_.get(); |
230 } | 229 } |
231 | 230 |
232 private: | 231 private: |
232 friend class DBusThreadManager; | |
233 friend class DBusThreadManagerTestHelper; | |
234 | |
235 DBusClientBundle(); | |
hashimoto
2014/08/25 06:56:20
Why do we need to change this ctor to private?
I t
zel
2014/08/25 17:21:42
I though you asked for something that in the previ
| |
236 | |
233 scoped_ptr<BluetoothAdapterClient> bluetooth_adapter_client_; | 237 scoped_ptr<BluetoothAdapterClient> bluetooth_adapter_client_; |
234 scoped_ptr<BluetoothAgentManagerClient> bluetooth_agent_manager_client_; | 238 scoped_ptr<BluetoothAgentManagerClient> bluetooth_agent_manager_client_; |
235 scoped_ptr<BluetoothDeviceClient> bluetooth_device_client_; | 239 scoped_ptr<BluetoothDeviceClient> bluetooth_device_client_; |
236 scoped_ptr<BluetoothGattCharacteristicClient> | 240 scoped_ptr<BluetoothGattCharacteristicClient> |
237 bluetooth_gatt_characteristic_client_; | 241 bluetooth_gatt_characteristic_client_; |
238 scoped_ptr<BluetoothGattDescriptorClient> bluetooth_gatt_descriptor_client_; | 242 scoped_ptr<BluetoothGattDescriptorClient> bluetooth_gatt_descriptor_client_; |
239 scoped_ptr<BluetoothGattManagerClient> bluetooth_gatt_manager_client_; | 243 scoped_ptr<BluetoothGattManagerClient> bluetooth_gatt_manager_client_; |
240 scoped_ptr<BluetoothGattServiceClient> bluetooth_gatt_service_client_; | 244 scoped_ptr<BluetoothGattServiceClient> bluetooth_gatt_service_client_; |
241 scoped_ptr<BluetoothInputClient> bluetooth_input_client_; | 245 scoped_ptr<BluetoothInputClient> bluetooth_input_client_; |
242 scoped_ptr<BluetoothProfileManagerClient> bluetooth_profile_manager_client_; | 246 scoped_ptr<BluetoothProfileManagerClient> bluetooth_profile_manager_client_; |
(...skipping 25 matching lines...) Expand all Loading... | |
268 scoped_ptr<SessionManagerClient> session_manager_client_; | 272 scoped_ptr<SessionManagerClient> session_manager_client_; |
269 scoped_ptr<SMSClient> sms_client_; | 273 scoped_ptr<SMSClient> sms_client_; |
270 scoped_ptr<UpdateEngineClient> update_engine_client_; | 274 scoped_ptr<UpdateEngineClient> update_engine_client_; |
271 | 275 |
272 DISALLOW_COPY_AND_ASSIGN(DBusClientBundle); | 276 DISALLOW_COPY_AND_ASSIGN(DBusClientBundle); |
273 }; | 277 }; |
274 | 278 |
275 } // namespace chromeos | 279 } // namespace chromeos |
276 | 280 |
277 #endif // CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ | 281 #endif // CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ |
OLD | NEW |