| 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 CONTENT_RENDERER_PEPPER_PPB_BUFFER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_BUFFER_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PPB_BUFFER_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PPB_BUFFER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
| 12 #include "ppapi/shared_impl/resource.h" | 14 #include "ppapi/shared_impl/resource.h" |
| 13 #include "ppapi/thunk/ppb_buffer_api.h" | 15 #include "ppapi/thunk/ppb_buffer_api.h" |
| 14 | 16 |
| 15 namespace content { | 17 namespace content { |
| 16 | 18 |
| 17 class PPB_Buffer_Impl : public ppapi::Resource, | 19 class PPB_Buffer_Impl : public ppapi::Resource, |
| 18 public ppapi::thunk::PPB_Buffer_API { | 20 public ppapi::thunk::PPB_Buffer_API { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 71 |
| 70 void* data_; | 72 void* data_; |
| 71 uint32_t size_; | 73 uint32_t size_; |
| 72 | 74 |
| 73 DISALLOW_COPY_AND_ASSIGN(BufferAutoMapper); | 75 DISALLOW_COPY_AND_ASSIGN(BufferAutoMapper); |
| 74 }; | 76 }; |
| 75 | 77 |
| 76 } // namespace content | 78 } // namespace content |
| 77 | 79 |
| 78 #endif // CONTENT_RENDERER_PEPPER_PPB_BUFFER_IMPL_H_ | 80 #endif // CONTENT_RENDERER_PEPPER_PPB_BUFFER_IMPL_H_ |
| OLD | NEW |