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

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

Issue 13486004: Audio extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to trunk@195702 and fix conflicts. Created 7 years, 8 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 kSocketSpecificHosts, 53 kSocketSpecificHosts,
54 kBluetooth, 54 kBluetooth,
55 kUsb, 55 kUsb,
56 kSystemIndicator, 56 kSystemIndicator,
57 kBluetoothDevice, 57 kBluetoothDevice,
58 kUsbDevice, 58 kUsbDevice,
59 kMediaGalleriesAllGalleriesWrite, 59 kMediaGalleriesAllGalleriesWrite,
60 kSystemInfoDisplay, 60 kSystemInfoDisplay,
61 kNativeMessaging, 61 kNativeMessaging,
62 kSyncFileSystem, 62 kSyncFileSystem,
63 kAudio,
63 kEnumBoundary, 64 kEnumBoundary,
64 }; 65 };
65 66
66 // Creates the corresponding permission message for a list of hosts. This is 67 // Creates the corresponding permission message for a list of hosts. This is
67 // simply a convenience method around the constructor, since the messages 68 // simply a convenience method around the constructor, since the messages
68 // change depending on what hosts are present. 69 // change depending on what hosts are present.
69 static PermissionMessage CreateFromHostList( 70 static PermissionMessage CreateFromHostList(
70 const std::set<std::string>& hosts); 71 const std::set<std::string>& hosts);
71 72
72 // Creates the corresponding permission message. 73 // Creates the corresponding permission message.
(...skipping 16 matching lines...) Expand all
89 private: 90 private:
90 ID id_; 91 ID id_;
91 string16 message_; 92 string16 message_;
92 }; 93 };
93 94
94 typedef std::vector<PermissionMessage> PermissionMessages; 95 typedef std::vector<PermissionMessage> PermissionMessages;
95 96
96 } // namespace extensions 97 } // namespace extensions
97 98
98 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ 99 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698