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

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

Issue 6480106: Add IPCs to check web copy/cut/paste for extensions with the appropriate permission bit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
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 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 static const int kPageActionIconMaxSize; 270 static const int kPageActionIconMaxSize;
271 static const int kBrowserActionIconMaxSize; 271 static const int kBrowserActionIconMaxSize;
272 static const int kSidebarIconMaxSize; 272 static const int kSidebarIconMaxSize;
273 273
274 // Each permission is a module that the extension is permitted to use. 274 // Each permission is a module that the extension is permitted to use.
275 // 275 //
276 // NOTE: To add a new permission, define it here, and add an entry to 276 // NOTE: To add a new permission, define it here, and add an entry to
277 // Extension::kPermissions. 277 // Extension::kPermissions.
278 static const char kBackgroundPermission[]; 278 static const char kBackgroundPermission[];
279 static const char kBookmarkPermission[]; 279 static const char kBookmarkPermission[];
280 static const char kClipboardReadPermission[];
281 static const char kClipboardWritePermission[];
280 static const char kContentSettingsPermission[]; 282 static const char kContentSettingsPermission[];
281 static const char kContextMenusPermission[]; 283 static const char kContextMenusPermission[];
282 static const char kCookiePermission[]; 284 static const char kCookiePermission[];
283 static const char kChromeosInfoPrivatePermissions[]; 285 static const char kChromeosInfoPrivatePermissions[];
284 static const char kDebuggerPermission[]; 286 static const char kDebuggerPermission[];
285 static const char kExperimentalPermission[]; 287 static const char kExperimentalPermission[];
286 static const char kFileBrowserHandlerPermission[]; 288 static const char kFileBrowserHandlerPermission[];
287 static const char kFileBrowserPrivatePermission[]; 289 static const char kFileBrowserPrivatePermission[];
288 static const char kGeolocationPermission[]; 290 static const char kGeolocationPermission[];
289 static const char kHistoryPermission[]; 291 static const char kHistoryPermission[];
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 // Was the extension already disabled? 988 // Was the extension already disabled?
987 bool already_disabled; 989 bool already_disabled;
988 990
989 // The extension being unloaded - this should always be non-NULL. 991 // The extension being unloaded - this should always be non-NULL.
990 const Extension* extension; 992 const Extension* extension;
991 993
992 UnloadedExtensionInfo(const Extension* extension, Reason reason); 994 UnloadedExtensionInfo(const Extension* extension, Reason reason);
993 }; 995 };
994 996
995 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 997 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698