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 #include "chrome/common/extensions/permissions/api_permission.h" | 5 #include "chrome/common/extensions/permissions/api_permission.h" |
6 | 6 |
7 #include "chrome/common/extensions/permissions/permissions_info.h" | 7 #include "chrome/common/extensions/permissions/permissions_info.h" |
8 #include "grit/generated_resources.h" | 8 #include "grit/generated_resources.h" |
9 #include "ui/base/l10n/l10n_util.h" | 9 #include "ui/base/l10n/l10n_util.h" |
10 | 10 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 // Register private permissions. | 128 // Register private permissions. |
129 { kChromeosInfoPrivate, "chromeosInfoPrivate", kFlagCannotBeOptional }, | 129 { kChromeosInfoPrivate, "chromeosInfoPrivate", kFlagCannotBeOptional }, |
130 { kFileBrowserHandlerInternal, "fileBrowserHandlerInternal", | 130 { kFileBrowserHandlerInternal, "fileBrowserHandlerInternal", |
131 kFlagCannotBeOptional }, | 131 kFlagCannotBeOptional }, |
132 { kFileBrowserPrivate, "fileBrowserPrivate", kFlagCannotBeOptional }, | 132 { kFileBrowserPrivate, "fileBrowserPrivate", kFlagCannotBeOptional }, |
133 { kManagedModePrivate, "managedModePrivate", kFlagCannotBeOptional }, | 133 { kManagedModePrivate, "managedModePrivate", kFlagCannotBeOptional }, |
134 { kMediaPlayerPrivate, "mediaPlayerPrivate", kFlagCannotBeOptional }, | 134 { kMediaPlayerPrivate, "mediaPlayerPrivate", kFlagCannotBeOptional }, |
135 { kMetricsPrivate, "metricsPrivate", kFlagCannotBeOptional }, | 135 { kMetricsPrivate, "metricsPrivate", kFlagCannotBeOptional }, |
136 { kSystemPrivate, "systemPrivate", kFlagCannotBeOptional }, | 136 { kSystemPrivate, "systemPrivate", kFlagCannotBeOptional }, |
137 { kChromeAuthPrivate, "chromeAuthPrivate", kFlagCannotBeOptional }, | 137 { kCloudPrintPrivate, "cloudPrintPrivate", kFlagCannotBeOptional }, |
138 { kInputMethodPrivate, "inputMethodPrivate", kFlagCannotBeOptional }, | 138 { kInputMethodPrivate, "inputMethodPrivate", kFlagCannotBeOptional }, |
139 { kEchoPrivate, "echoPrivate", kFlagCannotBeOptional }, | 139 { kEchoPrivate, "echoPrivate", kFlagCannotBeOptional }, |
140 { kTerminalPrivate, "terminalPrivate", kFlagCannotBeOptional }, | 140 { kTerminalPrivate, "terminalPrivate", kFlagCannotBeOptional }, |
141 { kWallpaperPrivate, "wallpaperPrivate", kFlagCannotBeOptional }, | 141 { kWallpaperPrivate, "wallpaperPrivate", kFlagCannotBeOptional }, |
142 { kWebRequestInternal, "webRequestInternal" }, | 142 { kWebRequestInternal, "webRequestInternal" }, |
143 { kWebSocketProxyPrivate, "webSocketProxyPrivate", kFlagCannotBeOptional }, | 143 { kWebSocketProxyPrivate, "webSocketProxyPrivate", kFlagCannotBeOptional }, |
144 { kWebstorePrivate, "webstorePrivate", kFlagCannotBeOptional }, | 144 { kWebstorePrivate, "webstorePrivate", kFlagCannotBeOptional }, |
145 | 145 |
146 // Full url access permissions. | 146 // Full url access permissions. |
147 { kProxy, "proxy", kFlagImpliesFullURLAccess | kFlagCannotBeOptional }, | 147 { kProxy, "proxy", kFlagImpliesFullURLAccess | kFlagCannotBeOptional }, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 // Register aliases. | 189 // Register aliases. |
190 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); | 190 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); |
191 info->RegisterAlias("tabs", kWindowsPermission); | 191 info->RegisterAlias("tabs", kWindowsPermission); |
192 // TODO(mihaip): Should be removed for the M20 branch, see | 192 // TODO(mihaip): Should be removed for the M20 branch, see |
193 // http://crbug.com/120447 for more details. | 193 // http://crbug.com/120447 for more details. |
194 info->RegisterAlias("background", kTemporaryBackgroundAlias); | 194 info->RegisterAlias("background", kTemporaryBackgroundAlias); |
195 } | 195 } |
196 | 196 |
197 } // namespace extensions | 197 } // namespace extensions |
OLD | NEW |