summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_flash_proxy.cc
diff options
context:
space:
mode:
authorraymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-04 08:47:34 +0000
committerraymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-04 08:47:34 +0000
commita9f2a621cdba062410caeafc34c942a471f4bb1f (patch)
tree1d5190f70a7b45d9b3df9c3cf62853d0d0e564a5 /ppapi/proxy/ppb_flash_proxy.cc
parent9f0ab7de850649d0c0c4f9b45f20c0d7a2477f06 (diff)
downloadchromium_src-a9f2a621cdba062410caeafc34c942a471f4bb1f.zip
chromium_src-a9f2a621cdba062410caeafc34c942a471f4bb1f.tar.gz
chromium_src-a9f2a621cdba062410caeafc34c942a471f4bb1f.tar.bz2
Refactor 3 PPB_Flash functions to the new resource model.
This refactors the following flash functions to the new resource model. -GetProxyForURL -UpdateActivity -SetCrashData BUG= Review URL: https://chromiumcodereview.appspot.com/11415140 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170907 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_flash_proxy.cc')
-rw-r--r--ppapi/proxy/ppb_flash_proxy.cc42
1 files changed, 0 insertions, 42 deletions
diff --git a/ppapi/proxy/ppb_flash_proxy.cc b/ppapi/proxy/ppb_flash_proxy.cc
index 0846dde..4a9cd8f 100644
--- a/ppapi/proxy/ppb_flash_proxy.cc
+++ b/ppapi/proxy/ppb_flash_proxy.cc
@@ -106,8 +106,6 @@ bool PPB_Flash_Proxy::OnMessageReceived(const IPC::Message& msg) {
OnHostMsgSetInstanceAlwaysOnTop)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_DrawGlyphs,
OnHostMsgDrawGlyphs)
- IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_GetProxyForURL,
- OnHostMsgGetProxyForURL)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_Navigate, OnHostMsgNavigate)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset,
OnHostMsgGetLocalTimeZoneOffset)
@@ -178,13 +176,6 @@ PP_Bool PPB_Flash_Proxy::DrawGlyphs(PP_Instance instance,
return result;
}
-PP_Var PPB_Flash_Proxy::GetProxyForURL(PP_Instance instance, const char* url) {
- ReceiveSerializedVarReturnValue result;
- dispatcher()->Send(new PpapiHostMsg_PPBFlash_GetProxyForURL(
- API_ID_PPB_FLASH, instance, url, &result));
- return result.Return(dispatcher());
-}
-
int32_t PPB_Flash_Proxy::Navigate(PP_Instance instance,
PP_Resource request_info,
const char* target,
@@ -261,11 +252,6 @@ PP_Bool PPB_Flash_Proxy::IsRectTopmost(PP_Instance instance,
return result;
}
-void PPB_Flash_Proxy::UpdateActivity(PP_Instance instance) {
- PluginGlobals::Get()->GetBrowserSender()->Send(
- new PpapiHostMsg_PPBFlash_UpdateActivity(API_ID_PPB_FLASH));
-}
-
PP_Var PPB_Flash_Proxy::GetSetting(PP_Instance instance,
PP_FlashSetting setting) {
PluginDispatcher* plugin_dispatcher =
@@ -294,21 +280,6 @@ PP_Var PPB_Flash_Proxy::GetSetting(PP_Instance instance,
return PP_MakeUndefined();
}
-PP_Bool PPB_Flash_Proxy::SetCrashData(PP_Instance instance,
- PP_FlashCrashKey key,
- PP_Var value) {
- switch (key) {
- case PP_FLASHCRASHKEY_URL:
- StringVar *url_string_var(StringVar::FromPPVar(value));
- if (!url_string_var)
- return PP_FALSE;
- std::string url_string(url_string_var->value());
- PluginGlobals::Get()->SetActiveURL(url_string);
- return PP_TRUE;
- }
- return PP_FALSE;
-}
-
bool PPB_Flash_Proxy::CreateThreadAdapterForInstance(PP_Instance instance) {
return true;
}
@@ -527,19 +498,6 @@ void PPB_Flash_Proxy::OnHostMsgDrawGlyphs(
PpapiGlobals::Get()->GetVarTracker()->ReleaseVar(font_desc.face);
}
-void PPB_Flash_Proxy::OnHostMsgGetProxyForURL(PP_Instance instance,
- const std::string& url,
- SerializedVarReturnValue result) {
- EnterInstanceNoLock enter(instance);
- if (enter.succeeded()) {
- result.Return(dispatcher(),
- enter.functions()->GetFlashAPI()->GetProxyForURL(
- instance, url.c_str()));
- } else {
- result.Return(dispatcher(), PP_MakeUndefined());
- }
-}
-
void PPB_Flash_Proxy::OnHostMsgNavigate(PP_Instance instance,
const URLRequestInfoData& data,
const std::string& target,