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

Unified Diff: content/shell/shell.h

Issue 9289045: Add option --dump-render-tree to content_shell to dump the render tree as text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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/shell/shell.h
diff --git a/content/shell/shell.h b/content/shell/shell.h
index c4b09f7911d04640088ce6011eb46499823a7c69..d88cec3be9a61c744158f9276cfad754a9a669ca 100644
--- a/content/shell/shell.h
+++ b/content/shell/shell.h
@@ -41,6 +41,8 @@ class Shell : public WebContentsDelegate {
void Stop();
void UpdateNavigationControls();
+ void SetDumpAsText(bool dump_as_text);
+
// Do one time initialization at application startup.
static void PlatformInitialize();
@@ -99,6 +101,7 @@ class Shell : public WebContentsDelegate {
// content::WebContentsDelegate
virtual void LoadingStateChanged(WebContents* source) OVERRIDE;
+ virtual void DidFinishLoad(WebContents* source) OVERRIDE;
virtual void WebContentsCreated(WebContents* source_contents,
int64 source_frame_id,
const GURL& target_url,
@@ -151,6 +154,9 @@ class Shell : public WebContentsDelegate {
// A container of all the open windows. We use a vector so we can keep track
// of ordering.
static std::vector<Shell*> windows_;
+
+ // True if we should dump the page as text once it finished loading.
+ bool dump_as_text_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698