OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_COMMAND_UPDATER_H_ | 5 #ifndef CHROME_BROWSER_COMMAND_UPDATER_H_ |
6 #define CHROME_BROWSER_COMMAND_UPDATER_H_ | 6 #define CHROME_BROWSER_COMMAND_UPDATER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
10 #include "ui/base/window_open_disposition.h" | 10 #include "ui/base/window_open_disposition.h" |
11 | 11 |
12 class CommandObserver; | 12 class CommandObserver; |
13 class CommandUpdaterDelegate; | 13 class CommandUpdaterDelegate; |
14 | 14 |
15 //////////////////////////////////////////////////////////////////////////////// | 15 //////////////////////////////////////////////////////////////////////////////// |
16 // | 16 // |
17 // CommandUpdater class | 17 // CommandUpdater class |
18 // | 18 // |
19 // This object manages the enabled state of a set of commands. Observers | 19 // This object manages the enabled state of a set of commands. Observers |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 CommandUpdaterDelegate* delegate_; | 75 CommandUpdaterDelegate* delegate_; |
76 | 76 |
77 // This is a map of command IDs to states and observer lists | 77 // This is a map of command IDs to states and observer lists |
78 typedef base::hash_map<int, Command*> CommandMap; | 78 typedef base::hash_map<int, Command*> CommandMap; |
79 CommandMap commands_; | 79 CommandMap commands_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(CommandUpdater); | 81 DISALLOW_COPY_AND_ASSIGN(CommandUpdater); |
82 }; | 82 }; |
83 | 83 |
84 #endif // CHROME_BROWSER_COMMAND_UPDATER_H_ | 84 #endif // CHROME_BROWSER_COMMAND_UPDATER_H_ |
OLD | NEW |