OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef PPAPI_PROXY_PPB_FLASH_DEVICE_ID_PROXY_H_ | |
6 #define PPAPI_PROXY_PPB_FLASH_DEVICE_ID_PROXY_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "ppapi/c/pp_instance.h" | |
11 #include "ppapi/proxy/interface_proxy.h" | |
12 | |
13 namespace ppapi { | |
14 namespace proxy { | |
15 | |
16 class PPB_Flash_DeviceID_Proxy : public InterfaceProxy { | |
17 public: | |
18 PPB_Flash_DeviceID_Proxy(Dispatcher* dispatcher); | |
19 virtual ~PPB_Flash_DeviceID_Proxy(); | |
20 | |
21 static PP_Resource CreateProxyResource(PP_Instance instance); | |
22 | |
23 // InterfaceProxy implementation. | |
24 virtual bool OnMessageReceived(const IPC::Message& msg); | |
25 | |
26 static const ApiID kApiID = API_ID_PPB_FLASH_DEVICE_ID; | |
27 | |
28 private: | |
29 void OnPluginMsgGetReply(int32 routing_id, | |
30 PP_Resource resource, | |
31 int32 result, | |
32 const std::string& id); | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_DeviceID_Proxy); | |
35 }; | |
36 | |
37 } // namespace proxy | |
38 } // namespace ppapi | |
39 | |
40 #endif // PPAPI_PROXY_PPB_FLASH_DEVICE_ID_PROXY_H_ | |
41 | |
OLD | NEW |