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

Unified Diff: content/browser/renderer_host/pepper/pepper_message_filter.cc

Issue 11413200: Refactored PPB_Flash GetSettings to the new pepper resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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: content/browser/renderer_host/pepper/pepper_message_filter.cc
diff --git a/content/browser/renderer_host/pepper/pepper_message_filter.cc b/content/browser/renderer_host/pepper/pepper_message_filter.cc
index c9bda2d89e933f850245a1e3d79cef37f3ed43f6..11e618d9ad9f4be04e51e66afb68453dde7c215a 100644
--- a/content/browser/renderer_host/pepper/pepper_message_filter.cc
+++ b/content/browser/renderer_host/pepper/pepper_message_filter.cc
@@ -182,10 +182,6 @@ bool PepperMessageFilter::OnMessageReceived(const IPC::Message& msg,
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBX509Certificate_ParseDER,
OnX509CertificateParseDER);
- // Flash messages.
- IPC_MESSAGE_HANDLER(PepperMsg_GetLocalDataRestrictions,
- OnGetLocalDataRestrictions)
-
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP_EX()
return handled;
@@ -702,25 +698,6 @@ void PepperMessageFilter::OnX509CertificateParseDER(
result);
}
-void PepperMessageFilter::OnGetLocalDataRestrictions(
- const GURL& document_url,
- const GURL& plugin_url,
- PP_FlashLSORestrictions* restrictions) {
- ContentBrowserClient* client = GetContentClient()->browser();
- if (!client->AllowPluginLocalDataAccess(document_url, plugin_url,
- resource_context_)) {
- *restrictions = PP_FLASHLSORESTRICTIONS_BLOCK;
- return;
- }
-
- if (client->AllowPluginLocalDataSessionOnly(plugin_url, resource_context_)) {
- *restrictions = PP_FLASHLSORESTRICTIONS_IN_MEMORY;
- return;
- }
-
- *restrictions = PP_FLASHLSORESTRICTIONS_NONE;
-}
-
void PepperMessageFilter::GetFontFamiliesComplete(
IPC::Message* reply_msg,
scoped_ptr<base::ListValue> result) {
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_message_filter.h ('k') | content/renderer/pepper/pepper_plugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698