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

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: Prefix new methods with 'web'. Created 9 years, 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 static const int kPageActionIconMaxSize; 153 static const int kPageActionIconMaxSize;
154 static const int kBrowserActionIconMaxSize; 154 static const int kBrowserActionIconMaxSize;
155 static const int kSidebarIconMaxSize; 155 static const int kSidebarIconMaxSize;
156 156
157 // Each permission is a module that the extension is permitted to use. 157 // Each permission is a module that the extension is permitted to use.
158 // 158 //
159 // NOTE: To add a new permission, define it here, and add an entry to 159 // NOTE: To add a new permission, define it here, and add an entry to
160 // Extension::kPermissions. 160 // Extension::kPermissions.
161 static const char kBackgroundPermission[]; 161 static const char kBackgroundPermission[];
162 static const char kBookmarkPermission[]; 162 static const char kBookmarkPermission[];
163 static const char kClipboardPermission[];
163 static const char kContextMenusPermission[]; 164 static const char kContextMenusPermission[];
164 static const char kCookiePermission[]; 165 static const char kCookiePermission[];
165 static const char kExperimentalPermission[]; 166 static const char kExperimentalPermission[];
166 static const char kGeolocationPermission[]; 167 static const char kGeolocationPermission[];
167 static const char kHistoryPermission[]; 168 static const char kHistoryPermission[];
168 static const char kIdlePermission[]; 169 static const char kIdlePermission[];
169 static const char kManagementPermission[]; 170 static const char kManagementPermission[];
170 static const char kNotificationPermission[]; 171 static const char kNotificationPermission[];
171 static const char kProxyPermission[]; 172 static const char kProxyPermission[];
172 static const char kTabPermission[]; 173 static const char kTabPermission[];
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 // Was the extension already disabled? 777 // Was the extension already disabled?
777 bool already_disabled; 778 bool already_disabled;
778 779
779 // The extension being unloaded - this should always be non-NULL. 780 // The extension being unloaded - this should always be non-NULL.
780 const Extension* extension; 781 const Extension* extension;
781 782
782 UnloadedExtensionInfo(const Extension* extension, Reason reason); 783 UnloadedExtensionInfo(const Extension* extension, Reason reason);
783 }; 784 };
784 785
785 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 786 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698