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

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

Issue 9838085: Move files inside chrome/browser/chromeos/dbus to chromeos/dbus (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 8 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/dbus/cros_disks_client.cc ('k') | chromeos/dbus/cryptohome_client.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_
6 #define CHROME_BROWSER_CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ 6 #define CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "chrome/browser/chromeos/dbus/dbus_client_implementation_type.h" 14 #include "chromeos/chromeos_export.h"
15 #include "chrome/browser/chromeos/dbus/dbus_method_call_status.h" 15 #include "chromeos/dbus/dbus_client_implementation_type.h"
16 #include "chromeos/dbus/dbus_method_call_status.h"
16 17
17 namespace dbus { 18 namespace dbus {
18 class Bus; 19 class Bus;
19 } 20 }
20 21
21 namespace chromeos { 22 namespace chromeos {
22 23
23 // CryptohomeClient is used to communicate with the Cryptohome service. 24 // CryptohomeClient is used to communicate with the Cryptohome service.
24 // All method should be called from the origin thread (UI thread) which 25 // All method should be called from the origin thread (UI thread) which
25 // initializes the DBusThreadManager instance. 26 // initializes the DBusThreadManager instance.
26 class CryptohomeClient { 27 class CHROMEOS_EXPORT CryptohomeClient {
27 public: 28 public:
28 // A callback to handle AsyncCallStatus signals. 29 // A callback to handle AsyncCallStatus signals.
29 typedef base::Callback<void(int async_id, bool return_status, int return_code) 30 typedef base::Callback<void(int async_id, bool return_status, int return_code)
30 > AsyncCallStatusHandler; 31 > AsyncCallStatusHandler;
31 // A callback to handle responses of AsyncXXX methods. 32 // A callback to handle responses of AsyncXXX methods.
32 typedef base::Callback<void(int async_id)> AsyncMethodCallback; 33 typedef base::Callback<void(int async_id)> AsyncMethodCallback;
33 // A callback to handle responses of methods returning a bool value. 34 // A callback to handle responses of methods returning a bool value.
34 typedef base::Callback<void(DBusMethodCallStatus call_status, 35 typedef base::Callback<void(DBusMethodCallStatus call_status,
35 bool result)> BoolMethodCallback; 36 bool result)> BoolMethodCallback;
36 // A callback to handle responses of Pkcs11GetTpmTokenInfo method. 37 // A callback to handle responses of Pkcs11GetTpmTokenInfo method.
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 protected: 169 protected:
169 // Create() should be used instead. 170 // Create() should be used instead.
170 CryptohomeClient(); 171 CryptohomeClient();
171 172
172 private: 173 private:
173 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); 174 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient);
174 }; 175 };
175 176
176 } // namespace chromeos 177 } // namespace chromeos
177 178
178 #endif // CHROME_BROWSER_CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ 179 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/cros_disks_client.cc ('k') | chromeos/dbus/cryptohome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698