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..275989ddd77328db54afc7413d372f9288a5680d 100644 |
--- a/extensions/browser/guest_view/web_view/web_view_guest.h |
+++ b/extensions/browser/guest_view/web_view/web_view_guest.h |
@@ -7,6 +7,7 @@ |
#include <vector> |
+#include "base/callback.h" |
#include "base/observer_list.h" |
#include "content/public/browser/javascript_dialog_manager.h" |
#include "content/public/browser/notification_observer.h" |
@@ -62,6 +63,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); |