| 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_PROXY_PPB_FLASH_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_FLASH_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_FLASH_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_FLASH_PROXY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "ipc/ipc_platform_file.h" | 12 #include "ipc/ipc_platform_file.h" |
| 13 #include "ppapi/c/pp_bool.h" | 13 #include "ppapi/c/pp_bool.h" |
| 14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
| 15 #include "ppapi/c/pp_module.h" | 15 #include "ppapi/c/pp_module.h" |
| 16 #include "ppapi/c/pp_time.h" | 16 #include "ppapi/c/pp_time.h" |
| 17 #include "ppapi/c/private/ppb_flash.h" | 17 #include "ppapi/c/private/ppb_flash.h" |
| 18 #include "ppapi/proxy/interface_proxy.h" | 18 #include "ppapi/proxy/interface_proxy.h" |
| 19 #include "ppapi/proxy/serialized_var.h" | 19 #include "ppapi/proxy/serialized_var.h" |
| 20 #include "ppapi/shared_impl/host_resource.h" | 20 #include "ppapi/shared_impl/host_resource.h" |
| 21 #include "ppapi/shared_impl/ppb_flash_shared.h" | 21 #include "ppapi/shared_impl/ppb_flash_shared.h" |
| 22 | 22 |
| 23 struct PPB_Flash_Font_0_1; |
| 23 struct PPB_Flash_Print_1_0; | 24 struct PPB_Flash_Print_1_0; |
| 24 | 25 |
| 25 namespace ppapi { | 26 namespace ppapi { |
| 26 | 27 |
| 27 struct PPB_URLRequestInfo_Data; | 28 struct PPB_URLRequestInfo_Data; |
| 28 | 29 |
| 29 namespace proxy { | 30 namespace proxy { |
| 30 | 31 |
| 31 struct PPBFlash_DrawGlyphs_Params; | 32 struct PPBFlash_DrawGlyphs_Params; |
| 32 struct SerializedDirEntry; | 33 struct SerializedDirEntry; |
| 33 class SerializedVarReturnValue; | 34 class SerializedVarReturnValue; |
| 34 | 35 |
| 35 class PPB_Flash_Proxy : public InterfaceProxy, public PPB_Flash_Shared { | 36 class PPB_Flash_Proxy : public InterfaceProxy, public PPB_Flash_Shared { |
| 36 public: | 37 public: |
| 37 explicit PPB_Flash_Proxy(Dispatcher* dispatcher); | 38 explicit PPB_Flash_Proxy(Dispatcher* dispatcher); |
| 38 virtual ~PPB_Flash_Proxy(); | 39 virtual ~PPB_Flash_Proxy(); |
| 39 | 40 |
| 40 // This flash proxy also proxies the PPB_Flash_Print interface. This one | 41 // This flash proxy also proxies the PPB_Flash_Font and PPB_Flash_Print |
| 41 // doesn't use the regular thunk system because the _impl side is actually in | 42 // interfaces. They don't use the regular thunk system because the _impl side |
| 42 // Chrome rather than with the rest of the interface implementations. | 43 // is actually in Chrome rather than with the rest of the interface |
| 44 // implementations. |
| 45 static const PPB_Flash_Font_0_1* GetFlashFontInterface(); |
| 43 static const PPB_Flash_Print_1_0* GetFlashPrintInterface(); | 46 static const PPB_Flash_Print_1_0* GetFlashPrintInterface(); |
| 44 | 47 |
| 45 // InterfaceProxy implementation. | 48 // InterfaceProxy implementation. |
| 46 virtual bool OnMessageReceived(const IPC::Message& msg); | 49 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 47 | 50 |
| 48 // PPB_Flash_API implementation. | 51 // PPB_Flash_API implementation. |
| 49 virtual void SetInstanceAlwaysOnTop(PP_Instance instance, | 52 virtual void SetInstanceAlwaysOnTop(PP_Instance instance, |
| 50 PP_Bool on_top) OVERRIDE; | 53 PP_Bool on_top) OVERRIDE; |
| 51 virtual PP_Bool DrawGlyphs(PP_Instance instance, | 54 virtual PP_Bool DrawGlyphs(PP_Instance instance, |
| 52 PP_Resource pp_image_data, | 55 PP_Resource pp_image_data, |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 SerializedVarReturnValue result); | 186 SerializedVarReturnValue result); |
| 184 void OnHostMsgInvokePrinting(PP_Instance instance); | 187 void OnHostMsgInvokePrinting(PP_Instance instance); |
| 185 | 188 |
| 186 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); | 189 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); |
| 187 }; | 190 }; |
| 188 | 191 |
| 189 } // namespace proxy | 192 } // namespace proxy |
| 190 } // namespace ppapi | 193 } // namespace ppapi |
| 191 | 194 |
| 192 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ | 195 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ |
| OLD | NEW |