| OLD | NEW |
| 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/serialized_structs.h" | 20 #include "ppapi/proxy/serialized_structs.h" |
| 21 #include "ppapi/shared_impl/ppb_image_data_shared.h" | 21 #include "ppapi/shared_impl/ppb_image_data_shared.h" |
| 22 #include "ppapi/shared_impl/resource.h" | 22 #include "ppapi/shared_impl/resource.h" |
| 23 #include "ppapi/thunk/ppb_image_data_api.h" | 23 #include "ppapi/thunk/ppb_image_data_api.h" |
| 24 | 24 |
| 25 class TransportDIB; | 25 class TransportDIB; |
| 26 | 26 |
| 27 namespace ppapi { | 27 namespace ppapi { |
| 28 namespace proxy { | 28 namespace proxy { |
| 29 | 29 |
| 30 class SerializedHandle; |
| 31 |
| 30 // The proxied image data resource. Unlike most resources, this needs to be | 32 // The proxied image data resource. Unlike most resources, this needs to be |
| 31 // public in the header since a number of other resources need to access it. | 33 // public in the header since a number of other resources need to access it. |
| 32 class ImageData : public ppapi::Resource, | 34 class ImageData : public ppapi::Resource, |
| 33 public ppapi::thunk::PPB_ImageData_API, | 35 public ppapi::thunk::PPB_ImageData_API, |
| 34 public ppapi::PPB_ImageData_Shared { | 36 public ppapi::PPB_ImageData_Shared { |
| 35 public: | 37 public: |
| 36 #if !defined(OS_NACL) | 38 #if !defined(OS_NACL) |
| 37 ImageData(const ppapi::HostResource& resource, | 39 ImageData(const ppapi::HostResource& resource, |
| 38 const PP_ImageDataDesc& desc, | 40 const PP_ImageDataDesc& desc, |
| 39 ImageHandle handle); | 41 ImageHandle handle); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // Host->Plugin message handlers. | 130 // Host->Plugin message handlers. |
| 129 void OnPluginMsgNotifyUnusedImageData(const HostResource& old_image_data); | 131 void OnPluginMsgNotifyUnusedImageData(const HostResource& old_image_data); |
| 130 | 132 |
| 131 DISALLOW_COPY_AND_ASSIGN(PPB_ImageData_Proxy); | 133 DISALLOW_COPY_AND_ASSIGN(PPB_ImageData_Proxy); |
| 132 }; | 134 }; |
| 133 | 135 |
| 134 } // namespace proxy | 136 } // namespace proxy |
| 135 } // namespace ppapi | 137 } // namespace ppapi |
| 136 | 138 |
| 137 #endif // PPAPI_PPB_IMAGE_DATA_PROXY_H_ | 139 #endif // PPAPI_PPB_IMAGE_DATA_PROXY_H_ |
| OLD | NEW |