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

Unified Diff: ppapi/proxy/ppb_flash_proxy.cc

Issue 10831045: Add PP_FlashLSORestrictions to the list of settings supported by the Flash_GetSetting Pepper API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: brett Created 8 years, 5 months 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
« no previous file with comments | « ppapi/proxy/ppb_flash_proxy.h ('k') | webkit/plugins/ppapi/mock_plugin_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_flash_proxy.cc
diff --git a/ppapi/proxy/ppb_flash_proxy.cc b/ppapi/proxy/ppb_flash_proxy.cc
index 227fda1afcab5520b348ef439689f8d249c0ec4e..d99a816b7237f7caa75dc5325ea22630055ad69e 100644
--- a/ppapi/proxy/ppb_flash_proxy.cc
+++ b/ppapi/proxy/ppb_flash_proxy.cc
@@ -126,6 +126,8 @@ bool PPB_Flash_Proxy::OnMessageReceived(const IPC::Message& msg) {
OnHostMsgGetDeviceID)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_InvokePrinting,
OnHostMsgInvokePrinting)
+ IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_GetSetting,
+ OnHostMsgGetSetting)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
// TODO(brettw) handle bad messages!
@@ -304,6 +306,12 @@ PP_Var PPB_Flash_Proxy::GetSetting(PP_Instance instance,
PluginGlobals::Get()->plugin_proxy_delegate()->GetUILanguage());
case PP_FLASHSETTING_NUMCORES:
return PP_MakeInt32(plugin_dispatcher->preferences().number_of_cpu_cores);
+ case PP_FLASHSETTING_LSORESTRICTIONS: {
+ ReceiveSerializedVarReturnValue result;
+ dispatcher()->Send(new PpapiHostMsg_PPBFlash_GetSetting(
+ API_ID_PPB_FLASH, instance, setting, &result));
+ return result.Return(dispatcher());
+ }
}
return PP_MakeUndefined();
}
@@ -831,6 +839,19 @@ void PPB_Flash_Proxy::OnHostMsgQueryFileRef(
instance, host_resource.host_resource(), info);
}
+void PPB_Flash_Proxy::OnHostMsgGetSetting(PP_Instance instance,
+ PP_FlashSetting setting,
+ SerializedVarReturnValue id) {
+ EnterInstanceNoLock enter(instance);
+ if (enter.succeeded()) {
+ id.Return(dispatcher(),
+ enter.functions()->GetFlashAPI()->GetSetting(
+ instance, setting));
+ } else {
+ id.Return(dispatcher(), PP_MakeUndefined());
+ }
+}
+
void PPB_Flash_Proxy::OnHostMsgGetDeviceID(PP_Instance instance,
SerializedVarReturnValue id) {
EnterInstanceNoLock enter(instance);
« no previous file with comments | « ppapi/proxy/ppb_flash_proxy.h ('k') | webkit/plugins/ppapi/mock_plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698