| 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_UI_TOOLBAR_ACTION_BOX_BUTTON_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_ACTION_BOX_BUTTON_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_TOOLBAR_ACTION_BOX_BUTTON_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_ACTION_BOX_BUTTON_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 // The command ID to assign to the next extension that needs one. | 86 // The command ID to assign to the next extension that needs one. |
| 87 int next_extension_command_id_; | 87 int next_extension_command_id_; |
| 88 | 88 |
| 89 // The extension IDs that have commands associated with them. | 89 // The extension IDs that have commands associated with them. |
| 90 typedef std::map<std::string, int> ExtensionIdCommandMap; | 90 typedef std::map<std::string, int> ExtensionIdCommandMap; |
| 91 ExtensionIdCommandMap extension_command_ids_; | 91 ExtensionIdCommandMap extension_command_ids_; |
| 92 | 92 |
| 93 content::NotificationRegistrar registrar_; | 93 content::NotificationRegistrar registrar_; |
| 94 | 94 |
| 95 // This indicates we need to send UMA data about the number of |
| 96 // "Share with X" commands shown in the menu after user tried to |
| 97 // find share extensions from web store or the first use of action |
| 98 // box after browser starts. |
| 99 bool should_send_uma_; |
| 100 |
| 95 DISALLOW_COPY_AND_ASSIGN(ActionBoxButtonController); | 101 DISALLOW_COPY_AND_ASSIGN(ActionBoxButtonController); |
| 96 }; | 102 }; |
| 97 | 103 |
| 98 #endif // CHROME_BROWSER_UI_TOOLBAR_ACTION_BOX_BUTTON_CONTROLLER_H_ | 104 #endif // CHROME_BROWSER_UI_TOOLBAR_ACTION_BOX_BUTTON_CONTROLLER_H_ |
| OLD | NEW |