Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Unified Diff: content/public/renderer/content_renderer_client.h

Issue 1642283002: Deal with frame removal by content scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Last nits Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698