OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #include "content/renderer/mock_content_renderer_client.h" | |
6 | |
7 #include <string> | |
8 #include "v8/include/v8.h" | |
9 | |
10 namespace content { | |
11 | |
12 MockContentRendererClient::~MockContentRendererClient() { | |
13 } | |
14 | |
15 void MockContentRendererClient::RenderThreadStarted() { | |
16 } | |
17 | |
18 void MockContentRendererClient::RenderViewCreated(RenderView* render_view) { | |
19 } | |
20 | |
21 void MockContentRendererClient::SetNumberOfViews(int number_of_views) { | |
22 } | |
23 | |
24 SkBitmap* MockContentRendererClient::GetSadPluginBitmap() { | |
25 return NULL; | |
26 } | |
27 | |
28 std::string MockContentRendererClient::GetDefaultEncoding() { | |
29 return std::string(); | |
30 } | |
31 | |
32 bool MockContentRendererClient::OverrideCreatePlugin( | |
33 RenderView* render_view, | |
34 WebKit::WebFrame* frame, | |
35 const WebKit::WebPluginParams& params, | |
36 WebKit::WebPlugin** plugin) { | |
37 return false; | |
38 } | |
39 | |
40 WebKit::WebPlugin* MockContentRendererClient::CreatePluginReplacement( | |
41 RenderView* render_view, | |
42 const FilePath& plugin_path) { | |
43 return NULL; | |
44 } | |
45 | |
46 bool MockContentRendererClient::HasErrorPage(int http_status_code, | |
47 std::string* error_domain) { | |
48 return false; | |
49 } | |
50 | |
51 webkit_media::WebMediaPlayerImpl* | |
52 MockContentRendererClient::OverrideCreateWebMediaPlayer( | |
53 RenderView* render_view, | |
54 WebKit::WebFrame* frame, | |
55 WebKit::WebMediaPlayerClient* client, | |
56 base::WeakPtr<webkit_media::WebMediaPlayerDelegate> delegate, | |
57 media::FilterCollection* collection, | |
58 WebKit::WebAudioSourceProvider* audio_source_provider, | |
59 media::MessageLoopFactory* message_loop_factory, | |
60 webkit_media::MediaStreamClient* media_stream_client, | |
61 media::MediaLog* media_log) { | |
62 return NULL; | |
63 } | |
64 | |
65 void MockContentRendererClient::GetNavigationErrorStrings( | |
66 const WebKit::WebURLRequest& failed_request, | |
67 const WebKit::WebURLError& error, | |
68 std::string* error_html, | |
69 string16* error_description) { | |
70 } | |
71 | |
72 bool MockContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { | |
73 return true; | |
74 } | |
75 | |
76 bool MockContentRendererClient::AllowPopup(const GURL& creator) { | |
77 return false; | |
78 } | |
79 | |
80 bool MockContentRendererClient::ShouldFork(WebKit::WebFrame* frame, | |
81 const GURL& url, | |
82 bool is_initial_navigation, | |
83 bool* send_referrer) { | |
84 return false; | |
85 } | |
86 | |
87 bool MockContentRendererClient::WillSendRequest(WebKit::WebFrame* frame, | |
88 const GURL& url, | |
89 GURL* new_url) { | |
90 return false; | |
91 } | |
92 | |
93 bool MockContentRendererClient::ShouldPumpEventsDuringCookieMessage() { | |
94 return false; | |
95 } | |
96 | |
97 void MockContentRendererClient::DidCreateScriptContext( | |
98 WebKit::WebFrame* frame, v8::Handle<v8::Context> context, | |
99 int extension_group, int world_id) { | |
100 } | |
101 | |
102 void MockContentRendererClient::WillReleaseScriptContext( | |
103 WebKit::WebFrame* frame, v8::Handle<v8::Context> context, int world_id) { | |
104 } | |
105 | |
106 unsigned long long MockContentRendererClient::VisitedLinkHash( | |
107 const char* canonical_url, size_t length) { | |
108 return 0LL; | |
109 } | |
110 | |
111 bool MockContentRendererClient::IsLinkVisited(unsigned long long link_hash) { | |
112 return false; | |
113 } | |
114 | |
115 void MockContentRendererClient::PrefetchHostName( | |
116 const char* hostname, size_t length) { | |
117 } | |
118 | |
119 bool MockContentRendererClient::ShouldOverridePageVisibilityState( | |
120 const RenderView* render_view, | |
121 WebKit::WebPageVisibilityState* override_state) const { | |
122 return false; | |
123 } | |
124 | |
125 bool MockContentRendererClient::HandleGetCookieRequest( | |
126 RenderView* sender, | |
127 const GURL& url, | |
128 const GURL& first_party_for_cookies, | |
129 std::string* cookies) { | |
130 return false; | |
131 } | |
132 | |
133 bool MockContentRendererClient::HandleSetCookieRequest( | |
134 RenderView* sender, | |
135 const GURL& url, | |
136 const GURL& first_party_for_cookies, | |
137 const std::string& value) { | |
138 return false; | |
139 } | |
140 | |
141 void MockContentRendererClient::RegisterPPAPIInterfaceFactories( | |
142 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { | |
143 } | |
144 | |
145 } // namespace content | |
OLD | NEW |