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

Side by Side Diff: content/renderer/mock_content_renderer_client.h

Issue 7274031: Wholesale move of debugger sources to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add OWNERS and DEPS. Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 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.
4
5 #ifndef CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_
7 #pragma once
8
9 #include "base/compiler_specific.h"
10 #include "content/renderer/content_renderer_client.h"
11
12 namespace content {
13
14 // Base class for unit tests that need to mock the ContentRendererClient.
15 class MockContentRendererClient : public ContentRendererClient {
16 public:
17 virtual ~MockContentRendererClient();
18 virtual void RenderThreadStarted() OVERRIDE;
19 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE;
20 virtual void SetNumberOfViews(int number_of_views) OVERRIDE;
21 virtual SkBitmap* GetSadPluginBitmap() OVERRIDE;
22 virtual std::string GetDefaultEncoding() OVERRIDE;
23 virtual WebKit::WebPlugin* CreatePlugin(
24 RenderView* render_view,
25 WebKit::WebFrame* frame,
26 const WebKit::WebPluginParams& params) OVERRIDE;
27 virtual void ShowErrorPage(RenderView* render_view,
28 WebKit::WebFrame* frame,
29 int http_status_code) OVERRIDE;
30 virtual std::string GetNavigationErrorHtml(
31 const WebKit::WebURLRequest& failed_request,
32 const WebKit::WebURLError& error) OVERRIDE;
33 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE;
34 virtual bool AllowPopup(const GURL& creator) OVERRIDE;
35 virtual bool ShouldFork(WebKit::WebFrame* frame,
36 const GURL& url,
37 bool is_content_initiated,
38 bool* send_referrer) OVERRIDE;
39 virtual bool WillSendRequest(WebKit::WebFrame* frame,
40 const GURL& url,
41 GURL* new_url) OVERRIDE;
42 virtual bool ShouldPumpEventsDuringCookieMessage() OVERRIDE;
43 virtual void DidCreateScriptContext(WebKit::WebFrame* frame) OVERRIDE;
44 virtual void DidDestroyScriptContext(WebKit::WebFrame* frame) OVERRIDE;
45 virtual void DidCreateIsolatedScriptContext(
46 WebKit::WebFrame* frame) OVERRIDE;
47 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
48 size_t length) OVERRIDE;
49 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE;
50 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE;
51 virtual bool ShouldOverridePageVisibilityState(
52 const RenderView* render_view,
53 WebKit::WebPageVisibilityState* override_state) const OVERRIDE;
54 };
55
56 } // namespace content
57
58 #endif // CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698