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

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: Devlin@'s comments. 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 a7ccfffba570f867ffbf32dcdfb4d1d1e79acd17..c75d16f9f6d48506adc4bdc01b12e0bcfee1d911 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