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(); | |
hashimoto
2014/08/26 01:54:59
nit: dtor should come after the ctor.
zel
2014/08/26 17:50:45
Done.
zel
2014/08/26 17:50:45
Done.
zel
2014/08/26 17:50:45
Done.
| |
82 DBusClientBundle(); | 83 DBusClientBundle(); |
83 virtual ~DBusClientBundle(); | |
84 | 84 |
85 // Initialize proper runtime environment for its dbus clients. | 85 // Initialize proper runtime environment for its dbus clients. |
86 void SetupDefaultEnvironment(); | 86 void SetupDefaultEnvironment(); |
87 | 87 |
88 // Parses command line param values for dbus subsystem that should be | 88 // Parses command line param values for dbus subsystem that should be |
89 // un-stubbed. | 89 // un-stubbed. |
90 static DBusClientTypeMask ParseUnstubList(const std::string& unstub_list); | 90 static DBusClientTypeMask ParseUnstubList(const std::string& unstub_list); |
91 | 91 |
92 BluetoothAdapterClient* bluetooth_adapter_client() { | 92 BluetoothAdapterClient* bluetooth_adapter_client() { |
93 return bluetooth_adapter_client_.get(); | 93 return bluetooth_adapter_client_.get(); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
223 | 223 |
224 SMSClient* sms_client() { | 224 SMSClient* sms_client() { |
225 return sms_client_.get(); | 225 return sms_client_.get(); |
226 } | 226 } |
227 | 227 |
228 UpdateEngineClient* update_engine_client() { | 228 UpdateEngineClient* update_engine_client() { |
229 return update_engine_client_.get(); | 229 return update_engine_client_.get(); |
230 } | 230 } |
231 | 231 |
232 private: | 232 private: |
233 friend class DBusThreadManagerSetter; | |
234 | |
233 scoped_ptr<BluetoothAdapterClient> bluetooth_adapter_client_; | 235 scoped_ptr<BluetoothAdapterClient> bluetooth_adapter_client_; |
234 scoped_ptr<BluetoothAgentManagerClient> bluetooth_agent_manager_client_; | 236 scoped_ptr<BluetoothAgentManagerClient> bluetooth_agent_manager_client_; |
235 scoped_ptr<BluetoothDeviceClient> bluetooth_device_client_; | 237 scoped_ptr<BluetoothDeviceClient> bluetooth_device_client_; |
236 scoped_ptr<BluetoothGattCharacteristicClient> | 238 scoped_ptr<BluetoothGattCharacteristicClient> |
237 bluetooth_gatt_characteristic_client_; | 239 bluetooth_gatt_characteristic_client_; |
238 scoped_ptr<BluetoothGattDescriptorClient> bluetooth_gatt_descriptor_client_; | 240 scoped_ptr<BluetoothGattDescriptorClient> bluetooth_gatt_descriptor_client_; |
239 scoped_ptr<BluetoothGattManagerClient> bluetooth_gatt_manager_client_; | 241 scoped_ptr<BluetoothGattManagerClient> bluetooth_gatt_manager_client_; |
240 scoped_ptr<BluetoothGattServiceClient> bluetooth_gatt_service_client_; | 242 scoped_ptr<BluetoothGattServiceClient> bluetooth_gatt_service_client_; |
241 scoped_ptr<BluetoothInputClient> bluetooth_input_client_; | 243 scoped_ptr<BluetoothInputClient> bluetooth_input_client_; |
242 scoped_ptr<BluetoothProfileManagerClient> bluetooth_profile_manager_client_; | 244 scoped_ptr<BluetoothProfileManagerClient> bluetooth_profile_manager_client_; |
(...skipping 25 matching lines...) Expand all Loading... | |
268 scoped_ptr<SessionManagerClient> session_manager_client_; | 270 scoped_ptr<SessionManagerClient> session_manager_client_; |
269 scoped_ptr<SMSClient> sms_client_; | 271 scoped_ptr<SMSClient> sms_client_; |
270 scoped_ptr<UpdateEngineClient> update_engine_client_; | 272 scoped_ptr<UpdateEngineClient> update_engine_client_; |
271 | 273 |
272 DISALLOW_COPY_AND_ASSIGN(DBusClientBundle); | 274 DISALLOW_COPY_AND_ASSIGN(DBusClientBundle); |
273 }; | 275 }; |
274 | 276 |
275 } // namespace chromeos | 277 } // namespace chromeos |
276 | 278 |
277 #endif // CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ | 279 #endif // CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ |
OLD | NEW |