Chromium Code Reviews| Index: webkit/plugins/ppapi/ppb_flash_impl.cc |
| diff --git a/webkit/plugins/ppapi/ppb_flash_impl.cc b/webkit/plugins/ppapi/ppb_flash_impl.cc |
| index ef95290a4343b7eb444d62be1ec2a8c536fc5a4c..bf377d8addb3d8205d657a3d65536f3b2096584c 100644 |
| --- a/webkit/plugins/ppapi/ppb_flash_impl.cc |
| +++ b/webkit/plugins/ppapi/ppb_flash_impl.cc |
| @@ -27,6 +27,9 @@ |
| #include "third_party/skia/include/core/SkPoint.h" |
| #include "third_party/skia/include/core/SkTemplates.h" |
| #include "third_party/skia/include/core/SkTypeface.h" |
| +#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| +#include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
| +#include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" |
| #include "ui/gfx/rect.h" |
| #include "webkit/glue/clipboard_client.h" |
| #include "webkit/glue/scoped_clipboard_writer_glue.h" |
| @@ -249,9 +252,27 @@ int32_t PPB_Flash_Impl::GetSettingInt(PP_Instance instance, |
| } |
| PP_Var PPB_Flash_Impl::GetSetting(PP_Instance instance, |
| - PP_FlashSetting setting) { |
| - // No current settings are supported in-process. |
| - return PP_MakeUndefined(); |
| + PP_FlashSetting setting) { |
| + switch(setting) { |
| + case PP_FLASHSETTING_LSORESTRICTIONS: { |
|
viettrungluu
2012/08/01 04:06:41
Why exactly do we need to support this in-process?
Bernhard Bauer
2012/08/01 05:17:39
This is proxied from the plug-in process.
|
| + bool block_access = false; |
| + bool in_memory = false; |
| + instance_->delegate()->GetLocalDataRestrictions( |
| + instance_->container()->element().document().url(), |
| + instance_->plugin_url(), |
| + &block_access, &in_memory); |
| + if (block_access) |
| + return PP_MakeInt32(PP_FLASHLSORESTRICTIONS_BLOCK); |
| + |
| + if (in_memory) |
| + return PP_MakeInt32(PP_FLASHLSORESTRICTIONS_IN_MEMORY); |
| + |
| + return PP_MakeInt32(PP_FLASHLSORESTRICTIONS_NONE); |
| + } |
| + default: |
| + // No other settings are supported in-process. |
| + return PP_MakeUndefined(); |
| + } |
| } |
| PP_Bool PPB_Flash_Impl::SetCrashData(PP_Instance instance, |