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

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

Issue 7105013: Convert more interfaces to the new thunk system. This goes up to and including (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/ppb_broker_impl.cc ('k') | webkit/plugins/ppapi/ppb_buffer_impl.cc » ('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"
(...skipping 13 matching lines...) Expand all
24 virtual ~PPB_Buffer_Impl(); 24 virtual ~PPB_Buffer_Impl();
25 25
26 static PP_Resource Create(PP_Instance instance, uint32_t size); 26 static PP_Resource Create(PP_Instance instance, uint32_t size);
27 27
28 virtual PPB_Buffer_Impl* AsPPB_Buffer_Impl(); 28 virtual PPB_Buffer_Impl* AsPPB_Buffer_Impl();
29 29
30 base::SharedMemory* shared_memory() const { return shared_memory_.get(); } 30 base::SharedMemory* shared_memory() const { return shared_memory_.get(); }
31 uint32_t size() const { return size_; } 31 uint32_t size() const { return size_; }
32 32
33 // ResourceObjectBase overries. 33 // ResourceObjectBase overries.
34 virtual ::ppapi::thunk::PPB_Buffer_API* AsBuffer_API() OVERRIDE; 34 virtual ::ppapi::thunk::PPB_Buffer_API* AsPPB_Buffer_API() OVERRIDE;
35 35
36 // PPB_Buffer_API implementation. 36 // PPB_Buffer_API implementation.
37 virtual PP_Bool Describe(uint32_t* size_in_bytes) OVERRIDE; 37 virtual PP_Bool Describe(uint32_t* size_in_bytes) OVERRIDE;
38 virtual PP_Bool IsMapped() OVERRIDE; 38 virtual PP_Bool IsMapped() OVERRIDE;
39 virtual void* Map() OVERRIDE; 39 virtual void* Map() OVERRIDE;
40 virtual void Unmap() OVERRIDE; 40 virtual void Unmap() OVERRIDE;
41 41
42 private: 42 private:
43 explicit PPB_Buffer_Impl(PluginInstance* instance); 43 explicit PPB_Buffer_Impl(PluginInstance* instance);
44 bool Init(uint32_t size); 44 bool Init(uint32_t size);
(...skipping 23 matching lines...) Expand all
68 void* data_; 68 void* data_;
69 uint32_t size_; 69 uint32_t size_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(BufferAutoMapper); 71 DISALLOW_COPY_AND_ASSIGN(BufferAutoMapper);
72 }; 72 };
73 73
74 } // namespace ppapi 74 } // namespace ppapi
75 } // namespace webkit 75 } // namespace webkit
76 76
77 #endif // WEBKIT_PLUGINS_PPAPI_PPB_BUFFER_IMPL_H_ 77 #endif // WEBKIT_PLUGINS_PPAPI_PPB_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_broker_impl.cc ('k') | webkit/plugins/ppapi/ppb_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698