| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(); | 83 virtual ~DBusClientBundle(); |
| 84 | 84 |
| 85 // Initialize proper runtime environment for its dbus clients. |
| 86 void SetupDefaultEnvironment(); |
| 87 |
| 85 // Parses command line param values for dbus subsystem that should be | 88 // Parses command line param values for dbus subsystem that should be |
| 86 // un-stubbed. | 89 // un-stubbed. |
| 87 static DBusClientTypeMask ParseUnstubList(const std::string& unstub_list); | 90 static DBusClientTypeMask ParseUnstubList(const std::string& unstub_list); |
| 88 | 91 |
| 89 BluetoothAdapterClient* bluetooth_adapter_client() { | 92 BluetoothAdapterClient* bluetooth_adapter_client() { |
| 90 return bluetooth_adapter_client_.get(); | 93 return bluetooth_adapter_client_.get(); |
| 91 } | 94 } |
| 92 | 95 |
| 93 BluetoothAgentManagerClient* bluetooth_agent_manager_client() { | 96 BluetoothAgentManagerClient* bluetooth_agent_manager_client() { |
| 94 return bluetooth_agent_manager_client_.get(); | 97 return bluetooth_agent_manager_client_.get(); |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 scoped_ptr<SessionManagerClient> session_manager_client_; | 268 scoped_ptr<SessionManagerClient> session_manager_client_; |
| 266 scoped_ptr<SMSClient> sms_client_; | 269 scoped_ptr<SMSClient> sms_client_; |
| 267 scoped_ptr<UpdateEngineClient> update_engine_client_; | 270 scoped_ptr<UpdateEngineClient> update_engine_client_; |
| 268 | 271 |
| 269 DISALLOW_COPY_AND_ASSIGN(DBusClientBundle); | 272 DISALLOW_COPY_AND_ASSIGN(DBusClientBundle); |
| 270 }; | 273 }; |
| 271 | 274 |
| 272 } // namespace chromeos | 275 } // namespace chromeos |
| 273 | 276 |
| 274 #endif // CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ | 277 #endif // CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ |
| OLD | NEW |