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

Unified Diff: headless/public/headless_web_contents.h

Issue 1891843004: [headless] AddWindowTreeClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to latest master Created 4 years, 8 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
« no previous file with comments | « headless/public/headless_browser.h ('k') | headless/test/data/window_open.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/headless_web_contents.h
diff --git a/headless/public/headless_web_contents.h b/headless/public/headless_web_contents.h
index d9b29b7c9daadd08ac2ea8eb0ac02f2be281d62d..0cdb58bbbf5425f438f77c25bcfe4b494d18da62 100644
--- a/headless/public/headless_web_contents.h
+++ b/headless/public/headless_web_contents.h
@@ -29,6 +29,8 @@ class HEADLESS_EXPORT HeadlessWebContents {
// Indicates that this HeadlessWebContents instance is now ready to be
// inspected using a HeadlessDevToolsClient.
+ //
+ // TODO(altimin): Support this event for pages that aren't created by us.
virtual void DevToolsTargetReady() {}
protected:
@@ -49,6 +51,9 @@ class HEADLESS_EXPORT HeadlessWebContents {
// signaled.
virtual HeadlessDevToolsTarget* GetDevToolsTarget() = 0;
+ // Close this page. |HeadlessWebContents| object will be destroyed.
+ virtual void Close() = 0;
+
private:
friend class HeadlessWebContentsImpl;
HeadlessWebContents() {}
« no previous file with comments | « headless/public/headless_browser.h ('k') | headless/test/data/window_open.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698