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

Side by Side Diff: chrome/common/extensions/permissions/media_galleries_permission.h

Issue 133463003: Media Galleries API Scanning: Add Scan Permission and basic test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_MEDIA_GALLERIES_PERMISSION_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_MEDIA_GALLERIES_PERMISSION_H_
6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_MEDIA_GALLERIES_PERMISSION_H_ 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_MEDIA_GALLERIES_PERMISSION_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/common/extensions/permissions/media_galleries_permission_data.h " 9 #include "chrome/common/extensions/permissions/media_galleries_permission_data.h "
10 #include "chrome/common/extensions/permissions/set_disjunction_permission.h" 10 #include "chrome/common/extensions/permissions/set_disjunction_permission.h"
(...skipping 27 matching lines...) Expand all
38 // SetDisjunctionPermission overrides. 38 // SetDisjunctionPermission overrides.
39 // MediaGalleriesPermission does additional checks to make sure the 39 // MediaGalleriesPermission does additional checks to make sure the
40 // permissions do not contain unknown values. 40 // permissions do not contain unknown values.
41 virtual bool FromValue(const base::Value* value) OVERRIDE; 41 virtual bool FromValue(const base::Value* value) OVERRIDE;
42 42
43 // APIPermission overrides. 43 // APIPermission overrides.
44 virtual PermissionMessages GetMessages() const OVERRIDE; 44 virtual PermissionMessages GetMessages() const OVERRIDE;
45 45
46 // Permission strings. 46 // Permission strings.
47 static const char kAllAutoDetectedPermission[]; 47 static const char kAllAutoDetectedPermission[];
48 static const char kScanPermission[];
48 static const char kReadPermission[]; 49 static const char kReadPermission[];
49 static const char kCopyToPermission[]; 50 static const char kCopyToPermission[];
50 static const char kDeletePermission[]; 51 static const char kDeletePermission[];
51 }; 52 };
52 53
53 } // namespace extensions 54 } // namespace extensions
54 55
55 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_MEDIA_GALLERIES_PERMISSION_H_ 56 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_MEDIA_GALLERIES_PERMISSION_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/media_galleries.idl ('k') | chrome/common/extensions/permissions/media_galleries_permission.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698