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

Unified Diff: content/shell/shell_render_view_host_observer.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: updates 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
« no previous file with comments | « content/shell/shell_messages.cc ('k') | content/shell/shell_render_view_host_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_render_view_host_observer.h
diff --git a/content/shell/shell_render_view_host_observer.h b/content/shell/shell_render_view_host_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..f1ba4498e7a00a578b9da987893ac8eacb31ba55
--- /dev/null
+++ b/content/shell/shell_render_view_host_observer.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_SHELL_SHELL_RENDER_VIEW_HOST_OBSERVER_H_
+#define CONTENT_SHELL_SHELL_RENDER_VIEW_HOST_OBSERVER_H_
+#pragma once
+
+#include <string>
+
+#include "content/public/browser/render_view_host_observer.h"
+
+namespace content {
+
+class ShellRenderViewHostObserver : public RenderViewHostObserver {
+ public:
+ explicit ShellRenderViewHostObserver(RenderViewHost* render_view_host);
+ virtual ~ShellRenderViewHostObserver();
+
+ // RenderViewHostObserver implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+
+ private:
+ // Message handlers.
+ void OnTextDump(const std::string& dump);
+
+ DISALLOW_COPY_AND_ASSIGN(ShellRenderViewHostObserver);
+};
+
+} // namespace content
+
+#endif // CONTENT_SHELL_SHELL_RENDER_VIEW_HOST_OBSERVER_H_
« no previous file with comments | « content/shell/shell_messages.cc ('k') | content/shell/shell_render_view_host_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698