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

Unified Diff: chrome/browser/extensions/extension_service.h

Issue 8822021: Revert 113071 - Revert 113047 - Make ExtensionService use ExtensionSet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_service.h
===================================================================
--- chrome/browser/extensions/extension_service.h (revision 113231)
+++ chrome/browser/extensions/extension_service.h (working copy)
@@ -41,6 +41,7 @@
#include "chrome/browser/sync/api/syncable_service.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_constants.h"
+#include "chrome/common/extensions/extension_set.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -86,7 +87,7 @@
typedef bool (*ExtensionFilter)(const Extension&);
virtual ~ExtensionServiceInterface() {}
- virtual const ExtensionList* extensions() const = 0;
+ virtual const ExtensionSet* extensions() const = 0;
virtual PendingExtensionManager* pending_extension_manager() = 0;
// Install an update. Return true if the install can be started.
@@ -192,9 +193,9 @@
virtual ~ExtensionService();
// Gets the list of currently installed extensions.
- virtual const ExtensionList* extensions() const OVERRIDE;
- const ExtensionList* disabled_extensions() const;
- const ExtensionList* terminated_extensions() const;
+ virtual const ExtensionSet* extensions() const OVERRIDE;
+ const ExtensionSet* disabled_extensions() const;
+ const ExtensionSet* terminated_extensions() const;
// Gets the object managing the set of pending extensions.
virtual PendingExtensionManager* pending_extension_manager() OVERRIDE;
@@ -635,7 +636,7 @@
// Appends sync data objects for every extension in |extensions|
// that passes |filter|.
void GetSyncDataListHelper(
- const ExtensionList& extensions,
+ const ExtensionSet& extensions,
const SyncBundle& bundle,
std::vector<ExtensionSyncData>* sync_data_list) const;
@@ -695,17 +696,14 @@
// The current list of installed extensions.
// TODO(aa): This should use chrome/common/extensions/extension_set.h.
- ExtensionList extensions_;
+ ExtensionSet extensions_;
// The list of installed extensions that have been disabled.
- ExtensionList disabled_extensions_;
+ ExtensionSet disabled_extensions_;
// The list of installed extensions that have been terminated.
- ExtensionList terminated_extensions_;
+ ExtensionSet terminated_extensions_;
- // Used to quickly check if an extension was terminated.
- std::set<std::string> terminated_extension_ids_;
-
// Hold the set of pending extensions.
PendingExtensionManager pending_extension_manager_;
« no previous file with comments | « chrome/browser/extensions/extension_process_manager.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698