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

Unified Diff: ppapi/proxy/ppb_flash_proxy.cc

Issue 11299147: Pepper proxy: make the browser sender handle the proxy lock properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/ppb_flash_proxy.cc
diff --git a/ppapi/proxy/ppb_flash_proxy.cc b/ppapi/proxy/ppb_flash_proxy.cc
index 23e335d044102ee22f1387a2da97f45fbb080724..735f11a8cfcd8ad5e4ffa690c87d3e89714c6ad4 100644
--- a/ppapi/proxy/ppb_flash_proxy.cc
+++ b/ppapi/proxy/ppb_flash_proxy.cc
@@ -22,7 +22,6 @@
#include "ppapi/proxy/pepper_file_messages.h"
#include "ppapi/proxy/plugin_dispatcher.h"
#include "ppapi/proxy/plugin_globals.h"
-#include "ppapi/proxy/plugin_proxy_delegate.h"
#include "ppapi/proxy/ppapi_messages.h"
#include "ppapi/proxy/proxy_module.h"
#include "ppapi/proxy/serialized_var.h"
@@ -285,7 +284,7 @@ PP_Bool PPB_Flash_Proxy::IsRectTopmost(PP_Instance instance,
}
void PPB_Flash_Proxy::UpdateActivity(PP_Instance instance) {
- PluginGlobals::Get()->plugin_proxy_delegate()->SendToBrowser(
+ PluginGlobals::Get()->GetBrowserSender()->Send(
new PpapiHostMsg_PPBFlash_UpdateActivity(API_ID_PPB_FLASH));
}
@@ -329,7 +328,7 @@ PP_Var PPB_Flash_Proxy::GetSetting(PP_Instance instance,
plugin_dispatcher->preferences().is_stage3d_supported));
case PP_FLASHSETTING_LANGUAGE:
return StringVar::StringToPPVar(
- PluginGlobals::Get()->plugin_proxy_delegate()->GetUILanguage());
+ PluginGlobals::Get()->GetUILanguage());
case PP_FLASHSETTING_NUMCORES:
return PP_MakeInt32(plugin_dispatcher->preferences().number_of_cpu_cores);
case PP_FLASHSETTING_LSORESTRICTIONS: {
@@ -351,7 +350,7 @@ PP_Bool PPB_Flash_Proxy::SetCrashData(PP_Instance instance,
if (!url_string_var)
return PP_FALSE;
std::string url_string(url_string_var->value());
- PluginGlobals::Get()->plugin_proxy_delegate()->SetActiveURL(url_string);
+ PluginGlobals::Get()->SetActiveURL(url_string);
return PP_TRUE;
}
return PP_FALSE;
@@ -379,7 +378,7 @@ int32_t PPB_Flash_Proxy::OpenFile(PP_Instance,
ppapi::PepperFilePath pepper_path(ppapi::PepperFilePath::DOMAIN_MODULE_LOCAL,
FilePath::FromUTF8Unsafe(path));
- if (PluginGlobals::Get()->plugin_proxy_delegate()->SendToBrowser(
+ if (PluginGlobals::Get()->GetBrowserSender()->Send(
new PepperFileMsg_OpenFile(pepper_path, flags,
&error, &transit_file))) {
*file = IPC::PlatformFileForTransitToPlatformFile(transit_file);
@@ -400,7 +399,7 @@ int32_t PPB_Flash_Proxy::RenameFile(PP_Instance,
ppapi::PepperFilePath pepper_to(ppapi::PepperFilePath::DOMAIN_MODULE_LOCAL,
FilePath::FromUTF8Unsafe(to_path));
- PluginGlobals::Get()->plugin_proxy_delegate()->SendToBrowser(
+ PluginGlobals::Get()->GetBrowserSender()->Send(
new PepperFileMsg_RenameFile(pepper_from, pepper_to, &error));
return ppapi::PlatformFileErrorToPepperError(error);
@@ -413,7 +412,7 @@ int32_t PPB_Flash_Proxy::DeleteFileOrDir(PP_Instance,
ppapi::PepperFilePath pepper_path(ppapi::PepperFilePath::DOMAIN_MODULE_LOCAL,
FilePath::FromUTF8Unsafe(path));
- PluginGlobals::Get()->plugin_proxy_delegate()->SendToBrowser(
+ PluginGlobals::Get()->GetBrowserSender()->Send(
new PepperFileMsg_DeleteFileOrDir(pepper_path,
PP_ToBool(recursive),
&error));
@@ -426,7 +425,7 @@ int32_t PPB_Flash_Proxy::CreateDir(PP_Instance, const char* path) {
ppapi::PepperFilePath pepper_path(ppapi::PepperFilePath::DOMAIN_MODULE_LOCAL,
FilePath::FromUTF8Unsafe(path));
- PluginGlobals::Get()->plugin_proxy_delegate()->SendToBrowser(
+ PluginGlobals::Get()->GetBrowserSender()->Send(
new PepperFileMsg_CreateDir(pepper_path, &error));
return ppapi::PlatformFileErrorToPepperError(error);
@@ -440,7 +439,7 @@ int32_t PPB_Flash_Proxy::QueryFile(PP_Instance,
ppapi::PepperFilePath pepper_path(ppapi::PepperFilePath::DOMAIN_MODULE_LOCAL,
FilePath::FromUTF8Unsafe(path));
- PluginGlobals::Get()->plugin_proxy_delegate()->SendToBrowser(
+ PluginGlobals::Get()->GetBrowserSender()->Send(
new PepperFileMsg_QueryFile(pepper_path, &file_info, &error));
if (error == base::PLATFORM_FILE_OK) {
@@ -466,7 +465,7 @@ int32_t PPB_Flash_Proxy::GetDirContents(PP_Instance,
ppapi::PepperFilePath pepper_path(ppapi::PepperFilePath::DOMAIN_MODULE_LOCAL,
FilePath::FromUTF8Unsafe(path));
- PluginGlobals::Get()->plugin_proxy_delegate()->SendToBrowser(
+ PluginGlobals::Get()->GetBrowserSender()->Send(
new PepperFileMsg_GetDirContents(pepper_path, &entries, &error));
if (error == base::PLATFORM_FILE_OK) {
@@ -496,7 +495,7 @@ int32_t PPB_Flash_Proxy::CreateTemporaryFile(PP_Instance instance,
base::PlatformFileError error;
IPC::PlatformFileForTransit transit_file;
- if (PluginGlobals::Get()->plugin_proxy_delegate()->SendToBrowser(
+ if (PluginGlobals::Get()->GetBrowserSender()->Send(
new PepperFileMsg_CreateTemporaryFile(&error, &transit_file))) {
*file = IPC::PlatformFileForTransitToPlatformFile(transit_file);
} else {

Powered by Google App Engine
This is Rietveld 408576698