| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_EXTENSIONS_EXTENSION_MENU_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MENU_MANAGER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MENU_MANAGER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MENU_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
| 16 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
| 17 #include "base/string16.h" | 17 #include "base/string16.h" |
| 18 #include "chrome/browser/extensions/extension_icon_manager.h" | 18 #include "chrome/browser/extensions/extension_icon_manager.h" |
| 19 #include "chrome/common/extensions/extension_extent.h" | 19 #include "chrome/common/extensions/extension_extent.h" |
| 20 #include "chrome/common/notification_observer.h" | 20 #include "chrome/common/notification_observer.h" |
| 21 #include "chrome/common/notification_registrar.h" | 21 #include "chrome/common/notification_registrar.h" |
| 22 | 22 |
| 23 struct ContextMenuParams; | 23 struct ContextMenuParams; |
| 24 | 24 |
| 25 class Extension; | 25 class Extension; |
| 26 class ExtensionMessageService; | |
| 27 class Profile; | 26 class Profile; |
| 28 class SkBitmap; | 27 class SkBitmap; |
| 29 class TabContents; | 28 class TabContents; |
| 30 | 29 |
| 31 // Represents a menu item added by an extension. | 30 // Represents a menu item added by an extension. |
| 32 class ExtensionMenuItem { | 31 class ExtensionMenuItem { |
| 33 public: | 32 public: |
| 34 // A list of ExtensionMenuItem's. | 33 // A list of ExtensionMenuItem's. |
| 35 typedef std::vector<ExtensionMenuItem*> List; | 34 typedef std::vector<ExtensionMenuItem*> List; |
| 36 | 35 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 std::map<ExtensionMenuItem::Id, ExtensionMenuItem*> items_by_id_; | 263 std::map<ExtensionMenuItem::Id, ExtensionMenuItem*> items_by_id_; |
| 265 | 264 |
| 266 NotificationRegistrar registrar_; | 265 NotificationRegistrar registrar_; |
| 267 | 266 |
| 268 ExtensionIconManager icon_manager_; | 267 ExtensionIconManager icon_manager_; |
| 269 | 268 |
| 270 DISALLOW_COPY_AND_ASSIGN(ExtensionMenuManager); | 269 DISALLOW_COPY_AND_ASSIGN(ExtensionMenuManager); |
| 271 }; | 270 }; |
| 272 | 271 |
| 273 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MENU_MANAGER_H_ | 272 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MENU_MANAGER_H_ |
| OLD | NEW |