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

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

Issue 7633029: Remove extension.h #include from profile.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit_tests. Created 9 years, 4 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 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 explicit UninstalledExtensionInfo(const Extension& extension); 891 explicit UninstalledExtensionInfo(const Extension& extension);
892 ~UninstalledExtensionInfo(); 892 ~UninstalledExtensionInfo();
893 893
894 std::string extension_id; 894 std::string extension_id;
895 std::set<std::string> extension_api_permissions; 895 std::set<std::string> extension_api_permissions;
896 Extension::Type extension_type; 896 Extension::Type extension_type;
897 GURL update_url; 897 GURL update_url;
898 }; 898 };
899 899
900 struct UnloadedExtensionInfo { 900 struct UnloadedExtensionInfo {
901 enum Reason { 901 extension_misc::UnloadedExtensionReason reason;
902 DISABLE, // The extension is being disabled.
903 UPDATE, // The extension is being updated to a newer version.
904 UNINSTALL, // The extension is being uninstalled.
905 };
906
907 Reason reason;
908 902
909 // Was the extension already disabled? 903 // Was the extension already disabled?
910 bool already_disabled; 904 bool already_disabled;
911 905
912 // The extension being unloaded - this should always be non-NULL. 906 // The extension being unloaded - this should always be non-NULL.
913 const Extension* extension; 907 const Extension* extension;
914 908
915 UnloadedExtensionInfo(const Extension* extension, Reason reason); 909 UnloadedExtensionInfo(
910 const Extension* extension,
911 extension_misc::UnloadedExtensionReason reason);
916 }; 912 };
917 913
918 // The details sent for EXTENSION_PERMISSIONS_UPDATED notifications. 914 // The details sent for EXTENSION_PERMISSIONS_UPDATED notifications.
919 struct UpdatedExtensionPermissionsInfo { 915 struct UpdatedExtensionPermissionsInfo {
920 enum Reason { 916 enum Reason {
921 ADDED, // The permissions were added to the extension. 917 ADDED, // The permissions were added to the extension.
922 REMOVED, // The permissions were removed from the extension. 918 REMOVED, // The permissions were removed from the extension.
923 }; 919 };
924 920
925 Reason reason; 921 Reason reason;
926 922
927 // The extension who's permissions have changed. 923 // The extension who's permissions have changed.
928 const Extension* extension; 924 const Extension* extension;
929 925
930 // The permissions that have changed. For Reason::ADDED, this would contain 926 // The permissions that have changed. For Reason::ADDED, this would contain
931 // only the permissions that have added, and for Reason::REMOVED, this would 927 // only the permissions that have added, and for Reason::REMOVED, this would
932 // only contain the removed permissions. 928 // only contain the removed permissions.
933 const ExtensionPermissionSet* permissions; 929 const ExtensionPermissionSet* permissions;
934 930
935 UpdatedExtensionPermissionsInfo( 931 UpdatedExtensionPermissionsInfo(
936 const Extension* extension, 932 const Extension* extension,
937 const ExtensionPermissionSet* permissions, 933 const ExtensionPermissionSet* permissions,
938 Reason reason); 934 Reason reason);
939 }; 935 };
940 936
941 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 937 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698