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

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

Issue 10704258: Add extension permissions for Media Gallery API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comment Created 8 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PERMISSION_MESSAGE_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_
6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 29 matching lines...) Expand all
40 kTtsEngine, 40 kTtsEngine,
41 kContentSettings, 41 kContentSettings,
42 kAllPageContent, 42 kAllPageContent,
43 kPrivacy, 43 kPrivacy,
44 kManagedMode, 44 kManagedMode,
45 kInput, 45 kInput,
46 kAudioCapture, 46 kAudioCapture,
47 kVideoCapture, 47 kVideoCapture,
48 kDownloads, 48 kDownloads,
49 kFileSystemWrite, 49 kFileSystemWrite,
50 kMediaGalleriesAccessEverything,
50 kEnumBoundary 51 kEnumBoundary
51 }; 52 };
52 53
53 // Creates the corresponding permission message for a list of hosts. This is 54 // Creates the corresponding permission message for a list of hosts. This is
54 // simply a convenience method around the constructor, since the messages 55 // simply a convenience method around the constructor, since the messages
55 // change depending on what hosts are present. 56 // change depending on what hosts are present.
56 static PermissionMessage CreateFromHostList( 57 static PermissionMessage CreateFromHostList(
57 const std::set<std::string>& hosts); 58 const std::set<std::string>& hosts);
58 59
59 // Creates the corresponding permission message. 60 // Creates the corresponding permission message.
(...skipping 16 matching lines...) Expand all
76 private: 77 private:
77 ID id_; 78 ID id_;
78 string16 message_; 79 string16 message_;
79 }; 80 };
80 81
81 typedef std::vector<PermissionMessage> PermissionMessages; 82 typedef std::vector<PermissionMessage> PermissionMessages;
82 83
83 } // namespace extensions 84 } // namespace extensions
84 85
85 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ 86 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698