| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Native Client Authors. All rights reserved. | 2 * Copyright 2010 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 // PPAPI-based implementation of the interface for a plugin instance. | 7 // PPAPI-based implementation of the interface for a plugin instance. |
| 8 | 8 |
| 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_PLUGIN_PPAPI_H_ | 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_PLUGIN_PPAPI_H_ |
| 10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_PLUGIN_PPAPI_H_ | 10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_PLUGIN_PPAPI_H_ |
| 11 | 11 |
| 12 #include "native_client/src/trusted/plugin/srpc/plugin.h" | 12 #include "native_client/src/trusted/plugin/plugin.h" |
| 13 #include "ppapi/cpp/instance.h" | 13 #include "ppapi/cpp/instance.h" |
| 14 | 14 |
| 15 struct NaClSrpcChannel; | 15 struct NaClSrpcChannel; |
| 16 | 16 |
| 17 namespace plugin { | 17 namespace plugin { |
| 18 | 18 |
| 19 // Encapsulates a PPAPI plugin. | 19 // Encapsulates a PPAPI plugin. |
| 20 class PluginPpapi : public pp::Instance, public Plugin { | 20 class PluginPpapi : public pp::Instance, public Plugin { |
| 21 public: | 21 public: |
| 22 // Factory method for creation. | 22 // Factory method for creation. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 40 NACL_DISALLOW_COPY_AND_ASSIGN(PluginPpapi); | 40 NACL_DISALLOW_COPY_AND_ASSIGN(PluginPpapi); |
| 41 // Prevent construction and destruction from outside the class: | 41 // Prevent construction and destruction from outside the class: |
| 42 // must use factory New() and base's Delete() methods instead. | 42 // must use factory New() and base's Delete() methods instead. |
| 43 explicit PluginPpapi(PP_Instance instance); | 43 explicit PluginPpapi(PP_Instance instance); |
| 44 virtual ~PluginPpapi(); | 44 virtual ~PluginPpapi(); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace plugin | 47 } // namespace plugin |
| 48 | 48 |
| 49 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_PLUGIN_PPAPI_H_ | 49 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_PLUGIN_PPAPI_H_ |
| OLD | NEW |