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

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

Issue 13004012: Implement the host side of the PPB_PDF proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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/ppapi_messages.h ('k') | ppapi/proxy/serialized_structs.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_PPB_IMAGE_DATA_PROXY_H_ 5 #ifndef PPAPI_PPB_IMAGE_DATA_PROXY_H_
6 #define PPAPI_PPB_IMAGE_DATA_PROXY_H_ 6 #define PPAPI_PPB_IMAGE_DATA_PROXY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_completion_callback.h" 12 #include "ppapi/c/pp_completion_callback.h"
13 #include "ppapi/c/pp_instance.h" 13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_module.h" 14 #include "ppapi/c/pp_module.h"
15 #include "ppapi/c/pp_resource.h" 15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/pp_size.h" 16 #include "ppapi/c/pp_size.h"
17 #include "ppapi/c/pp_var.h" 17 #include "ppapi/c/pp_var.h"
18 #include "ppapi/c/ppb_image_data.h" 18 #include "ppapi/c/ppb_image_data.h"
19 #include "ppapi/proxy/interface_proxy.h" 19 #include "ppapi/proxy/interface_proxy.h"
20 #include "ppapi/proxy/ppapi_proxy_export.h"
20 #include "ppapi/proxy/serialized_structs.h" 21 #include "ppapi/proxy/serialized_structs.h"
21 #include "ppapi/shared_impl/ppb_image_data_shared.h" 22 #include "ppapi/shared_impl/ppb_image_data_shared.h"
22 #include "ppapi/shared_impl/resource.h" 23 #include "ppapi/shared_impl/resource.h"
23 #include "ppapi/thunk/ppb_image_data_api.h" 24 #include "ppapi/thunk/ppb_image_data_api.h"
24 25
25 class TransportDIB; 26 class TransportDIB;
26 27
27 namespace ppapi { 28 namespace ppapi {
28 namespace proxy { 29 namespace proxy {
29 30
30 class SerializedHandle; 31 class SerializedHandle;
31 32
32 // The proxied image data resource. Unlike most resources, this needs to be 33 // The proxied image data resource. Unlike most resources, this needs to be
33 // public in the header since a number of other resources need to access it. 34 // public in the header since a number of other resources need to access it.
34 class ImageData : public ppapi::Resource, 35 class PPAPI_PROXY_EXPORT ImageData
35 public ppapi::thunk::PPB_ImageData_API, 36 : public ppapi::Resource,
36 public ppapi::PPB_ImageData_Shared { 37 public NON_EXPORTED_BASE(ppapi::thunk::PPB_ImageData_API),
38 public ppapi::PPB_ImageData_Shared {
37 public: 39 public:
38 #if !defined(OS_NACL) 40 #if !defined(OS_NACL)
39 ImageData(const ppapi::HostResource& resource, 41 ImageData(const ppapi::HostResource& resource,
40 const PP_ImageDataDesc& desc, 42 const PP_ImageDataDesc& desc,
41 ImageHandle handle); 43 ImageHandle handle);
42 #else 44 #else
43 // In NaCl, we only allow creating an ImageData using a SharedMemoryHandle. 45 // In NaCl, we only allow creating an ImageData using a SharedMemoryHandle.
44 // ImageHandle can differ by host platform. We need something that is 46 // ImageHandle can differ by host platform. We need something that is
45 // more consistent across platforms for NaCl, so that we can communicate to 47 // more consistent across platforms for NaCl, so that we can communicate to
46 // the host OS in a consistent way. 48 // the host OS in a consistent way.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Host->Plugin message handlers. 133 // Host->Plugin message handlers.
132 void OnPluginMsgNotifyUnusedImageData(const HostResource& old_image_data); 134 void OnPluginMsgNotifyUnusedImageData(const HostResource& old_image_data);
133 135
134 DISALLOW_COPY_AND_ASSIGN(PPB_ImageData_Proxy); 136 DISALLOW_COPY_AND_ASSIGN(PPB_ImageData_Proxy);
135 }; 137 };
136 138
137 } // namespace proxy 139 } // namespace proxy
138 } // namespace ppapi 140 } // namespace ppapi
139 141
140 #endif // PPAPI_PPB_IMAGE_DATA_PROXY_H_ 142 #endif // PPAPI_PPB_IMAGE_DATA_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/serialized_structs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698