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

Side by Side Diff: ppapi/proxy/ppb_buffer_proxy.h

Issue 11894003: PPAPI/NaCl: Move handle extraction code to ppapi/proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 11 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 | « ppapi/proxy/ppb_audio_proxy.h ('k') | ppapi/proxy/ppb_graphics_3d_proxy.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 PPAPI_PROXY_PPB_BUFFER_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_BUFFER_PROXY_H_
6 #define PPAPI_PROXY_PPB_BUFFER_PROXY_H_ 6 #define PPAPI_PROXY_PPB_BUFFER_PROXY_H_
7 7
8 #include "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/proxy/interface_proxy.h" 10 #include "ppapi/proxy/interface_proxy.h"
11 #include "ppapi/proxy/serialized_structs.h"
12 #include "ppapi/shared_impl/resource.h" 11 #include "ppapi/shared_impl/resource.h"
13 #include "ppapi/thunk/ppb_buffer_api.h" 12 #include "ppapi/thunk/ppb_buffer_api.h"
14 13
15 namespace ppapi { 14 namespace ppapi {
16 15
17 class HostResource; 16 class HostResource;
18 17
19 namespace proxy { 18 namespace proxy {
20 19
20 class SerializedHandle;
21
21 class Buffer : public thunk::PPB_Buffer_API, public Resource { 22 class Buffer : public thunk::PPB_Buffer_API, public Resource {
22 public: 23 public:
23 Buffer(const HostResource& resource, 24 Buffer(const HostResource& resource,
24 const base::SharedMemoryHandle& shm_handle, 25 const base::SharedMemoryHandle& shm_handle,
25 uint32_t size); 26 uint32_t size);
26 virtual ~Buffer(); 27 virtual ~Buffer();
27 28
28 // Resource overrides. 29 // Resource overrides.
29 virtual thunk::PPB_Buffer_API* AsPPB_Buffer_API() OVERRIDE; 30 virtual thunk::PPB_Buffer_API* AsPPB_Buffer_API() OVERRIDE;
30 31
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void OnMsgCreate(PP_Instance instance, 64 void OnMsgCreate(PP_Instance instance,
64 uint32_t size, 65 uint32_t size,
65 HostResource* result_resource, 66 HostResource* result_resource,
66 ppapi::proxy::SerializedHandle* result_shm_handle); 67 ppapi::proxy::SerializedHandle* result_shm_handle);
67 }; 68 };
68 69
69 } // namespace proxy 70 } // namespace proxy
70 } // namespace ppapi 71 } // namespace ppapi
71 72
72 #endif // PPAPI_PROXY_PPB_BUFFER_PROXY_H_ 73 #endif // PPAPI_PROXY_PPB_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_audio_proxy.h ('k') | ppapi/proxy/ppb_graphics_3d_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698