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

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

Issue 7253001: Added a private chromeAuthPrivate API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // 299 //
300 // NOTE: To add a new permission, define it here, and add an entry to 300 // NOTE: To add a new permission, define it here, and add an entry to
301 // Extension::kPermissions. 301 // Extension::kPermissions.
302 static const char kBackgroundPermission[]; 302 static const char kBackgroundPermission[];
303 static const char kBookmarkPermission[]; 303 static const char kBookmarkPermission[];
304 static const char kClipboardReadPermission[]; 304 static const char kClipboardReadPermission[];
305 static const char kClipboardWritePermission[]; 305 static const char kClipboardWritePermission[];
306 static const char kContentSettingsPermission[]; 306 static const char kContentSettingsPermission[];
307 static const char kContextMenusPermission[]; 307 static const char kContextMenusPermission[];
308 static const char kCookiePermission[]; 308 static const char kCookiePermission[];
309 static const char kChromeAuthPrivatePermission[];
309 static const char kChromePrivatePermission[]; 310 static const char kChromePrivatePermission[];
310 static const char kChromeosInfoPrivatePermission[]; 311 static const char kChromeosInfoPrivatePermission[];
311 static const char kDebuggerPermission[]; 312 static const char kDebuggerPermission[];
312 static const char kExperimentalPermission[]; 313 static const char kExperimentalPermission[];
313 static const char kFileBrowserHandlerPermission[]; 314 static const char kFileBrowserHandlerPermission[];
314 static const char kFileBrowserPrivatePermission[]; 315 static const char kFileBrowserPrivatePermission[];
315 static const char kGeolocationPermission[]; 316 static const char kGeolocationPermission[];
316 static const char kHistoryPermission[]; 317 static const char kHistoryPermission[];
317 static const char kIdlePermission[]; 318 static const char kIdlePermission[];
318 static const char kManagementPermission[]; 319 static const char kManagementPermission[];
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 // Returns true if this is a component, or we are not attempting to access a 789 // Returns true if this is a component, or we are not attempting to access a
789 // component-private permission. 790 // component-private permission.
790 bool IsComponentOnlyPermission(const std::string& permission) const; 791 bool IsComponentOnlyPermission(const std::string& permission) const;
791 792
792 // The set of unique API install messages that the extension has. 793 // The set of unique API install messages that the extension has.
793 // NOTE: This only includes messages related to permissions declared in the 794 // NOTE: This only includes messages related to permissions declared in the
794 // "permissions" key in the manifest. Permissions implied from other features 795 // "permissions" key in the manifest. Permissions implied from other features
795 // of the manifest, like plugins and content scripts are not included. 796 // of the manifest, like plugins and content scripts are not included.
796 std::set<PermissionMessage> GetSimplePermissionMessages() const; 797 std::set<PermissionMessage> GetSimplePermissionMessages() const;
797 798
799 // Updates the launch URL and extents for the extension using the given
800 // |override_url|.
801 void OverrideLaunchUrl(const GURL& override_url);
802
798 // Cached images for this extension. This should only be touched on the UI 803 // Cached images for this extension. This should only be touched on the UI
799 // thread. 804 // thread.
800 mutable ImageCache image_cache_; 805 mutable ImageCache image_cache_;
801 806
802 // A persistent, globally unique ID. An extension's ID is used in things 807 // A persistent, globally unique ID. An extension's ID is used in things
803 // like directory structures and URLs, and is expected to not change across 808 // like directory structures and URLs, and is expected to not change across
804 // versions. It is generated as a SHA-256 hash of the extension's public 809 // versions. It is generated as a SHA-256 hash of the extension's public
805 // key, or as a hash of the path in the case of unpacked extensions. 810 // key, or as a hash of the path in the case of unpacked extensions.
806 std::string id_; 811 std::string id_;
807 812
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 // Was the extension already disabled? 1027 // Was the extension already disabled?
1023 bool already_disabled; 1028 bool already_disabled;
1024 1029
1025 // The extension being unloaded - this should always be non-NULL. 1030 // The extension being unloaded - this should always be non-NULL.
1026 const Extension* extension; 1031 const Extension* extension;
1027 1032
1028 UnloadedExtensionInfo(const Extension* extension, Reason reason); 1033 UnloadedExtensionInfo(const Extension* extension, Reason reason);
1029 }; 1034 };
1030 1035
1031 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 1036 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698