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

Side by Side Diff: chrome/common/extensions/permissions/api_permission.cc

Issue 10754014: Wallpaper manager backend APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix thread violation Created 8 years, 5 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 #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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 kFlagCannotBeOptional }, 130 kFlagCannotBeOptional },
131 { kFileBrowserPrivate, "fileBrowserPrivate", kFlagCannotBeOptional }, 131 { kFileBrowserPrivate, "fileBrowserPrivate", kFlagCannotBeOptional },
132 { kManagedModePrivate, "managedModePrivate", kFlagCannotBeOptional }, 132 { kManagedModePrivate, "managedModePrivate", kFlagCannotBeOptional },
133 { kMediaPlayerPrivate, "mediaPlayerPrivate", kFlagCannotBeOptional }, 133 { kMediaPlayerPrivate, "mediaPlayerPrivate", kFlagCannotBeOptional },
134 { kMetricsPrivate, "metricsPrivate", kFlagCannotBeOptional }, 134 { kMetricsPrivate, "metricsPrivate", kFlagCannotBeOptional },
135 { kSystemPrivate, "systemPrivate", kFlagCannotBeOptional }, 135 { kSystemPrivate, "systemPrivate", kFlagCannotBeOptional },
136 { kChromeAuthPrivate, "chromeAuthPrivate", kFlagCannotBeOptional }, 136 { kChromeAuthPrivate, "chromeAuthPrivate", kFlagCannotBeOptional },
137 { kInputMethodPrivate, "inputMethodPrivate", kFlagCannotBeOptional }, 137 { kInputMethodPrivate, "inputMethodPrivate", kFlagCannotBeOptional },
138 { kEchoPrivate, "echoPrivate", kFlagCannotBeOptional }, 138 { kEchoPrivate, "echoPrivate", kFlagCannotBeOptional },
139 { kTerminalPrivate, "terminalPrivate", kFlagCannotBeOptional }, 139 { kTerminalPrivate, "terminalPrivate", kFlagCannotBeOptional },
140 { kWallpaperPrivate, "wallpaperPrivate", kFlagCannotBeOptional },
140 { kWebRequestInternal, "webRequestInternal" }, 141 { kWebRequestInternal, "webRequestInternal" },
141 { kWebSocketProxyPrivate, "webSocketProxyPrivate", kFlagCannotBeOptional }, 142 { kWebSocketProxyPrivate, "webSocketProxyPrivate", kFlagCannotBeOptional },
142 { kWebstorePrivate, "webstorePrivate", kFlagCannotBeOptional }, 143 { kWebstorePrivate, "webstorePrivate", kFlagCannotBeOptional },
143 144
144 // Full url access permissions. 145 // Full url access permissions.
145 { kProxy, "proxy", kFlagImpliesFullURLAccess | kFlagCannotBeOptional }, 146 { kProxy, "proxy", kFlagImpliesFullURLAccess | kFlagCannotBeOptional },
146 { kDebugger, "debugger", kFlagImpliesFullURLAccess | kFlagCannotBeOptional, 147 { kDebugger, "debugger", kFlagImpliesFullURLAccess | kFlagCannotBeOptional,
147 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER, 148 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER,
148 PermissionMessage::kDebugger }, 149 PermissionMessage::kDebugger },
149 { kDevtools, "devtools", 150 { kDevtools, "devtools",
(...skipping 29 matching lines...) Expand all
179 180
180 // Register aliases. 181 // Register aliases.
181 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); 182 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission);
182 info->RegisterAlias("tabs", kWindowsPermission); 183 info->RegisterAlias("tabs", kWindowsPermission);
183 // TODO(mihaip): Should be removed for the M20 branch, see 184 // TODO(mihaip): Should be removed for the M20 branch, see
184 // http://crbug.com/120447 for more details. 185 // http://crbug.com/120447 for more details.
185 info->RegisterAlias("background", kTemporaryBackgroundAlias); 186 info->RegisterAlias("background", kTemporaryBackgroundAlias);
186 } 187 }
187 188
188 } // namespace extensions 189 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698