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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 kInput, | 57 kInput, |
58 kAudioCapture, | 58 kAudioCapture, |
59 kVideoCapture, | 59 kVideoCapture, |
| 60 kDownloads, |
60 kEnumBoundary | 61 kEnumBoundary |
61 }; | 62 }; |
62 | 63 |
63 // Creates the corresponding permission message for a list of hosts. This is | 64 // Creates the corresponding permission message for a list of hosts. This is |
64 // simply a convenience method around the constructor, since the messages | 65 // simply a convenience method around the constructor, since the messages |
65 // change depending on what hosts are present. | 66 // change depending on what hosts are present. |
66 static ExtensionPermissionMessage CreateFromHostList( | 67 static ExtensionPermissionMessage CreateFromHostList( |
67 const std::set<std::string>& hosts); | 68 const std::set<std::string>& hosts); |
68 | 69 |
69 // Creates the corresponding permission message. | 70 // Creates the corresponding permission message. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 kClipboardRead, | 114 kClipboardRead, |
114 kClipboardWrite, | 115 kClipboardWrite, |
115 kContentSettings, | 116 kContentSettings, |
116 kContextMenus, | 117 kContextMenus, |
117 kCookie, | 118 kCookie, |
118 kDebugger, | 119 kDebugger, |
119 kDeclarative, | 120 kDeclarative, |
120 kDeclarativeWebRequest, | 121 kDeclarativeWebRequest, |
121 kDevtools, | 122 kDevtools, |
122 kEchoPrivate, | 123 kEchoPrivate, |
| 124 kDownloads, |
123 kExperimental, | 125 kExperimental, |
124 kFileBrowserHandler, | 126 kFileBrowserHandler, |
125 kFileBrowserHandlerInternal, | 127 kFileBrowserHandlerInternal, |
126 kFileBrowserPrivate, | 128 kFileBrowserPrivate, |
127 kFileSystem, | 129 kFileSystem, |
128 kGeolocation, | 130 kGeolocation, |
129 kHistory, | 131 kHistory, |
130 kIdle, | 132 kIdle, |
131 kInput, | 133 kInput, |
132 kInputMethodPrivate, | 134 kInputMethodPrivate, |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 | 463 |
462 // The list of hosts this effectively grants access to. | 464 // The list of hosts this effectively grants access to. |
463 URLPatternSet effective_hosts_; | 465 URLPatternSet effective_hosts_; |
464 | 466 |
465 // A set of oauth2 scopes that are used by the identity API to create OAuth2 | 467 // A set of oauth2 scopes that are used by the identity API to create OAuth2 |
466 // tokens for accessing the Google Account of the signed-in sync account. | 468 // tokens for accessing the Google Account of the signed-in sync account. |
467 ExtensionOAuth2Scopes scopes_; | 469 ExtensionOAuth2Scopes scopes_; |
468 }; | 470 }; |
469 | 471 |
470 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 472 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
OLD | NEW |