linux_aura: Disable the plugin install infobar.
[chromium-blink-merge.git] / content / public / renderer / content_renderer_client.cc
blob7934968afc6fc83b1cd1d4eae00dc70873859783
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 RenderFrame* render_frame,
23 blink::WebLocalFrame* frame,
24 const blink::WebPluginParams& params,
25 blink::WebPlugin** plugin) {
26 return false;
29 blink::WebPlugin* ContentRendererClient::CreatePluginReplacement(
30 RenderFrame* render_frame,
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 bool ContentRendererClient::ShouldSuppressErrorPage(RenderFrame* render_frame,
41 const GURL& url) {
42 return false;
45 void ContentRendererClient::DeferMediaLoad(RenderFrame* render_frame,
46 const base::Closure& closure) {
47 closure.Run();
50 blink::WebMediaStreamCenter*
51 ContentRendererClient::OverrideCreateWebMediaStreamCenter(
52 blink::WebMediaStreamCenterClient* client) {
53 return NULL;
56 blink::WebRTCPeerConnectionHandler*
57 ContentRendererClient::OverrideCreateWebRTCPeerConnectionHandler(
58 blink::WebRTCPeerConnectionHandlerClient* client) {
59 return NULL;
62 blink::WebMIDIAccessor*
63 ContentRendererClient::OverrideCreateMIDIAccessor(
64 blink::WebMIDIAccessorClient* client) {
65 return NULL;
68 blink::WebAudioDevice*
69 ContentRendererClient::OverrideCreateAudioDevice(
70 double sample_rate) {
71 return NULL;
74 blink::WebClipboard* ContentRendererClient::OverrideWebClipboard() {
75 return NULL;
78 blink::WebThemeEngine* ContentRendererClient::OverrideThemeEngine() {
79 return NULL;
82 blink::WebSpeechSynthesizer* ContentRendererClient::OverrideSpeechSynthesizer(
83 blink::WebSpeechSynthesizerClient* client) {
84 return NULL;
87 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
88 return true;
91 bool ContentRendererClient::AllowPopup() {
92 return false;
95 #ifdef OS_ANDROID
96 bool ContentRendererClient::HandleNavigation(
97 RenderFrame* render_frame,
98 DocumentState* document_state,
99 int opener_id,
100 blink::WebFrame* frame,
101 const blink::WebURLRequest& request,
102 blink::WebNavigationType type,
103 blink::WebNavigationPolicy default_policy,
104 bool is_redirect) {
105 return false;
107 #endif
109 bool ContentRendererClient::ShouldFork(blink::WebFrame* frame,
110 const GURL& url,
111 const std::string& http_method,
112 bool is_initial_navigation,
113 bool is_server_redirect,
114 bool* send_referrer) {
115 return false;
118 bool ContentRendererClient::WillSendRequest(
119 blink::WebFrame* frame,
120 PageTransition transition_type,
121 const GURL& url,
122 const GURL& first_party_for_cookies,
123 GURL* new_url) {
124 return false;
127 unsigned long long ContentRendererClient::VisitedLinkHash(
128 const char* canonical_url, size_t length) {
129 return 0LL;
132 bool ContentRendererClient::IsLinkVisited(unsigned long long link_hash) {
133 return false;
136 blink::WebPrescientNetworking*
137 ContentRendererClient::GetPrescientNetworking() {
138 return NULL;
141 bool ContentRendererClient::ShouldOverridePageVisibilityState(
142 const RenderFrame* render_frame,
143 blink::WebPageVisibilityState* override_state) {
144 return false;
147 const void* ContentRendererClient::CreatePPAPIInterface(
148 const std::string& interface_name) {
149 return NULL;
152 bool ContentRendererClient::IsExternalPepperPlugin(
153 const std::string& module_name) {
154 return false;
157 bool ContentRendererClient::AllowBrowserPlugin(
158 blink::WebPluginContainer* container) {
159 return false;
162 bool ContentRendererClient::AllowPepperMediaStreamAPI(const GURL& url) {
163 return false;
166 void ContentRendererClient::AddKeySystems(
167 std::vector<KeySystemInfo>* key_systems) {
170 bool ContentRendererClient::ShouldReportDetailedMessageForSource(
171 const base::string16& source) const {
172 return false;
175 bool ContentRendererClient::ShouldEnableSiteIsolationPolicy() const {
176 return true;
179 blink::WebWorkerPermissionClientProxy*
180 ContentRendererClient::CreateWorkerPermissionClientProxy(
181 RenderFrame* render_frame, blink::WebFrame* frame) {
182 return NULL;
185 } // namespace content