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

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

Issue 10828023: PPAPI/NaCl: Make NaClIPCAdapter transfer handles more generally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-add gyp files Created 8 years, 3 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.cc ('k') | ppapi/proxy/ppb_buffer_proxy.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) 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"
11 #include "ppapi/shared_impl/resource.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 14
14 namespace ppapi { 15 namespace ppapi {
15 16
16 class HostResource; 17 class HostResource;
17 18
18 namespace proxy { 19 namespace proxy {
19 20
20 class Buffer : public thunk::PPB_Buffer_API, public Resource { 21 class Buffer : public thunk::PPB_Buffer_API, public Resource {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // InterfaceProxy implementation. 56 // InterfaceProxy implementation.
56 virtual bool OnMessageReceived(const IPC::Message& msg); 57 virtual bool OnMessageReceived(const IPC::Message& msg);
57 58
58 static const ApiID kApiID = API_ID_PPB_BUFFER; 59 static const ApiID kApiID = API_ID_PPB_BUFFER;
59 60
60 private: 61 private:
61 // Message handlers. 62 // Message handlers.
62 void OnMsgCreate(PP_Instance instance, 63 void OnMsgCreate(PP_Instance instance,
63 uint32_t size, 64 uint32_t size,
64 HostResource* result_resource, 65 HostResource* result_resource,
65 base::SharedMemoryHandle* result_shm_handle); 66 ppapi::proxy::SerializedHandle* result_shm_handle);
66 }; 67 };
67 68
68 } // namespace proxy 69 } // namespace proxy
69 } // namespace ppapi 70 } // namespace ppapi
70 71
71 #endif // PPAPI_PROXY_PPB_BUFFER_PROXY_H_ 72 #endif // PPAPI_PROXY_PPB_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_audio_proxy.cc ('k') | ppapi/proxy/ppb_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698