OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_BUFFER_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_BUFFER_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_BUFFER_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_BUFFER_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/shared_memory.h" | 11 #include "base/memory/shared_memory.h" |
| 12 #include "ppapi/shared_impl/resource.h" |
12 #include "ppapi/thunk/ppb_buffer_api.h" | 13 #include "ppapi/thunk/ppb_buffer_api.h" |
13 #include "ppapi/shared_impl/resource.h" | |
14 #include "webkit/plugins/webkit_plugins_export.h" | 14 #include "webkit/plugins/webkit_plugins_export.h" |
15 | 15 |
16 namespace webkit { | 16 namespace webkit { |
17 namespace ppapi { | 17 namespace ppapi { |
18 | 18 |
19 class WEBKIT_PLUGINS_EXPORT PPB_Buffer_Impl : | 19 class WEBKIT_PLUGINS_EXPORT PPB_Buffer_Impl : |
20 public ::ppapi::Resource, | 20 public ::ppapi::Resource, |
21 public ::ppapi::thunk::PPB_Buffer_API { | 21 public ::ppapi::thunk::PPB_Buffer_API { |
22 public: | 22 public: |
23 virtual ~PPB_Buffer_Impl(); | 23 virtual ~PPB_Buffer_Impl(); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 void* data_; | 73 void* data_; |
74 uint32_t size_; | 74 uint32_t size_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(BufferAutoMapper); | 76 DISALLOW_COPY_AND_ASSIGN(BufferAutoMapper); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace ppapi | 79 } // namespace ppapi |
80 } // namespace webkit | 80 } // namespace webkit |
81 | 81 |
82 #endif // WEBKIT_PLUGINS_PPAPI_PPB_BUFFER_IMPL_H_ | 82 #endif // WEBKIT_PLUGINS_PPAPI_PPB_BUFFER_IMPL_H_ |
OLD | NEW |