Chromium Code Reviews

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

Issue 11361189: Initial skeleton for System Indicator API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase; Make system_indicator manifest entry grant systemIndicator permission. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 35 matching lines...)
46 kVideoCapture, 46 kVideoCapture,
47 kDownloads, 47 kDownloads,
48 kFileSystemWrite, 48 kFileSystemWrite,
49 kMediaGalleriesAllGalleries, 49 kMediaGalleriesAllGalleries,
50 kSerial, 50 kSerial,
51 kSocketAnyHost, 51 kSocketAnyHost,
52 kSocketDomainHosts, 52 kSocketDomainHosts,
53 kSocketSpecificHosts, 53 kSocketSpecificHosts,
54 kBluetooth, 54 kBluetooth,
55 kUsb, 55 kUsb,
56 kSystemIndicator,
56 kEnumBoundary 57 kEnumBoundary
57 }; 58 };
58 59
59 // Creates the corresponding permission message for a list of hosts. This is 60 // Creates the corresponding permission message for a list of hosts. This is
60 // simply a convenience method around the constructor, since the messages 61 // simply a convenience method around the constructor, since the messages
61 // change depending on what hosts are present. 62 // change depending on what hosts are present.
62 static PermissionMessage CreateFromHostList( 63 static PermissionMessage CreateFromHostList(
63 const std::set<std::string>& hosts); 64 const std::set<std::string>& hosts);
64 65
65 // Creates the corresponding permission message. 66 // Creates the corresponding permission message.
(...skipping 16 matching lines...)
82 private: 83 private:
83 ID id_; 84 ID id_;
84 string16 message_; 85 string16 message_;
85 }; 86 };
86 87
87 typedef std::vector<PermissionMessage> PermissionMessages; 88 typedef std::vector<PermissionMessage> PermissionMessages;
88 89
89 } // namespace extensions 90 } // namespace extensions
90 91
91 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ 92 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_
OLDNEW

Powered by Google App Engine