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

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

Issue 7587011: Remove the old type system for proxied resources. These were no longer being used. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: New one Created 9 years, 4 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/plugin_resource.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) 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 PPAPI_PPB_BUFFER_PROXY_H_ 5 #ifndef PPAPI_PPB_BUFFER_PROXY_H_
6 #define PPAPI_PPB_BUFFER_PROXY_H_ 6 #define PPAPI_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/plugin_resource.h" 11 #include "ppapi/proxy/plugin_resource.h"
12 #include "ppapi/thunk/ppb_buffer_api.h" 12 #include "ppapi/thunk/ppb_buffer_api.h"
13 13
14 struct PPB_Buffer_Dev; 14 struct PPB_Buffer_Dev;
15 15
16 namespace pp { 16 namespace pp {
17 namespace proxy { 17 namespace proxy {
18 18
19 class HostResource; 19 class HostResource;
20 20
21 class Buffer : public ppapi::thunk::PPB_Buffer_API, 21 class Buffer : public ppapi::thunk::PPB_Buffer_API,
22 public PluginResource { 22 public PluginResource {
23 public: 23 public:
24 Buffer(const HostResource& resource, 24 Buffer(const HostResource& resource,
25 const base::SharedMemoryHandle& shm_handle, 25 const base::SharedMemoryHandle& shm_handle,
26 uint32_t size); 26 uint32_t size);
27 virtual ~Buffer(); 27 virtual ~Buffer();
28 28
29 // Resource overrides.
30 virtual Buffer* AsBuffer() OVERRIDE;
31
32 // ResourceObjectBase overrides. 29 // ResourceObjectBase overrides.
33 virtual ppapi::thunk::PPB_Buffer_API* AsPPB_Buffer_API() OVERRIDE; 30 virtual ppapi::thunk::PPB_Buffer_API* AsPPB_Buffer_API() OVERRIDE;
34 31
35 // PPB_Buffer_API implementation. 32 // PPB_Buffer_API implementation.
36 virtual PP_Bool Describe(uint32_t* size_in_bytes) OVERRIDE; 33 virtual PP_Bool Describe(uint32_t* size_in_bytes) OVERRIDE;
37 virtual PP_Bool IsMapped() OVERRIDE; 34 virtual PP_Bool IsMapped() OVERRIDE;
38 virtual void* Map() OVERRIDE; 35 virtual void* Map() OVERRIDE;
39 virtual void Unmap() OVERRIDE; 36 virtual void Unmap() OVERRIDE;
40 37
41 private: 38 private:
(...skipping 30 matching lines...) Expand all
72 void OnMsgCreate(PP_Instance instance, 69 void OnMsgCreate(PP_Instance instance,
73 uint32_t size, 70 uint32_t size,
74 HostResource* result_resource, 71 HostResource* result_resource,
75 base::SharedMemoryHandle* result_shm_handle); 72 base::SharedMemoryHandle* result_shm_handle);
76 }; 73 };
77 74
78 } // namespace proxy 75 } // namespace proxy
79 } // namespace pp 76 } // namespace pp
80 77
81 #endif // PPAPI_PPB_BUFFER_PROXY_H_ 78 #endif // PPAPI_PPB_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_resource.cc ('k') | ppapi/proxy/ppb_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698