summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extensions_service.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-07 22:34:31 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-07 22:34:31 +0000
commite0360f2cca48cf72be469c936783c10d037af292 (patch)
treeb0fcb4f5a8de7a177af436df6bbfc7a87b6ab2d0 /chrome/browser/extensions/extensions_service.h
parentf891c9df37709735c6f188e163f57e6ee12cf25c (diff)
downloadchromium_src-e0360f2cca48cf72be469c936783c10d037af292.zip
chromium_src-e0360f2cca48cf72be469c936783c10d037af292.tar.gz
chromium_src-e0360f2cca48cf72be469c936783c10d037af292.tar.bz2
Extensions: create a simple model for the browser action buttons toolstrip and use it on Linux.
TODO: persist the order of buttons TODO: use the model on windows, mac TODO: let the view change the order of buttons My plan for persisting the order is just to write/read a simple text file to/from disk, one extension id per line. Similar to the bookmark model, except that is structured data (because they try to hold more information). BUG=26990 Review URL: http://codereview.chromium.org/462026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34005 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extensions_service.h')
-rw-r--r--chrome/browser/extensions/extensions_service.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extensions_service.h b/chrome/browser/extensions/extensions_service.h
index 79fdc10..0492538 100644
--- a/chrome/browser/extensions/extensions_service.h
+++ b/chrome/browser/extensions/extensions_service.h
@@ -20,6 +20,7 @@
#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/extensions/extension_prefs.h"
#include "chrome/browser/extensions/extension_process_manager.h"
+#include "chrome/browser/extensions/extension_toolbar_model.h"
#include "chrome/browser/extensions/extensions_quota_service.h"
#include "chrome/browser/extensions/external_extension_provider.h"
#include "chrome/browser/extensions/sandboxed_extension_unpacker.h"
@@ -32,6 +33,7 @@ class Browser;
class DictionaryValue;
class Extension;
class ExtensionsServiceBackend;
+class ExtensionToolbarModel;
class ExtensionUpdater;
class GURL;
class PrefService;
@@ -213,6 +215,8 @@ class ExtensionsService
// Note that this may return NULL if autoupdate is not turned on.
ExtensionUpdater* updater() { return updater_.get(); }
+ ExtensionToolbarModel* toolbar_model() { return &toolbar_model_; }
+
ExtensionsQuotaService* quota_service() { return &quota_service_; }
// Notify the frontend that there was an error loading an extension.
@@ -292,6 +296,9 @@ class ExtensionsService
// Our extension updater, if updates are turned on.
scoped_refptr<ExtensionUpdater> updater_;
+ // The model that tracks extensions with BrowserAction buttons.
+ ExtensionToolbarModel toolbar_model_;
+
// Map of inspector cookies that are detached, waiting for an extension to be
// reloaded.
typedef std::map<std::string, int> OrphanedDevTools;