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

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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 { kTabPermission, PermissionMessage::ID_TABS }, 312 { kTabPermission, PermissionMessage::ID_TABS },
313 { kUnlimitedStoragePermission, PermissionMessage::ID_NONE }, 313 { kUnlimitedStoragePermission, PermissionMessage::ID_NONE },
314 { kWebSocketProxyPrivatePermission, PermissionMessage::ID_NONE }, 314 { kWebSocketProxyPrivatePermission, PermissionMessage::ID_NONE },
315 { kWebstorePrivatePermission, PermissionMessage::ID_NONE }, 315 { kWebstorePrivatePermission, PermissionMessage::ID_NONE },
316 }; 316 };
317 const size_t Extension::kNumPermissions = arraysize(Extension::kPermissions); 317 const size_t Extension::kNumPermissions = arraysize(Extension::kPermissions);
318 318
319 const char* const Extension::kHostedAppPermissionNames[] = { 319 const char* const Extension::kHostedAppPermissionNames[] = {
320 Extension::kBackgroundPermission, 320 Extension::kBackgroundPermission,
321 Extension::kChromePrivatePermission, 321 Extension::kChromePrivatePermission,
322 Extension::kClipboardReadPermission,
323 Extension::kClipboardWritePermission,
322 Extension::kGeolocationPermission, 324 Extension::kGeolocationPermission,
323 Extension::kNotificationPermission, 325 Extension::kNotificationPermission,
324 Extension::kUnlimitedStoragePermission, 326 Extension::kUnlimitedStoragePermission,
325 Extension::kWebstorePrivatePermission, 327 Extension::kWebstorePrivatePermission,
326 }; 328 };
327 const size_t Extension::kNumHostedAppPermissions = 329 const size_t Extension::kNumHostedAppPermissions =
328 arraysize(Extension::kHostedAppPermissionNames); 330 arraysize(Extension::kHostedAppPermissionNames);
329 331
330 const char* const Extension::kComponentPrivatePermissionNames[] = { 332 const char* const Extension::kComponentPrivatePermissionNames[] = {
331 Extension::kFileBrowserPrivatePermission, 333 Extension::kFileBrowserPrivatePermission,
(...skipping 2623 matching lines...) Expand 10 before | Expand all | Expand 10 after
2955 2957
2956 UninstalledExtensionInfo::~UninstalledExtensionInfo() {} 2958 UninstalledExtensionInfo::~UninstalledExtensionInfo() {}
2957 2959
2958 2960
2959 UnloadedExtensionInfo::UnloadedExtensionInfo( 2961 UnloadedExtensionInfo::UnloadedExtensionInfo(
2960 const Extension* extension, 2962 const Extension* extension,
2961 Reason reason) 2963 Reason reason)
2962 : reason(reason), 2964 : reason(reason),
2963 already_disabled(false), 2965 already_disabled(false),
2964 extension(extension) {} 2966 extension(extension) {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698