OLD | NEW |
(Empty) | |
| 1 // Copyright 2010 The Native Client Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can |
| 3 // be found in the LICENSE file. |
| 4 |
| 5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_BUFFER_H_ |
| 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_BUFFER_H_ |
| 7 |
| 8 #include "native_client/src/include/nacl_macros.h" |
| 9 #include "native_client/src/shared/ppapi_proxy/plugin_resource.h" |
| 10 #include "ppapi/c/dev/ppb_buffer_dev.h" |
| 11 |
| 12 namespace ppapi_proxy { |
| 13 |
| 14 // Implements the untrusted side of the PPB_Buffer interface. |
| 15 class PluginBuffer : public PluginResource { |
| 16 public: |
| 17 static const PPB_Buffer_Dev* GetInterface(); |
| 18 |
| 19 private: |
| 20 IMPLEMENT_RESOURCE(PluginBuffer); |
| 21 NACL_DISALLOW_COPY_AND_ASSIGN(PluginBuffer); |
| 22 }; |
| 23 |
| 24 } // namespace ppapi_proxy |
| 25 |
| 26 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_BUFFER_H_ |
OLD | NEW |