Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(761)

Unified Diff: webkit/plugins/ppapi/ppb_hello_impl.h

Issue 8414054: Hello Pepper API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/plugins/ppapi/ppb_hello_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/plugins/ppapi/ppb_hello_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698