OLD | NEW |
---|---|
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 CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_ | 5 #ifndef CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_ |
6 #define CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_ | 6 #define CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | |
Lei Zhang
2012/09/01 00:46:34
Otherwise the header fails to compile due to the u
| |
10 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
11 #include "chromeos/chromeos_export.h" | 12 #include "chromeos/chromeos_export.h" |
12 #include "third_party/cros_system_api/dbus/service_constants.h" | 13 #include "third_party/cros_system_api/dbus/service_constants.h" |
13 | 14 |
14 namespace cryptohome { | 15 namespace cryptohome { |
15 | 16 |
16 // This class manages calls to Cryptohome service's 'async' methods. | 17 // This class manages calls to Cryptohome service's 'async' methods. |
17 // Note: This class is placed in ::cryptohome instead of ::chromeos::cryptohome | 18 // Note: This class is placed in ::cryptohome instead of ::chromeos::cryptohome |
18 // since there is already a namespace ::cryptohome which holds the error code | 19 // since there is already a namespace ::cryptohome which holds the error code |
19 // enum (MountError) and referencing ::chromeos::cryptohome and ::cryptohome | 20 // enum (MountError) and referencing ::chromeos::cryptohome and ::cryptohome |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 static void Shutdown(); | 79 static void Shutdown(); |
79 | 80 |
80 // Returns a pointer to the global AsyncMethodCaller instance. | 81 // Returns a pointer to the global AsyncMethodCaller instance. |
81 // Initialize() should already have been called. | 82 // Initialize() should already have been called. |
82 static AsyncMethodCaller* GetInstance(); | 83 static AsyncMethodCaller* GetInstance(); |
83 }; | 84 }; |
84 | 85 |
85 } // namespace cryptohome | 86 } // namespace cryptohome |
86 | 87 |
87 #endif // CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_ | 88 #endif // CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_ |
OLD | NEW |