OLD | NEW |
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_EXTENSION_PERMISSION_SET_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 kHosts3, | 47 kHosts3, |
48 kHosts4OrMore, | 48 kHosts4OrMore, |
49 kHostsAll, | 49 kHostsAll, |
50 kFullAccess, | 50 kFullAccess, |
51 kClipboard, | 51 kClipboard, |
52 kTtsEngine, | 52 kTtsEngine, |
53 kContentSettings, | 53 kContentSettings, |
54 kAllPageContent, | 54 kAllPageContent, |
55 kPrivacy, | 55 kPrivacy, |
56 kManagedMode, | 56 kManagedMode, |
| 57 kDownloads, |
57 kEnumBoundary | 58 kEnumBoundary |
58 }; | 59 }; |
59 | 60 |
60 // Creates the corresponding permission message for a list of hosts. This is | 61 // Creates the corresponding permission message for a list of hosts. This is |
61 // simply a convenience method around the constructor, since the messages | 62 // simply a convenience method around the constructor, since the messages |
62 // change depending on what hosts are present. | 63 // change depending on what hosts are present. |
63 static ExtensionPermissionMessage CreateFromHostList( | 64 static ExtensionPermissionMessage CreateFromHostList( |
64 const std::set<std::string>& hosts); | 65 const std::set<std::string>& hosts); |
65 | 66 |
66 // Creates the corresponding permission message. | 67 // Creates the corresponding permission message. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 kChromeosInfoPrivate, | 109 kChromeosInfoPrivate, |
109 kClipboardRead, | 110 kClipboardRead, |
110 kClipboardWrite, | 111 kClipboardWrite, |
111 kContentSettings, | 112 kContentSettings, |
112 kContextMenus, | 113 kContextMenus, |
113 kCookie, | 114 kCookie, |
114 kDebugger, | 115 kDebugger, |
115 kDeclarative, | 116 kDeclarative, |
116 kDeclarativeWebRequest, | 117 kDeclarativeWebRequest, |
117 kDevtools, | 118 kDevtools, |
| 119 kDownloads, |
118 kExperimental, | 120 kExperimental, |
119 kFileBrowserHandler, | 121 kFileBrowserHandler, |
120 kFileBrowserPrivate, | 122 kFileBrowserPrivate, |
121 kGeolocation, | 123 kGeolocation, |
122 kHistory, | 124 kHistory, |
123 kIdle, | 125 kIdle, |
124 kInput, | 126 kInput, |
125 kInputMethodPrivate, | 127 kInputMethodPrivate, |
126 kKeybinding, | 128 kKeybinding, |
127 kManagedModePrivate, | 129 kManagedModePrivate, |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 | 454 |
453 // The list of hosts this effectively grants access to. | 455 // The list of hosts this effectively grants access to. |
454 URLPatternSet effective_hosts_; | 456 URLPatternSet effective_hosts_; |
455 | 457 |
456 // A set of oauth2 scopes that are used by the identity API to create OAuth2 | 458 // A set of oauth2 scopes that are used by the identity API to create OAuth2 |
457 // tokens for accessing the Google Account of the signed-in sync account. | 459 // tokens for accessing the Google Account of the signed-in sync account. |
458 ExtensionOAuth2Scopes scopes_; | 460 ExtensionOAuth2Scopes scopes_; |
459 }; | 461 }; |
460 | 462 |
461 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 463 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
OLD | NEW |