Index: webkit/plugins/ppapi/ppb_hello_impl.h |
diff --git a/webkit/plugins/ppapi/ppb_hello_impl.h b/webkit/plugins/ppapi/ppb_hello_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..88f765f8aabca61adc4f7634b83e304dab6e6389 |
--- /dev/null |
+++ b/webkit/plugins/ppapi/ppb_hello_impl.h |
@@ -0,0 +1,38 @@ |
+// 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 WEBKIT_PLUGINS_PPAPI_PPB_HELLO_IMPL_H_ |
+#define WEBKIT_PLUGINS_PPAPI_PPB_HELLO_IMPL_H_ |
+ |
+#include "ppapi/c/dev/ppb_hello_dev.h" |
+#include "ppapi/cpp/completion_callback.h" |
+#include "ppapi/shared_impl/hello_impl.h" |
+#include "ppapi/shared_impl/resource.h" |
+ |
+namespace webkit { |
+namespace ppapi { |
+ |
+class PPB_Hello_Impl : public ::ppapi::Resource, |
+ public ::ppapi::HelloImpl { |
+ public: |
+ PPB_Hello_Impl(PP_Instance instance); |
+ virtual ~PPB_Hello_Impl(); |
+ |
+ static PP_Resource Create(PP_Instance instance); |
+ |
+ // Resource overrides. |
+ virtual ::ppapi::thunk::PPB_Hello_API* AsPPB_Hello_API(); |
+ |
+ // PPB_Hello_API implementation (derived from HelloImpl). |
+ virtual int32 SayHello() OVERRIDE; |
+ virtual void WhoAreYou(char* name, uint32_t size, |
+ pp::CompletionCallback callback); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(PPB_Hello_Impl); |
+}; |
+ |
+} // namespace ppapi |
+} // namespace webkit |
+ |
+#endif // WEBKIT_PLUGINS_PPAPI_PPB_HELLO_IMPL_H_ |