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

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

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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/dbus/cryptohome_client.cc ('k') | chromeos/dbus/dbus_client_bundle.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_H_ 5 #ifndef CHROMEOS_DBUS_DBUS_CLIENT_H_
6 #define CHROMEOS_DBUS_DBUS_CLIENT_H_ 6 #define CHROMEOS_DBUS_DBUS_CLIENT_H_
7 7
8 #include "base/basictypes.h"
9 8
10 namespace dbus { 9 namespace dbus {
11 class Bus; 10 class Bus;
12 } // namespace dbus 11 } // namespace dbus
13 12
14 namespace chromeos { 13 namespace chromeos {
15 14
16 // Interface for all DBus clients handled by DBusThreadManager. It restricts 15 // Interface for all DBus clients handled by DBusThreadManager. It restricts
17 // access to the Init function to DBusThreadManager only to prevent 16 // access to the Init function to DBusThreadManager only to prevent
18 // incorrect calls. Stub clients may lift that restriction however. 17 // incorrect calls. Stub clients may lift that restriction however.
19 class DBusClient { 18 class DBusClient {
20 protected: 19 protected:
21 virtual ~DBusClient() {} 20 virtual ~DBusClient() {}
22 21
23 // This function is called by DBusThreadManager. Only in unit tests, which 22 // This function is called by DBusThreadManager. Only in unit tests, which
24 // don't use DBusThreadManager, this function can be called through Stub 23 // don't use DBusThreadManager, this function can be called through Stub
25 // implementations (they change Init's member visibility to public). 24 // implementations (they change Init's member visibility to public).
26 virtual void Init(dbus::Bus* bus) = 0; 25 virtual void Init(dbus::Bus* bus) = 0;
27 26
28 private: 27 private:
29 friend class DBusThreadManager; 28 friend class DBusThreadManager;
30 29
31 DISALLOW_ASSIGN(DBusClient); 30 DISALLOW_ASSIGN(DBusClient);
32 }; 31 };
33 32
34 } // namespace chromeos 33 } // namespace chromeos
35 34
36 #endif // CHROMEOS_DBUS_DBUS_CLIENT_H_ 35 #endif // CHROMEOS_DBUS_DBUS_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/cryptohome_client.cc ('k') | chromeos/dbus/dbus_client_bundle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698