| Index: chrome/browser/extensions/menu_manager.h
|
| diff --git a/chrome/browser/extensions/menu_manager.h b/chrome/browser/extensions/menu_manager.h
|
| index ab5471e21e60fd825622c6779379a7ba96412cf4..c243b2bb770502a8f33909b947a37a8bb5df3b64 100644
|
| --- a/chrome/browser/extensions/menu_manager.h
|
| +++ b/chrome/browser/extensions/menu_manager.h
|
| @@ -44,17 +44,20 @@ class MenuItem {
|
| // A list of MenuItems.
|
| typedef std::vector<MenuItem*> List;
|
|
|
| - // Key used to identify which extension a menu item belongs to.
|
| - // A menu item can also belong to a <webview> inside an extension,
|
| - // only in that case |webview_instance_id| would be
|
| - // non-zero (i.e. != guestview::kInstanceIDNone).
|
| + // EnstensionKey is used to identify a menu item. If the menu item belongs to
|
| + // an extension, then |extension_id| will be non-empty. Alternatively, if the
|
| + // menu item belongs to a WebView, then |webview_embedder_process_id| and
|
| + // |webview_instance_id| will be non-zero.
|
| + // TODO(paulmeyer): This should be called something else, since it is not just
|
| + // associated with extensions.
|
| struct ExtensionKey {
|
| std::string extension_id;
|
| + int webview_embedder_process_id;
|
| int webview_instance_id;
|
|
|
| ExtensionKey();
|
| - ExtensionKey(const std::string& extension_id, int webview_instance_id);
|
| explicit ExtensionKey(const std::string& extension_id);
|
| + ExtensionKey(int webview_embedder_process_id, int webview_instance_id);
|
|
|
| bool operator==(const ExtensionKey& other) const;
|
| bool operator!=(const ExtensionKey& other) const;
|
|
|