Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: webkit/plugins/ppapi/ppb_buffer_impl.h

Issue 11274036: Refactor video capture to new design (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: export Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webkit/plugins/ppapi/plugin_module.cc ('k') | webkit/plugins/ppapi/ppb_video_capture_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
11 #include "ppapi/thunk/ppb_buffer_api.h" 11 #include "ppapi/thunk/ppb_buffer_api.h"
12 #include "ppapi/thunk/ppb_buffer_trusted_api.h" 12 #include "ppapi/thunk/ppb_buffer_trusted_api.h"
13 #include "ppapi/shared_impl/resource.h" 13 #include "ppapi/shared_impl/resource.h"
14 #include "webkit/plugins/webkit_plugins_export.h"
14 15
15 namespace webkit { 16 namespace webkit {
16 namespace ppapi { 17 namespace ppapi {
17 18
18 class PPB_Buffer_Impl : public ::ppapi::Resource, 19 class WEBKIT_PLUGINS_EXPORT PPB_Buffer_Impl :
19 public ::ppapi::thunk::PPB_Buffer_API, 20 public ::ppapi::Resource,
20 public ::ppapi::thunk::PPB_BufferTrusted_API { 21 public ::ppapi::thunk::PPB_Buffer_API,
22 public ::ppapi::thunk::PPB_BufferTrusted_API {
21 public: 23 public:
22 virtual ~PPB_Buffer_Impl(); 24 virtual ~PPB_Buffer_Impl();
23 25
24 static PP_Resource Create(PP_Instance instance, uint32_t size); 26 static PP_Resource Create(PP_Instance instance, uint32_t size);
25 27
26 virtual PPB_Buffer_Impl* AsPPB_Buffer_Impl(); 28 virtual PPB_Buffer_Impl* AsPPB_Buffer_Impl();
27 29
28 base::SharedMemory* shared_memory() const { return shared_memory_.get(); } 30 base::SharedMemory* shared_memory() const { return shared_memory_.get(); }
29 uint32_t size() const { return size_; } 31 uint32_t size() const { return size_; }
30 32
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void* data_; 73 void* data_;
72 uint32_t size_; 74 uint32_t size_;
73 75
74 DISALLOW_COPY_AND_ASSIGN(BufferAutoMapper); 76 DISALLOW_COPY_AND_ASSIGN(BufferAutoMapper);
75 }; 77 };
76 78
77 } // namespace ppapi 79 } // namespace ppapi
78 } // namespace webkit 80 } // namespace webkit
79 81
80 #endif // WEBKIT_PLUGINS_PPAPI_PPB_BUFFER_IMPL_H_ 82 #endif // WEBKIT_PLUGINS_PPAPI_PPB_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/plugin_module.cc ('k') | webkit/plugins/ppapi/ppb_video_capture_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698