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 PPAPI_CPP_PRIVATE_FLASH_DEVICE_ID_H_ | 5 #ifndef PPAPI_CPP_PRIVATE_FLASH_DEVICE_ID_H_ |
6 #define PPAPI_CPP_PRIVATE_FLASH_DEVICE_ID_H_ | 6 #define PPAPI_CPP_PRIVATE_FLASH_DEVICE_ID_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "ppapi/cpp/completion_callback.h" | 10 #include "ppapi/cpp/completion_callback.h" |
9 #include "ppapi/cpp/resource.h" | 11 #include "ppapi/cpp/resource.h" |
10 | 12 |
11 namespace pp { | 13 namespace pp { |
12 namespace flash { | 14 namespace flash { |
13 | 15 |
14 class DeviceID : public Resource { | 16 class DeviceID : public Resource { |
15 public: | 17 public: |
16 DeviceID(); | 18 DeviceID(); |
17 DeviceID(const InstanceHandle& instance); | 19 DeviceID(const InstanceHandle& instance); |
18 | 20 |
19 // On success, returns a string var. | 21 // On success, returns a string var. |
20 int32_t GetDeviceID(const CompletionCallbackWithOutput<Var>& callback); | 22 int32_t GetDeviceID(const CompletionCallbackWithOutput<Var>& callback); |
21 }; | 23 }; |
22 | 24 |
23 } // namespace flash | 25 } // namespace flash |
24 } // namespace pp | 26 } // namespace pp |
25 | 27 |
26 #endif // PPAPI_CPP_PRIVATE_FLASH_DEVICE_ID_H_ | 28 #endif // PPAPI_CPP_PRIVATE_FLASH_DEVICE_ID_H_ |
OLD | NEW |