Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / permissions / media_galleries_permission.h
index 75e8fa4..33e6d0f 100644 (file)
@@ -14,10 +14,14 @@ namespace extensions {
 
 // Media Galleries permissions are as follows:
 //   <media-galleries-permission-pattern>
-//             := <access> | <access> 'allAutoDetected' | 'allAutoDetected'
+//             := <access> | <access> 'allAutoDetected' | 'allAutoDetected' |
+//                <access> 'scan' | 'scan'
 //   <access>  := 'read' | 'read' <access> | 'read' <secondary-access>
 //   <secondary-access>
-//             := 'copyTo' | 'copyTo' <secondary-access>
+//             := 'delete' | 'delete' <secondary-access> |
+//                'delete' <tertiary-access>
+//   <tertiary-access>
+//             := 'copyTo' | 'copyTo' <tertiary-access>
 class MediaGalleriesPermission
   : public SetDisjunctionPermission<MediaGalleriesPermissionData,
                                     MediaGalleriesPermission> {
@@ -34,15 +38,17 @@ class MediaGalleriesPermission
   // SetDisjunctionPermission overrides.
   // MediaGalleriesPermission does additional checks to make sure the
   // permissions do not contain unknown values.
-  virtual bool FromValue(const base::Value* value) OVERRIDE;
+  virtual bool FromValue(const base::Value* value, std::string* error) OVERRIDE;
 
   // APIPermission overrides.
   virtual PermissionMessages GetMessages() const OVERRIDE;
 
   // Permission strings.
   static const char kAllAutoDetectedPermission[];
+  static const char kScanPermission[];
   static const char kReadPermission[];
   static const char kCopyToPermission[];
+  static const char kDeletePermission[];
 };
 
 }  // namespace extensions