Index: chrome/browser/extensions/menu_manager.h |
diff --git a/chrome/browser/extensions/menu_manager.h b/chrome/browser/extensions/menu_manager.h |
index ea6cecf90de2aec43d6ac8c8f05304b7d76a279c..66a70635ede11b8e73745a2bc592163cc6024b2f 100644 |
--- a/chrome/browser/extensions/menu_manager.h |
+++ b/chrome/browser/extensions/menu_manager.h |
@@ -60,6 +60,7 @@ class MenuItem { |
// Only one of uid or string_uid will be defined. |
int uid; |
std::string string_uid; |
+ int webview_instance_id; |
}; |
// For context menus, these are the contexts where an item can appear. |
@@ -290,6 +291,10 @@ class MenuManager : public content::NotificationObserver, |
// Removes all items for the given extension id. |
void RemoveAllContextItems(const std::string& extension_id); |
+ // Remove all items that belong to a <webview> guest within an extension. |
+ void RemoveAllWebviewContextItems(const std::string& extension_id, |
+ int webview_instance_id); |
+ |
// Returns the item with the given |id| or NULL. |
MenuItem* GetItemById(const MenuItem::Id& id) const; |