Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6470)

Unified Diff: chrome/browser/extensions/menu_manager.h

Issue 1181263007: WebView context menu cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..a548bbf8cfdf17555d96020964cee6bc67fcae79 100644
--- a/chrome/browser/extensions/menu_manager.h
+++ b/chrome/browser/extensions/menu_manager.h
@@ -44,17 +44,21 @@ 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).
+ // Key used to identify which extension a menu item belongs to. A menu item
+ // can also belong to a <webview>, in which case |webview_embedder_process_id|
+ // and |webview_instance_id| will be non-zero.
+
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);
+ ExtensionKey(const std::string& extension_id,
Devlin 2015/06/18 19:39:57 If we allow matching based on view id and process
paulmeyer 2015/06/18 19:49:59 Okay. If I were to use that approach, would you wa
Devlin 2015/06/18 20:09:21 I think "Key" would be sufficient. If it's not an
paulmeyer 2015/06/19 17:57:28 I made the change and left a TODO for now. I will
+ int webview_embedder_process_id,
+ int webview_instance_id);
bool operator==(const ExtensionKey& other) const;
bool operator!=(const ExtensionKey& other) const;

Powered by Google App Engine
This is Rietveld 408576698