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

Unified Diff: extensions/browser/guest_view/web_view/web_view_guest.h

Issue 1181263007: WebView context menu cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A new strategy. Rebased. 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: extensions/browser/guest_view/web_view/web_view_guest.h
diff --git a/extensions/browser/guest_view/web_view/web_view_guest.h b/extensions/browser/guest_view/web_view/web_view_guest.h
index e566fb4710d0f8f0e23b7a3bfa0ec186c8c9cf90..890d17ca079d3eb9dbe117a0888d534513a2d7fd 100644
--- a/extensions/browser/guest_view/web_view/web_view_guest.h
+++ b/extensions/browser/guest_view/web_view/web_view_guest.h
@@ -70,6 +70,18 @@ class WebViewGuest : public guest_view::GuestView<WebViewGuest>,
int embedder_process_id,
int web_view_instance_id);
+ // Retrieve and return the extension ID for the WebView identified by
+ // |embedder_process_id| and |view_instance_id|. If no extension ID can be
+ // found for that GuestView, an empty string will be returned.
+ static std::string GetExtensionID(int embedder_process_id,
+ int view_instance_id);
+
+ // Associate the extension ID |extension_id| with the WebView identified by
+ // |embedder_process_id| and |view_instance_id|.
+ static void RegisterExtensionID(const std::string& extension_id,
+ int embedder_process_id,
+ int view_instance_id);
+
// Get the current zoom.
double GetZoom() const;

Powered by Google App Engine
This is Rietveld 408576698