blob: fbbe34340bc7560867a25296883daab5f1425007 [file] [log] [blame]
[email protected]22cf0092012-05-30 00:03:101// 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/public/renderer/content_renderer_client.h"
6
7namespace content {
8
9SkBitmap* ContentRendererClient::GetSadPluginBitmap() {
10 return NULL;
11}
12
[email protected]d4d54b32012-11-19 16:14:4413SkBitmap* ContentRendererClient::GetSadWebViewBitmap() {
14 return NULL;
15}
16
[email protected]22cf0092012-05-30 00:03:1017std::string ContentRendererClient::GetDefaultEncoding() {
18 return std::string();
19}
20
21bool ContentRendererClient::OverrideCreatePlugin(
22 RenderView* render_view,
23 WebKit::WebFrame* frame,
24 const WebKit::WebPluginParams& params,
25 WebKit::WebPlugin** plugin) {
26 return false;
27}
28
29WebKit::WebPlugin* ContentRendererClient::CreatePluginReplacement(
30 RenderView* render_view,
[email protected]a3ef4832013-02-02 05:12:3331 const base::FilePath& plugin_path) {
[email protected]22cf0092012-05-30 00:03:1032 return NULL;
33}
34
35bool ContentRendererClient::HasErrorPage(int http_status_code,
36 std::string* error_domain) {
37 return false;
38}
39
[email protected]2309e912013-10-01 01:33:3040bool ContentRendererClient::ShouldSuppressErrorPage(const GURL& url) {
41 return false;
42}
43
[email protected]d726eddc2013-07-02 22:25:5544void ContentRendererClient::DeferMediaLoad(RenderView* render_view,
45 const base::Closure& closure) {
46 closure.Run();
[email protected]22cf0092012-05-30 00:03:1047}
48
[email protected]68e5fee2013-02-18 10:04:2249WebKit::WebMediaStreamCenter*
50ContentRendererClient::OverrideCreateWebMediaStreamCenter(
51 WebKit::WebMediaStreamCenterClient* client) {
52 return NULL;
53}
54
55WebKit::WebRTCPeerConnectionHandler*
56ContentRendererClient::OverrideCreateWebRTCPeerConnectionHandler(
57 WebKit::WebRTCPeerConnectionHandlerClient* client) {
58 return NULL;
59}
60
[email protected]fb0ab0d2013-06-26 19:29:2161WebKit::WebMIDIAccessor*
62ContentRendererClient::OverrideCreateMIDIAccessor(
63 WebKit::WebMIDIAccessorClient* client) {
64 return NULL;
65}
66
[email protected]f065ec52013-07-13 09:55:5467WebKit::WebAudioDevice*
68ContentRendererClient::OverrideCreateAudioDevice(
69 double sample_rate) {
70 return NULL;
71}
72
[email protected]9671a312013-02-23 06:27:3773WebKit::WebClipboard* ContentRendererClient::OverrideWebClipboard() {
74 return NULL;
75}
76
[email protected]60fe46e02013-03-20 19:49:5677WebKit::WebThemeEngine* ContentRendererClient::OverrideThemeEngine() {
78 return NULL;
79}
80
[email protected]7a06d282013-05-03 04:39:3381WebKit::WebSpeechSynthesizer* ContentRendererClient::OverrideSpeechSynthesizer(
82 WebKit::WebSpeechSynthesizerClient* client) {
83 return NULL;
84}
85
[email protected]22cf0092012-05-30 00:03:1086bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
87 return true;
88}
89
[email protected]434bc9b2012-11-27 21:22:1490bool ContentRendererClient::AllowPopup() {
[email protected]22cf0092012-05-30 00:03:1091 return false;
92}
93
[email protected]099df81cf2012-11-14 17:44:0494bool ContentRendererClient::HandleNavigation(
95 WebKit::WebFrame* frame,
96 const WebKit::WebURLRequest& request,
97 WebKit::WebNavigationType type,
98 WebKit::WebNavigationPolicy default_policy,
99 bool is_redirect) {
100 return false;
101}
102
[email protected]22cf0092012-05-30 00:03:10103bool ContentRendererClient::ShouldFork(WebKit::WebFrame* frame,
104 const GURL& url,
[email protected]c5dec6292013-01-25 04:54:52105 const std::string& http_method,
[email protected]22cf0092012-05-30 00:03:10106 bool is_initial_navigation,
[email protected]b0a29f22013-05-30 23:00:09107 bool is_server_redirect,
[email protected]22cf0092012-05-30 00:03:10108 bool* send_referrer) {
109 return false;
110}
111
[email protected]e1ed5a12012-08-08 19:57:44112bool ContentRendererClient::WillSendRequest(
113 WebKit::WebFrame* frame,
114 PageTransition transition_type,
115 const GURL& url,
[email protected]53d96fb2012-11-27 15:36:27116 const GURL& first_party_for_cookies,
[email protected]e1ed5a12012-08-08 19:57:44117 GURL* new_url) {
[email protected]22cf0092012-05-30 00:03:10118 return false;
119}
120
121bool ContentRendererClient::ShouldPumpEventsDuringCookieMessage() {
122 return false;
123}
124
125unsigned long long ContentRendererClient::VisitedLinkHash(
126 const char* canonical_url, size_t length) {
127 return 0LL;
128}
129
130bool ContentRendererClient::IsLinkVisited(unsigned long long link_hash) {
131 return false;
132}
133
[email protected]b1e7562d2013-05-27 05:47:53134WebKit::WebPrescientNetworking*
135ContentRendererClient::GetPrescientNetworking() {
136 return NULL;
137}
138
[email protected]22cf0092012-05-30 00:03:10139bool ContentRendererClient::ShouldOverridePageVisibilityState(
140 const RenderView* render_view,
[email protected]b66bbbc52013-08-09 20:07:02141 WebKit::WebPageVisibilityState* override_state) {
[email protected]22cf0092012-05-30 00:03:10142 return false;
143}
144
145bool ContentRendererClient::HandleGetCookieRequest(
146 RenderView* sender,
147 const GURL& url,
148 const GURL& first_party_for_cookies,
149 std::string* cookies) {
150 return false;
151}
152
153bool ContentRendererClient::HandleSetCookieRequest(
154 RenderView* sender,
155 const GURL& url,
156 const GURL& first_party_for_cookies,
157 const std::string& value) {
158 return false;
159}
160
[email protected]f3ecd3c2013-07-23 16:47:21161const void* ContentRendererClient::CreatePPAPIInterface(
162 const std::string& interface_name) {
163 return NULL;
164}
165
[email protected]b66bbbc52013-08-09 20:07:02166bool ContentRendererClient::IsExternalPepperPlugin(
167 const std::string& module_name) {
168 return false;
169}
170
[email protected]9d450492013-06-13 23:08:37171bool ContentRendererClient::IsPluginAllowedToCallRequestOSFileHandle(
[email protected]b66bbbc52013-08-09 20:07:02172 WebKit::WebPluginContainer* container) {
[email protected]9d450492013-06-13 23:08:37173 return false;
174}
175
[email protected]eaa72ed2013-03-01 03:22:14176bool ContentRendererClient::AllowBrowserPlugin(
[email protected]b66bbbc52013-08-09 20:07:02177 WebKit::WebPluginContainer* container) {
[email protected]eaa72ed2013-03-01 03:22:14178 return false;
179}
180
[email protected]b66bbbc52013-08-09 20:07:02181bool ContentRendererClient::AllowPepperMediaStreamAPI(const GURL& url) {
[email protected]24fe6122013-06-18 21:48:28182 return false;
183}
184
[email protected]aeaae2f2013-09-13 07:12:20185void ContentRendererClient::AddKeySystems(
186 std::vector<KeySystemInfo>* key_systems) {
187}
188
[email protected]fd8eb742013-08-22 00:42:00189bool ContentRendererClient::ShouldReportDetailedMessageForSource(
190 const base::string16& source) const {
191 return false;
192}
193
[email protected]55dd9332013-09-04 17:17:50194bool ContentRendererClient::ShouldEnableSiteIsolationPolicy() const {
195 return true;
196}
197
[email protected]44fb3fe2013-11-01 05:38:17198WebKit::WebWorkerPermissionClientProxy*
199ContentRendererClient::CreateWorkerPermissionClientProxy(
200 RenderView* render_view, WebKit::WebFrame* frame) {
201 return NULL;
202}
203
[email protected]22cf0092012-05-30 00:03:10204} // namespace content