| 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 scriptable object. | 7 // PPAPI-based implementation of the interface for a scriptable object. |
| 8 | 8 |
| 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_SCRIPTABLE_HANDLE_PPAPI_H_ | 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_SCRIPTABLE_HANDLE_PPAPI_H_ |
| 10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_SCRIPTABLE_HANDLE_PPAPI_H_ | 10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_SCRIPTABLE_HANDLE_PPAPI_H_ |
| 11 | 11 |
| 12 #include "native_client/src/trusted/plugin/srpc/scriptable_handle.h" | 12 #include "native_client/src/trusted/plugin/scriptable_handle.h" |
| 13 #include "ppapi/cpp/scriptable_object.h" | 13 #include "ppapi/cpp/scriptable_object.h" |
| 14 | 14 |
| 15 namespace plugin { | 15 namespace plugin { |
| 16 | 16 |
| 17 class PortableHandle; | 17 class PortableHandle; |
| 18 | 18 |
| 19 // Encapsulates a browser scriptable object for a PPAPI plugin. | 19 // Encapsulates a browser scriptable object for a PPAPI plugin. |
| 20 class ScriptableHandlePpapi : public pp::ScriptableObject, | 20 class ScriptableHandlePpapi : public pp::ScriptableObject, |
| 21 public ScriptableHandle { | 21 public ScriptableHandle { |
| 22 public: | 22 public: |
| (...skipping 14 matching lines...) Expand all Loading... |
| 37 NACL_DISALLOW_COPY_AND_ASSIGN(ScriptableHandlePpapi); | 37 NACL_DISALLOW_COPY_AND_ASSIGN(ScriptableHandlePpapi); |
| 38 // Prevent construction and destruction from outside the class: | 38 // Prevent construction and destruction from outside the class: |
| 39 // must use factory New() and base's Delete() methods instead. | 39 // must use factory New() and base's Delete() methods instead. |
| 40 explicit ScriptableHandlePpapi(PortableHandle* handle); | 40 explicit ScriptableHandlePpapi(PortableHandle* handle); |
| 41 virtual ~ScriptableHandlePpapi(); | 41 virtual ~ScriptableHandlePpapi(); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace plugin | 44 } // namespace plugin |
| 45 | 45 |
| 46 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_SCRIPTABLE_HANDLE_PPAPI_H_ | 46 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_SCRIPTABLE_HANDLE_PPAPI_H_ |
| OLD | NEW |