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 f7d686913588e38a24801ab5de415c0b1e4454ae..eb32c5baf3fd375148111ce6bd7601cf9184fdfb 100644 |
--- a/extensions/browser/guest_view/web_view/web_view_guest.h |
+++ b/extensions/browser/guest_view/web_view/web_view_guest.h |
@@ -20,6 +20,7 @@ |
#include "extensions/browser/guest_view/web_view/web_view_guest_delegate.h" |
#include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" |
#include "extensions/browser/guest_view/web_view/web_view_permission_types.h" |
+#include "extensions/browser/guest_view/web_view/web_view_renderer_state.h" |
#include "extensions/browser/script_executor.h" |
namespace blink { |
@@ -28,6 +29,7 @@ struct WebFindOptions; |
namespace content { |
struct GlobalRequestID; |
+class ResourceContext; |
} // namespace content |
namespace extensions { |
@@ -321,6 +323,20 @@ class WebViewGuest : public guest_view::GuestView<WebViewGuest>, |
void ApplyAttributes(const base::DictionaryValue& params); |
+ // Helper functions to add and remove guest processes. Invoked on the IO |
+ // thread. |
+ static void AddGuestHelper( |
+ WebViewRendererState* renderer_state, |
+ int guest_process_id, |
+ int guest_routing_id, |
+ const WebViewRendererState::WebViewInfo& web_view_info, |
+ const content::ResourceContext* context); |
+ |
+ static void RemoveGuestHelper(WebViewRendererState* renderer_state, |
+ int guest_process_id, |
+ int guest_routing_id, |
+ const content::ResourceContext* context); |
+ |
// Identifies the set of rules registries belonging to this guest. |
int rules_registry_id_; |