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

Side by Side Diff: chrome/common/extensions/extension.cc

Issue 6976002: Support clipboardRead and clipboardWrite permission for hosted apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/extension.h" 5 #include "chrome/common/extensions/extension.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 { kProxyPermission, PermissionMessage::ID_NONE }, 309 { kProxyPermission, PermissionMessage::ID_NONE },
310 { kTabPermission, PermissionMessage::ID_TABS }, 310 { kTabPermission, PermissionMessage::ID_TABS },
311 { kUnlimitedStoragePermission, PermissionMessage::ID_NONE }, 311 { kUnlimitedStoragePermission, PermissionMessage::ID_NONE },
312 { kWebSocketProxyPrivatePermission, PermissionMessage::ID_NONE }, 312 { kWebSocketProxyPrivatePermission, PermissionMessage::ID_NONE },
313 { kWebstorePrivatePermission, PermissionMessage::ID_NONE }, 313 { kWebstorePrivatePermission, PermissionMessage::ID_NONE },
314 }; 314 };
315 const size_t Extension::kNumPermissions = arraysize(Extension::kPermissions); 315 const size_t Extension::kNumPermissions = arraysize(Extension::kPermissions);
316 316
317 const char* const Extension::kHostedAppPermissionNames[] = { 317 const char* const Extension::kHostedAppPermissionNames[] = {
318 Extension::kBackgroundPermission, 318 Extension::kBackgroundPermission,
319 Extension::kClipboardReadPermission,
320 Extension::kClipboardWritePermission,
319 Extension::kGeolocationPermission, 321 Extension::kGeolocationPermission,
320 Extension::kNotificationPermission, 322 Extension::kNotificationPermission,
321 Extension::kUnlimitedStoragePermission, 323 Extension::kUnlimitedStoragePermission,
322 Extension::kWebstorePrivatePermission, 324 Extension::kWebstorePrivatePermission,
323 }; 325 };
324 const size_t Extension::kNumHostedAppPermissions = 326 const size_t Extension::kNumHostedAppPermissions =
325 arraysize(Extension::kHostedAppPermissionNames); 327 arraysize(Extension::kHostedAppPermissionNames);
326 328
327 const char* const Extension::kComponentPrivatePermissionNames[] = { 329 const char* const Extension::kComponentPrivatePermissionNames[] = {
328 Extension::kFileBrowserPrivatePermission, 330 Extension::kFileBrowserPrivatePermission,
(...skipping 2623 matching lines...) Expand 10 before | Expand all | Expand 10 after
2952 2954
2953 UninstalledExtensionInfo::~UninstalledExtensionInfo() {} 2955 UninstalledExtensionInfo::~UninstalledExtensionInfo() {}
2954 2956
2955 2957
2956 UnloadedExtensionInfo::UnloadedExtensionInfo( 2958 UnloadedExtensionInfo::UnloadedExtensionInfo(
2957 const Extension* extension, 2959 const Extension* extension,
2958 Reason reason) 2960 Reason reason)
2959 : reason(reason), 2961 : reason(reason),
2960 already_disabled(false), 2962 already_disabled(false),
2961 extension(extension) {} 2963 extension(extension) {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698