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

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

Issue 885493007: Refactoring: de-couple Extensions from "script injection System" [render side] : 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove Host::IsEmpty() and move ExtensionConsumer to extensions/renderer. Created 5 years, 10 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 2e399ea92c3e057e99c1537674875f4f243e8aa3..d3d6328757cb5607eb18e37ac4e103d725d5b264 100644
--- a/extensions/browser/guest_view/web_view/web_view_guest.h
+++ b/extensions/browser/guest_view/web_view/web_view_guest.h
@@ -62,6 +62,12 @@ class WebViewGuest : public GuestView<WebViewGuest>,
int embedder_process_id,
int web_view_instance_id);
+ // Return the stored script injection instance ID of the given guest.
+ // Will generate an ID for the first query.
+ static int GetOrGenerateScriptInjectionInstanceID(
+ int embedder_process_id,
+ int guest_instance_id);
+
// Request navigating the guest to the provided |src| URL.
void NavigateGuest(const std::string& src, bool force_navigation);

Powered by Google App Engine
This is Rietveld 408576698