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

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 linux_chromeos compile error 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 kFlagCannotBeOptional }, 132 kFlagCannotBeOptional },
133 { kFileBrowserPrivate, "fileBrowserPrivate", kFlagCannotBeOptional }, 133 { kFileBrowserPrivate, "fileBrowserPrivate", kFlagCannotBeOptional },
134 { kManagedModePrivate, "managedModePrivate", kFlagCannotBeOptional }, 134 { kManagedModePrivate, "managedModePrivate", kFlagCannotBeOptional },
135 { kMediaPlayerPrivate, "mediaPlayerPrivate", kFlagCannotBeOptional }, 135 { kMediaPlayerPrivate, "mediaPlayerPrivate", kFlagCannotBeOptional },
136 { kMetricsPrivate, "metricsPrivate", kFlagCannotBeOptional }, 136 { kMetricsPrivate, "metricsPrivate", kFlagCannotBeOptional },
137 { kSystemPrivate, "systemPrivate", kFlagCannotBeOptional }, 137 { kSystemPrivate, "systemPrivate", kFlagCannotBeOptional },
138 { kChromeAuthPrivate, "chromeAuthPrivate", kFlagCannotBeOptional }, 138 { kChromeAuthPrivate, "chromeAuthPrivate", kFlagCannotBeOptional },
139 { kInputMethodPrivate, "inputMethodPrivate", kFlagCannotBeOptional }, 139 { kInputMethodPrivate, "inputMethodPrivate", kFlagCannotBeOptional },
140 { kEchoPrivate, "echoPrivate", kFlagCannotBeOptional }, 140 { kEchoPrivate, "echoPrivate", kFlagCannotBeOptional },
141 { kTerminalPrivate, "terminalPrivate", kFlagCannotBeOptional }, 141 { kTerminalPrivate, "terminalPrivate", kFlagCannotBeOptional },
142 { kWallpaperPrivate, "wallpaperPrivate", kFlagCannotBeOptional },
142 { kWebRequestInternal, "webRequestInternal" }, 143 { kWebRequestInternal, "webRequestInternal" },
143 { kWebSocketProxyPrivate, "webSocketProxyPrivate", kFlagCannotBeOptional }, 144 { kWebSocketProxyPrivate, "webSocketProxyPrivate", kFlagCannotBeOptional },
144 { kWebstorePrivate, "webstorePrivate", kFlagCannotBeOptional }, 145 { kWebstorePrivate, "webstorePrivate", kFlagCannotBeOptional },
145 146
146 // Full url access permissions. 147 // Full url access permissions.
147 { kProxy, "proxy", kFlagImpliesFullURLAccess | kFlagCannotBeOptional }, 148 { kProxy, "proxy", kFlagImpliesFullURLAccess | kFlagCannotBeOptional },
148 { kDebugger, "debugger", kFlagImpliesFullURLAccess | kFlagCannotBeOptional, 149 { kDebugger, "debugger", kFlagImpliesFullURLAccess | kFlagCannotBeOptional,
149 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER, 150 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER,
150 PermissionMessage::kDebugger }, 151 PermissionMessage::kDebugger },
151 { kDevtools, "devtools", 152 { kDevtools, "devtools",
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 186
186 // Register aliases. 187 // Register aliases.
187 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); 188 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission);
188 info->RegisterAlias("tabs", kWindowsPermission); 189 info->RegisterAlias("tabs", kWindowsPermission);
189 // TODO(mihaip): Should be removed for the M20 branch, see 190 // TODO(mihaip): Should be removed for the M20 branch, see
190 // http://crbug.com/120447 for more details. 191 // http://crbug.com/120447 for more details.
191 info->RegisterAlias("background", kTemporaryBackgroundAlias); 192 info->RegisterAlias("background", kTemporaryBackgroundAlias);
192 } 193 }
193 194
194 } // namespace extensions 195 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698