Loosen up heuristics for detecting account creation forms.
[chromium-blink-merge.git] / content / shell / webkit_test_runner.h
blob539ed097fdf7c532e8af3e8f30528d1c075423ab
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_
6 #define CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_
8 #include "content/public/renderer/render_view_observer.h"
10 namespace content {
12 // This is the renderer side of the webkit test runner.
13 class WebKitTestRunner : public RenderViewObserver {
14 public:
15 explicit WebKitTestRunner(RenderView* render_view);
16 virtual ~WebKitTestRunner();
18 // RenderViewObserver implementation.
19 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
20 virtual void DidClearWindowObject(WebKit::WebFrame* frame) OVERRIDE;
21 virtual void DidFinishLoad(WebKit::WebFrame* frame) OVERRIDE;
23 private:
24 // Message handlers.
25 void OnCaptureTextDump(bool as_text, bool printing, bool recursive);
26 void OnCaptureImageDump(const std::string& expected_pixel_hash);
28 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner);
31 } // namespace content
33 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_