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

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

Issue 12702011: Pepper: Unify Buffer and BufferTrusted APIs. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove proxy implementation of GetSharedMemory. Created 7 years, 9 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
« no previous file with comments | « ppapi/ppapi_shared.gypi ('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"
(...skipping 17 matching lines...) Expand all
28 28
29 // Resource overrides. 29 // Resource overrides.
30 virtual thunk::PPB_Buffer_API* AsPPB_Buffer_API() OVERRIDE; 30 virtual thunk::PPB_Buffer_API* AsPPB_Buffer_API() OVERRIDE;
31 31
32 // PPB_Buffer_API implementation. 32 // PPB_Buffer_API implementation.
33 virtual PP_Bool Describe(uint32_t* size_in_bytes) OVERRIDE; 33 virtual PP_Bool Describe(uint32_t* size_in_bytes) OVERRIDE;
34 virtual PP_Bool IsMapped() OVERRIDE; 34 virtual PP_Bool IsMapped() OVERRIDE;
35 virtual void* Map() OVERRIDE; 35 virtual void* Map() OVERRIDE;
36 virtual void Unmap() OVERRIDE; 36 virtual void Unmap() OVERRIDE;
37 37
38 // Trusted
39 virtual int32_t GetSharedMemory(int* handle) OVERRIDE;
40
38 private: 41 private:
39 base::SharedMemory shm_; 42 base::SharedMemory shm_;
40 uint32_t size_; 43 uint32_t size_;
41 int map_count_; 44 int map_count_;
42 45
43 DISALLOW_COPY_AND_ASSIGN(Buffer); 46 DISALLOW_COPY_AND_ASSIGN(Buffer);
44 }; 47 };
45 48
46 class PPB_Buffer_Proxy : public InterfaceProxy { 49 class PPB_Buffer_Proxy : public InterfaceProxy {
47 public: 50 public:
(...skipping 16 matching lines...) Expand all
64 void OnMsgCreate(PP_Instance instance, 67 void OnMsgCreate(PP_Instance instance,
65 uint32_t size, 68 uint32_t size,
66 HostResource* result_resource, 69 HostResource* result_resource,
67 ppapi::proxy::SerializedHandle* result_shm_handle); 70 ppapi::proxy::SerializedHandle* result_shm_handle);
68 }; 71 };
69 72
70 } // namespace proxy 73 } // namespace proxy
71 } // namespace ppapi 74 } // namespace ppapi
72 75
73 #endif // PPAPI_PROXY_PPB_BUFFER_PROXY_H_ 76 #endif // PPAPI_PROXY_PPB_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/ppapi_shared.gypi ('k') | ppapi/proxy/ppb_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698