summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_crypto_proxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/proxy/ppb_crypto_proxy.h')
-rw-r--r--ppapi/proxy/ppb_crypto_proxy.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/ppapi/proxy/ppb_crypto_proxy.h b/ppapi/proxy/ppb_crypto_proxy.h
new file mode 100644
index 0000000..e801892
--- /dev/null
+++ b/ppapi/proxy/ppb_crypto_proxy.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PPAPI_PROXY_PPB_CRYPTO_PROXY_H_
+#define PPAPI_PROXY_PPB_CRYPTO_PROXY_H_
+
+#include "ppapi/proxy/interface_proxy.h"
+
+namespace pp {
+namespace proxy {
+
+class PPB_Crypto_Proxy : public InterfaceProxy {
+ public:
+ // This class should not normally be instantiated since there's only one
+ // function that's implemented entirely within the plugin. However, we need
+ // to support this so the machinery for automatically handling interfaces
+ // works. As a result, this constructor will assert if it's actually used.
+ PPB_Crypto_Proxy(Dispatcher* dispatcher, const void* target_interface);
+ virtual ~PPB_Crypto_Proxy();
+
+ static const Info* GetInfo();
+
+ private:
+ virtual bool OnMessageReceived(const IPC::Message& msg);
+
+ DISALLOW_COPY_AND_ASSIGN(PPB_Crypto_Proxy);
+};
+
+} // namespace proxy
+} // namespace pp
+
+#endif // PPAPI_PROXY_PPB_CRYPTO_PROXY_H_