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

Unified Diff: chrome/browser/pepper_flash_settings_manager.h

Issue 10479015: Pepper Flash settings integration - camera and microphone. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & resolve conflicts Created 8 years, 6 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
Index: chrome/browser/pepper_flash_settings_manager.h
diff --git a/chrome/browser/pepper_flash_settings_manager.h b/chrome/browser/pepper_flash_settings_manager.h
index 4a20df31ba51c875648741caec4bb5a5977680a5..10489126b225ea7a10e425736ab9f2c4cf54d4b1 100644
--- a/chrome/browser/pepper_flash_settings_manager.h
+++ b/chrome/browser/pepper_flash_settings_manager.h
@@ -8,6 +8,8 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
+#include "ppapi/c/private/ppp_flash_browser_operations.h"
+#include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
class PluginPrefs;
class PrefService;
@@ -29,7 +31,18 @@ class PepperFlashSettingsManager {
virtual ~Client() {}
virtual void OnDeauthorizeContentLicensesCompleted(uint32 request_id,
- bool success) = 0;
+ bool success) {}
+ virtual void OnGetPermissionSettingsCompleted(
+ uint32 request_id,
+ bool success,
+ PP_Flash_BrowserOperations_Permission default_permission,
+ const ppapi::FlashSiteSettings& sites) {}
+
+ virtual void OnSetDefaultPermissionCompleted(uint32 request_id,
+ bool success) {}
+
+ virtual void OnSetSitePermissionCompleted(uint32 request_id,
+ bool success) {}
};
// |client| must outlive this object. It is guaranteed that |client| won't
@@ -52,6 +65,26 @@ class PepperFlashSettingsManager {
// Client::OnDeauthorizeContentLicensesCompleted().
uint32 DeauthorizeContentLicenses();
+ // Gets permission settings.
+ // Client::OnGetPermissionSettingsCompleted() will be called when the
+ // operation is completed.
+ uint32 GetPermissionSettings(
+ PP_Flash_BrowserOperations_SettingType setting_type);
+
+ // Sets default permission.
+ // Client::OnSetDefaultPermissionCompleted() will be called when the
+ // operation is completed.
+ uint32 SetDefaultPermission(
+ PP_Flash_BrowserOperations_SettingType setting_type,
+ PP_Flash_BrowserOperations_Permission permission,
+ bool clear_site_specific);
+
+ // Sets site-specific permission.
+ // Client::OnSetSitePermissionCompleted() will be called when the operation
+ // is completed.
+ uint32 SetSitePermission(PP_Flash_BrowserOperations_SettingType setting_type,
+ const ppapi::FlashSiteSettings& sites);
+
private:
// Core does most of the work. It is ref-counted so that its lifespan can be
// independent of the containing object's:

Powered by Google App Engine
This is Rietveld 408576698