OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PROXY_PPB_CRYPTO_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_CRYPTO_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_CRYPTO_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_CRYPTO_PROXY_H_ |
7 | 7 |
8 #include "ppapi/proxy/interface_proxy.h" | 8 #include "ppapi/proxy/interface_proxy.h" |
9 | 9 |
10 namespace ppapi { | 10 namespace ppapi { |
11 namespace proxy { | 11 namespace proxy { |
12 | 12 |
13 class PPB_Crypto_Proxy : public InterfaceProxy { | 13 class PPB_Crypto_Proxy : public InterfaceProxy { |
14 public: | 14 public: |
15 // This class should not normally be instantiated since there's only one | 15 // This class should not normally be instantiated since there's only one |
16 // function that's implemented entirely within the plugin. However, we need | 16 // function that's implemented entirely within the plugin. However, we need |
17 // to support this so the machinery for automatically handling interfaces | 17 // to support this so the machinery for automatically handling interfaces |
18 // works. As a result, this constructor will assert if it's actually used. | 18 // works. As a result, this constructor will assert if it's actually used. |
19 PPB_Crypto_Proxy(Dispatcher* dispatcher); | 19 PPB_Crypto_Proxy(Dispatcher* dispatcher, const void* target_interface); |
20 virtual ~PPB_Crypto_Proxy(); | 20 virtual ~PPB_Crypto_Proxy(); |
21 | 21 |
22 static const Info* GetInfo(); | 22 static const Info* GetInfo(); |
23 | 23 |
24 private: | 24 private: |
25 virtual bool OnMessageReceived(const IPC::Message& msg); | 25 virtual bool OnMessageReceived(const IPC::Message& msg); |
26 | 26 |
27 DISALLOW_COPY_AND_ASSIGN(PPB_Crypto_Proxy); | 27 DISALLOW_COPY_AND_ASSIGN(PPB_Crypto_Proxy); |
28 }; | 28 }; |
29 | 29 |
30 } // namespace proxy | 30 } // namespace proxy |
31 } // namespace ppapi | 31 } // namespace ppapi |
32 | 32 |
33 #endif // PPAPI_PROXY_PPB_CRYPTO_PROXY_H_ | 33 #endif // PPAPI_PROXY_PPB_CRYPTO_PROXY_H_ |
OLD | NEW |