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

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

Issue 14238037: Made it possible to tell whether an extension is being installed or updated. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added extra check. Created 7 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
« no previous file with comments | « chrome/common/chrome_notification_types.h ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <map> 10 #include <map>
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 690
691 scoped_ptr<base::DictionaryValue> extension_manifest; 691 scoped_ptr<base::DictionaryValue> extension_manifest;
692 std::string extension_id; 692 std::string extension_id;
693 base::FilePath extension_path; 693 base::FilePath extension_path;
694 Manifest::Location extension_location; 694 Manifest::Location extension_location;
695 695
696 private: 696 private:
697 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); 697 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo);
698 }; 698 };
699 699
700 struct InstalledExtensionInfo {
701 // The extension being installed - this should always be non-NULL.
702 const Extension* extension;
703
704 // True if the extension is being updated; false if it is being installed.
705 bool is_update;
706
707 InstalledExtensionInfo(const Extension* extension, bool is_update);
708 };
709
700 struct UnloadedExtensionInfo { 710 struct UnloadedExtensionInfo {
701 extension_misc::UnloadedExtensionReason reason; 711 extension_misc::UnloadedExtensionReason reason;
702 712
703 // Was the extension already disabled? 713 // Was the extension already disabled?
704 bool already_disabled; 714 bool already_disabled;
705 715
706 // The extension being unloaded - this should always be non-NULL. 716 // The extension being unloaded - this should always be non-NULL.
707 const Extension* extension; 717 const Extension* extension;
708 718
709 UnloadedExtensionInfo( 719 UnloadedExtensionInfo(
(...skipping 20 matching lines...) Expand all
730 740
731 UpdatedExtensionPermissionsInfo( 741 UpdatedExtensionPermissionsInfo(
732 const Extension* extension, 742 const Extension* extension,
733 const PermissionSet* permissions, 743 const PermissionSet* permissions,
734 Reason reason); 744 Reason reason);
735 }; 745 };
736 746
737 } // namespace extensions 747 } // namespace extensions
738 748
739 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 749 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_notification_types.h ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698