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_ |