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

Unified Diff: ppapi/shared_impl/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 | « ppapi/shared_impl/api_id.h ('k') | ppapi/shared_impl/hello_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/hello_impl.h
diff --git a/ppapi/shared_impl/hello_impl.h b/ppapi/shared_impl/hello_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..0301699575d65d8de6eb5b994450c4064b3ef9b2
--- /dev/null
+++ b/ppapi/shared_impl/hello_impl.h
@@ -0,0 +1,29 @@
+// 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_SHARED_IMPL_HELLO_IMPL_H_
+#define PPAPI_SHARED_IMPL_HELLO_IMPL_H_
+
+#include "base/compiler_specific.h"
+#include "ppapi/shared_impl/ppapi_shared_export.h"
+#include "ppapi/thunk/ppb_hello_api.h"
+
+namespace ppapi {
+
+// This class provides the shared implementation of a Hello. It is derived from
+// the proxied and non-proxied classes.
+class PPAPI_SHARED_EXPORT HelloImpl : public thunk::PPB_Hello_API {
+ public:
+ HelloImpl();
+ virtual ~HelloImpl();
+
+ // PPB_Hello_API implementation.
+ virtual int32_t SayHello() OVERRIDE;
+ virtual void WhoAreYou(char* name, uint32_t size,
+ pp::CompletionCallback callback) OVERRIDE;
+};
+
+} // namespace ppapi
+
+#endif // PPAPI_SHARED_IMPL_HELLO_IMPL_H_
« no previous file with comments | « ppapi/shared_impl/api_id.h ('k') | ppapi/shared_impl/hello_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698