summaryrefslogtreecommitdiffstats
path: root/chrome/browser/command_updater.cc
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.cc
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.cc')
-rw-r--r--chrome/browser/command_updater.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/chrome/browser/command_updater.cc b/chrome/browser/command_updater.cc
index c63c6a0..efb0724 100644
--- a/chrome/browser/command_updater.cc
+++ b/chrome/browser/command_updater.cc
@@ -2,13 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <algorithm>
-
#include "chrome/browser/command_updater.h"
+#include <algorithm>
+
#include "base/logging.h"
+#include "base/observer_list.h"
#include "base/stl_util-inl.h"
+class CommandUpdater::Command {
+ public:
+ bool enabled;
+ ObserverList<CommandObserver> observers;
+
+ Command() : enabled(true) {}
+};
+
CommandUpdater::CommandUpdater(CommandUpdaterDelegate* handler)
: delegate_(handler) {
}