| OLD | NEW |
| 1 // Copyright (c) 2010 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 #include "ppapi/proxy/ppb_flash_proxy.h" | 5 #include "ppapi/proxy/ppb_flash_proxy.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "ppapi/c/dev/pp_file_info_dev.h" | 9 #include "ppapi/c/dev/pp_file_info_dev.h" |
| 10 #include "ppapi/c/dev/ppb_font_dev.h" | 10 #include "ppapi/c/dev/ppb_font_dev.h" |
| 11 #include "ppapi/c/pp_completion_callback.h" | 11 #include "ppapi/c/pp_completion_callback.h" |
| 12 #include "ppapi/c/pp_errors.h" | 12 #include "ppapi/c/pp_errors.h" |
| 13 #include "ppapi/c/pp_resource.h" | 13 #include "ppapi/c/pp_resource.h" |
| 14 #include "ppapi/c/private/ppb_flash.h" |
| 14 #include "ppapi/proxy/plugin_dispatcher.h" | 15 #include "ppapi/proxy/plugin_dispatcher.h" |
| 15 #include "ppapi/proxy/plugin_resource.h" | 16 #include "ppapi/proxy/plugin_resource.h" |
| 16 #include "ppapi/proxy/ppapi_messages.h" | 17 #include "ppapi/proxy/ppapi_messages.h" |
| 17 #include "ppapi/proxy/serialized_var.h" | 18 #include "ppapi/proxy/serialized_var.h" |
| 18 #include "webkit/plugins/ppapi/ppb_flash.h" | |
| 19 | 19 |
| 20 namespace pp { | 20 namespace pp { |
| 21 namespace proxy { | 21 namespace proxy { |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 // Given an error code and a handle result from a Pepper API call, converts | 25 // Given an error code and a handle result from a Pepper API call, converts |
| 26 // to a PlatformFileForTransit, possibly also updating the error value if | 26 // to a PlatformFileForTransit, possibly also updating the error value if |
| 27 // an error occurred. | 27 // an error occurred. |
| 28 IPC::PlatformFileForTransit PlatformFileToPlatformFileForTransit( | 28 IPC::PlatformFileForTransit PlatformFileToPlatformFileForTransit( |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 void PPB_Flash_Proxy::OnMsgNavigateToURL(PP_Instance instance, | 353 void PPB_Flash_Proxy::OnMsgNavigateToURL(PP_Instance instance, |
| 354 const std::string& url, | 354 const std::string& url, |
| 355 const std::string& target, | 355 const std::string& target, |
| 356 bool* result) { | 356 bool* result) { |
| 357 *result = ppb_flash_target()->NavigateToURL(instance, url.c_str(), | 357 *result = ppb_flash_target()->NavigateToURL(instance, url.c_str(), |
| 358 target.c_str()); | 358 target.c_str()); |
| 359 } | 359 } |
| 360 | 360 |
| 361 } // namespace proxy | 361 } // namespace proxy |
| 362 } // namespace pp | 362 } // namespace pp |
| OLD | NEW |