Upstream TestHttpServerClient for Android.
[chromium-blink-merge.git] / content / public / renderer / content_renderer_client.cc
bloba5b6b31953561fea4ec744c64c1ffebca371741c
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 #include "content/public/renderer/content_renderer_client.h"
7 namespace content {
9 SkBitmap* ContentRendererClient::GetSadPluginBitmap() {
10 return NULL;
13 SkBitmap* ContentRendererClient::GetSadWebViewBitmap() {
14 return NULL;
17 std::string ContentRendererClient::GetDefaultEncoding() {
18 return std::string();
21 bool ContentRendererClient::OverrideCreatePlugin(
22 RenderView* render_view,
23 WebKit::WebFrame* frame,
24 const WebKit::WebPluginParams& params,
25 WebKit::WebPlugin** plugin) {
26 return false;
29 WebKit::WebPlugin* ContentRendererClient::CreatePluginReplacement(
30 RenderView* render_view,
31 const base::FilePath& plugin_path) {
32 return NULL;
35 bool ContentRendererClient::HasErrorPage(int http_status_code,
36 std::string* error_domain) {
37 return false;
40 void ContentRendererClient::DeferMediaLoad(RenderView* render_view,
41 const base::Closure& closure) {
42 closure.Run();
45 WebKit::WebMediaStreamCenter*
46 ContentRendererClient::OverrideCreateWebMediaStreamCenter(
47 WebKit::WebMediaStreamCenterClient* client) {
48 return NULL;
51 WebKit::WebRTCPeerConnectionHandler*
52 ContentRendererClient::OverrideCreateWebRTCPeerConnectionHandler(
53 WebKit::WebRTCPeerConnectionHandlerClient* client) {
54 return NULL;
57 WebKit::WebMIDIAccessor*
58 ContentRendererClient::OverrideCreateMIDIAccessor(
59 WebKit::WebMIDIAccessorClient* client) {
60 return NULL;
63 WebKit::WebAudioDevice*
64 ContentRendererClient::OverrideCreateAudioDevice(
65 double sample_rate) {
66 return NULL;
69 WebKit::WebClipboard* ContentRendererClient::OverrideWebClipboard() {
70 return NULL;
73 WebKit::WebThemeEngine* ContentRendererClient::OverrideThemeEngine() {
74 return NULL;
77 WebKit::WebSpeechSynthesizer* ContentRendererClient::OverrideSpeechSynthesizer(
78 WebKit::WebSpeechSynthesizerClient* client) {
79 return NULL;
82 WebKit::WebCrypto* ContentRendererClient::OverrideWebCrypto() {
83 return NULL;
86 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
87 return true;
90 bool ContentRendererClient::AllowPopup() {
91 return false;
94 bool 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;
103 bool ContentRendererClient::ShouldFork(WebKit::WebFrame* frame,
104 const GURL& url,
105 const std::string& http_method,
106 bool is_initial_navigation,
107 bool is_server_redirect,
108 bool* send_referrer) {
109 return false;
112 bool ContentRendererClient::WillSendRequest(
113 WebKit::WebFrame* frame,
114 PageTransition transition_type,
115 const GURL& url,
116 const GURL& first_party_for_cookies,
117 GURL* new_url) {
118 return false;
121 bool ContentRendererClient::ShouldPumpEventsDuringCookieMessage() {
122 return false;
125 unsigned long long ContentRendererClient::VisitedLinkHash(
126 const char* canonical_url, size_t length) {
127 return 0LL;
130 bool ContentRendererClient::IsLinkVisited(unsigned long long link_hash) {
131 return false;
134 WebKit::WebPrescientNetworking*
135 ContentRendererClient::GetPrescientNetworking() {
136 return NULL;
139 bool ContentRendererClient::ShouldOverridePageVisibilityState(
140 const RenderView* render_view,
141 WebKit::WebPageVisibilityState* override_state) {
142 return false;
145 bool ContentRendererClient::HandleGetCookieRequest(
146 RenderView* sender,
147 const GURL& url,
148 const GURL& first_party_for_cookies,
149 std::string* cookies) {
150 return false;
153 bool ContentRendererClient::HandleSetCookieRequest(
154 RenderView* sender,
155 const GURL& url,
156 const GURL& first_party_for_cookies,
157 const std::string& value) {
158 return false;
161 const void* ContentRendererClient::CreatePPAPIInterface(
162 const std::string& interface_name) {
163 return NULL;
166 bool ContentRendererClient::IsExternalPepperPlugin(
167 const std::string& module_name) {
168 return false;
171 bool ContentRendererClient::IsPluginAllowedToCallRequestOSFileHandle(
172 WebKit::WebPluginContainer* container) {
173 return false;
176 bool ContentRendererClient::AllowBrowserPlugin(
177 WebKit::WebPluginContainer* container) {
178 return false;
181 bool ContentRendererClient::AllowPepperMediaStreamAPI(const GURL& url) {
182 return false;
185 bool ContentRendererClient::ShouldReportDetailedMessageForSource(
186 const base::string16& source) const {
187 return false;
190 } // namespace content