Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: chromeos/dbus/dbus_client_bundle.h

Issue 996013003: privetd: Expose dbus API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mysterious build failure Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/dbus/dbus_client_bundle.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class ImageBurnerClient; 42 class ImageBurnerClient;
43 class IntrospectableClient; 43 class IntrospectableClient;
44 class ModemMessagingClient; 44 class ModemMessagingClient;
45 class NfcManagerClient; 45 class NfcManagerClient;
46 class NfcAdapterClient; 46 class NfcAdapterClient;
47 class NfcDeviceClient; 47 class NfcDeviceClient;
48 class NfcTagClient; 48 class NfcTagClient;
49 class NfcRecordClient; 49 class NfcRecordClient;
50 class PeerDaemonManagerClient; 50 class PeerDaemonManagerClient;
51 class PermissionBrokerClient; 51 class PermissionBrokerClient;
52 class PrivetDaemonManagerClient;
52 class SystemClockClient; 53 class SystemClockClient;
53 class PowerManagerClient; 54 class PowerManagerClient;
54 class SessionManagerClient; 55 class SessionManagerClient;
55 class SMSClient; 56 class SMSClient;
56 class UpdateEngineClient; 57 class UpdateEngineClient;
57 58
58 // The bundle of all D-Bus clients used in DBusThreadManager. The bundle 59 // The bundle of all D-Bus clients used in DBusThreadManager. The bundle
59 // is used to delete them at once in the right order before shutting down the 60 // is used to delete them at once in the right order before shutting down the
60 // system bus. See also the comment in the destructor of DBusThreadManager. 61 // system bus. See also the comment in the destructor of DBusThreadManager.
61 class CHROMEOS_EXPORT DBusClientBundle { 62 class CHROMEOS_EXPORT DBusClientBundle {
(...skipping 20 matching lines...) Expand all
82 PERMISSION_BROKER = 1 << 13, 83 PERMISSION_BROKER = 1 << 13,
83 POWER_MANAGER = 1 << 14, 84 POWER_MANAGER = 1 << 14,
84 SESSION_MANAGER = 1 << 15, 85 SESSION_MANAGER = 1 << 15,
85 SMS = 1 << 16, 86 SMS = 1 << 16,
86 SYSTEM_CLOCK = 1 << 17, 87 SYSTEM_CLOCK = 1 << 17,
87 UPDATE_ENGINE = 1 << 18, 88 UPDATE_ENGINE = 1 << 18,
88 PEER_DAEMON = 1 << 19, 89 PEER_DAEMON = 1 << 19,
89 LEADERSHIP_DAEMON = 1 << 20, 90 LEADERSHIP_DAEMON = 1 << 20,
90 METRONOME = 1 << 21, 91 METRONOME = 1 << 21,
91 AP_MANAGER = 1 << 22, 92 AP_MANAGER = 1 << 22,
93 PRIVET_DAEMON = 1 << 23,
92 }; 94 };
93 95
94 explicit DBusClientBundle(DBusClientTypeMask unstub_client_mask); 96 explicit DBusClientBundle(DBusClientTypeMask unstub_client_mask);
95 ~DBusClientBundle(); 97 ~DBusClientBundle();
96 98
97 // Returns true if |client| is stubbed. 99 // Returns true if |client| is stubbed.
98 bool IsUsingStub(DBusClientType client); 100 bool IsUsingStub(DBusClientType client);
99 101
100 // Returns true if any real DBusClient is used. 102 // Returns true if any real DBusClient is used.
101 bool IsUsingAnyRealClient(); 103 bool IsUsingAnyRealClient();
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 } 246 }
245 247
246 PeerDaemonManagerClient* peer_daemon_manager_client() { 248 PeerDaemonManagerClient* peer_daemon_manager_client() {
247 return peer_daemon_manager_client_.get(); 249 return peer_daemon_manager_client_.get();
248 } 250 }
249 251
250 PermissionBrokerClient* permission_broker_client() { 252 PermissionBrokerClient* permission_broker_client() {
251 return permission_broker_client_.get(); 253 return permission_broker_client_.get();
252 } 254 }
253 255
256 PrivetDaemonManagerClient* privet_daemon_manager_client() {
257 return privet_daemon_manager_client_.get();
258 }
259
254 SystemClockClient* system_clock_client() { 260 SystemClockClient* system_clock_client() {
255 return system_clock_client_.get(); 261 return system_clock_client_.get();
256 } 262 }
257 263
258 PowerManagerClient* power_manager_client() { 264 PowerManagerClient* power_manager_client() {
259 return power_manager_client_.get(); 265 return power_manager_client_.get();
260 } 266 }
261 267
262 SessionManagerClient* session_manager_client() { 268 SessionManagerClient* session_manager_client() {
263 return session_manager_client_.get(); 269 return session_manager_client_.get();
(...skipping 29 matching lines...) Expand all
293 scoped_ptr<BluetoothProfileManagerClient> bluetooth_profile_manager_client_; 299 scoped_ptr<BluetoothProfileManagerClient> bluetooth_profile_manager_client_;
294 scoped_ptr<CrasAudioClient> cras_audio_client_; 300 scoped_ptr<CrasAudioClient> cras_audio_client_;
295 scoped_ptr<CrosDisksClient> cros_disks_client_; 301 scoped_ptr<CrosDisksClient> cros_disks_client_;
296 scoped_ptr<CryptohomeClient> cryptohome_client_; 302 scoped_ptr<CryptohomeClient> cryptohome_client_;
297 scoped_ptr<DebugDaemonClient> debug_daemon_client_; 303 scoped_ptr<DebugDaemonClient> debug_daemon_client_;
298 scoped_ptr<EasyUnlockClient> easy_unlock_client_; 304 scoped_ptr<EasyUnlockClient> easy_unlock_client_;
299 scoped_ptr<LeadershipDaemonManagerClient> leadership_daemon_manager_client_; 305 scoped_ptr<LeadershipDaemonManagerClient> leadership_daemon_manager_client_;
300 scoped_ptr<LorgnetteManagerClient> lorgnette_manager_client_; 306 scoped_ptr<LorgnetteManagerClient> lorgnette_manager_client_;
301 scoped_ptr<MetronomeClient> metronome_client_; 307 scoped_ptr<MetronomeClient> metronome_client_;
302 scoped_ptr<PeerDaemonManagerClient> peer_daemon_manager_client_; 308 scoped_ptr<PeerDaemonManagerClient> peer_daemon_manager_client_;
309 scoped_ptr<PrivetDaemonManagerClient> privet_daemon_manager_client_;
303 scoped_ptr<ShillDeviceClient> shill_device_client_; 310 scoped_ptr<ShillDeviceClient> shill_device_client_;
304 scoped_ptr<ShillIPConfigClient> shill_ipconfig_client_; 311 scoped_ptr<ShillIPConfigClient> shill_ipconfig_client_;
305 scoped_ptr<ShillManagerClient> shill_manager_client_; 312 scoped_ptr<ShillManagerClient> shill_manager_client_;
306 scoped_ptr<ShillServiceClient> shill_service_client_; 313 scoped_ptr<ShillServiceClient> shill_service_client_;
307 scoped_ptr<ShillProfileClient> shill_profile_client_; 314 scoped_ptr<ShillProfileClient> shill_profile_client_;
308 scoped_ptr<ShillThirdPartyVpnDriverClient> 315 scoped_ptr<ShillThirdPartyVpnDriverClient>
309 shill_third_party_vpn_driver_client_; 316 shill_third_party_vpn_driver_client_;
310 scoped_ptr<GsmSMSClient> gsm_sms_client_; 317 scoped_ptr<GsmSMSClient> gsm_sms_client_;
311 scoped_ptr<ImageBurnerClient> image_burner_client_; 318 scoped_ptr<ImageBurnerClient> image_burner_client_;
312 scoped_ptr<IntrospectableClient> introspectable_client_; 319 scoped_ptr<IntrospectableClient> introspectable_client_;
(...skipping 11 matching lines...) Expand all
324 scoped_ptr<SessionManagerClient> session_manager_client_; 331 scoped_ptr<SessionManagerClient> session_manager_client_;
325 scoped_ptr<SMSClient> sms_client_; 332 scoped_ptr<SMSClient> sms_client_;
326 scoped_ptr<UpdateEngineClient> update_engine_client_; 333 scoped_ptr<UpdateEngineClient> update_engine_client_;
327 334
328 DISALLOW_COPY_AND_ASSIGN(DBusClientBundle); 335 DISALLOW_COPY_AND_ASSIGN(DBusClientBundle);
329 }; 336 };
330 337
331 } // namespace chromeos 338 } // namespace chromeos
332 339
333 #endif // CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ 340 #endif // CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_
OLDNEW
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/dbus/dbus_client_bundle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698