summaryrefslogtreecommitdiffstats
path: root/chrome/browser/command_updater.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-13 10:29:07 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-13 10:29:07 +0000
commit5c2387504ee4124ce0521212d895bae87cf08d8f (patch)
tree3e9c3539afbd5cb96af547a012fd99ad4f1aecac /chrome/browser/command_updater.h
parent94fe52ee5bdf2d2feaa771537164909250ec174f (diff)
downloadchromium_src-5c2387504ee4124ce0521212d895bae87cf08d8f.zip
chromium_src-5c2387504ee4124ce0521212d895bae87cf08d8f.tar.gz
chromium_src-5c2387504ee4124ce0521212d895bae87cf08d8f.tar.bz2
Reduce header dependencies in browser/
- remove unneeded header includes - move implementation bits out of headers - more explicit header deps In my scan of headers I got up to (including) dom_ui. Review URL: http://codereview.chromium.org/126071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18353 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/command_updater.h')
-rw-r--r--chrome/browser/command_updater.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/chrome/browser/command_updater.h b/chrome/browser/command_updater.h
index f0303fc..3a6b7ca 100644
--- a/chrome/browser/command_updater.h
+++ b/chrome/browser/command_updater.h
@@ -5,11 +5,8 @@
#ifndef CHROME_BROWSER_COMMAND_UPDATER_H_
#define CHROME_BROWSER_COMMAND_UPDATER_H_
-#include <vector>
-
#include "base/basictypes.h"
#include "base/hash_tables.h"
-#include "base/observer_list.h"
////////////////////////////////////////////////////////////////////////////////
//
@@ -74,13 +71,7 @@ class CommandUpdater {
private:
// A piece of data about a command - whether or not it is enabled, and a list
// of objects that observe the enabled state of this command.
- class Command {
- public:
- bool enabled;
- ObserverList<CommandObserver> observers;
-
- Command() : enabled(true) {}
- };
+ class Command;
// Get a Command node for a given command ID, creating an entry if it doesn't
// exist if desired.