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

Unified Diff: content/shell/shell_render_process_observer.h

Issue 11245004: [content shell] link against the TestRunner library (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 8 years, 2 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.h ('k') | content/shell/shell_render_process_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_render_process_observer.h
diff --git a/content/shell/shell_render_process_observer.h b/content/shell/shell_render_process_observer.h
index 1b50ed70a1543cdd2bdd0341454ae8bfd7583488..b802100895f6c3e8cf9d971d846bf732ccb0a4ad 100644
--- a/content/shell/shell_render_process_observer.h
+++ b/content/shell/shell_render_process_observer.h
@@ -7,19 +7,44 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
#include "content/public/renderer/render_process_observer.h"
+namespace WebKit {
+class WebFrame;
+}
+
+namespace WebTestRunner {
+class WebTestDelegate;
+class WebTestInterfaces;
+}
+
namespace content {
+class RenderView;
+
class ShellRenderProcessObserver : public RenderProcessObserver {
public:
+ static ShellRenderProcessObserver* GetInstance();
+
ShellRenderProcessObserver();
virtual ~ShellRenderProcessObserver();
+ void SetMainWindow(RenderView* view,
+ WebTestRunner::WebTestDelegate* delegate);
+ void BindTestRunnersToWindow(WebKit::WebFrame* frame);
+
// RenderProcessObserver implementation.
virtual void WebKitInitialized() OVERRIDE;
+ virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
private:
+ // Message handlers.
+ void OnResetAll();
+
+ scoped_ptr<WebTestRunner::WebTestInterfaces> test_interfaces_;
+ WebTestRunner::WebTestDelegate* test_delegate_;
+
DISALLOW_COPY_AND_ASSIGN(ShellRenderProcessObserver);
};
« no previous file with comments | « content/shell/shell_messages.h ('k') | content/shell/shell_render_process_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698