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 880550cbde9823197b05dbeed5b5ba48a77877ee..b5c05cd9413050838a6c0c7f5ade168c6f41860c 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( |