Index: content/public/renderer/content_renderer_client.h |
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h |
index 52b397f0142f020a610cb85065b94825ffcf8afe..265601fdd1a631ff4ecc3eb825169343b500b876 100644 |
--- a/content/public/renderer/content_renderer_client.h |
+++ b/content/public/renderer/content_renderer_client.h |
@@ -14,7 +14,6 @@ |
#include "base/bind.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
-#include "base/memory/weak_ptr.h" |
#include "base/strings/string16.h" |
#include "content/public/common/content_client.h" |
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
@@ -312,6 +311,15 @@ class CONTENT_EXPORT ContentRendererClient { |
const blink::WebURLResponse& response, |
std::map<std::string, std::string>* properties) {} |
+ // Notifies that a document element has been inserted in the frame's document. |
+ // This may be called multiple times for the same document. This method may |
+ // invalidate the frame. |
+ virtual void RunScriptsAtDocumentStart(RenderFrame* render_frame) {} |
+ |
+ // Notifies that the DOM is ready in the frame's document. |
+ // This method may invalidate the frame. |
+ virtual void RunScriptsAtDocumentEnd(RenderFrame* render_frame) {} |
+ |
// Notifies that a service worker context has been created. This function |
// is called from the worker thread. |
virtual void DidInitializeServiceWorkerContextOnWorkerThread( |