Index: extensions/renderer/dispatcher.cc |
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc |
index 5ff2616e7e736ad0a90069a7d4132703329694ad..4bca09cd1ad2baa1e457bb6ede243409bb67efb0 100644 |
--- a/extensions/renderer/dispatcher.cc |
+++ b/extensions/renderer/dispatcher.cc |
@@ -500,6 +500,24 @@ void Dispatcher::DidCreateDocumentElement(blink::WebLocalFrame* frame) { |
} |
} |
+void Dispatcher::RunScriptsAtDocumentStart(content::RenderFrame* render_frame) { |
+ ExtensionFrameHelper* frame_helper = ExtensionFrameHelper::Get(render_frame); |
+ if (!frame_helper) |
+ return; // The frame is invisible to extensions. |
+ |
+ frame_helper->RunScriptsAtDocumentStart(); |
+ // |frame_helper| and |render_frame| might be dead by now. |
+} |
+ |
+void Dispatcher::RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) { |
+ ExtensionFrameHelper* frame_helper = ExtensionFrameHelper::Get(render_frame); |
+ if (!frame_helper) |
+ return; // The frame is invisible to extensions. |
+ |
+ frame_helper->RunScriptsAtDocumentEnd(); |
+ // |frame_helper| and |render_frame| might be dead by now. |
+} |
+ |
void Dispatcher::OnExtensionResponse(int request_id, |
bool success, |
const base::ListValue& response, |