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 #include "media/base/renderer_factory.h"
8 #include "third_party/WebKit/public/web/WebPluginPlaceholder.h"
12 SkBitmap
* ContentRendererClient::GetSadPluginBitmap() {
16 SkBitmap
* ContentRendererClient::GetSadWebViewBitmap() {
20 scoped_ptr
<blink::WebPluginPlaceholder
>
21 ContentRendererClient::CreatePluginPlaceholder(
22 RenderFrame
* render_frame
,
23 blink::WebLocalFrame
* frame
,
24 const blink::WebPluginParams
& params
) {
28 bool ContentRendererClient::OverrideCreatePlugin(
29 RenderFrame
* render_frame
,
30 blink::WebLocalFrame
* frame
,
31 const blink::WebPluginParams
& params
,
32 blink::WebPlugin
** plugin
) {
36 blink::WebPlugin
* ContentRendererClient::CreatePluginReplacement(
37 RenderFrame
* render_frame
,
38 const base::FilePath
& plugin_path
) {
42 bool ContentRendererClient::HasErrorPage(int http_status_code
,
43 std::string
* error_domain
) {
47 bool ContentRendererClient::ShouldSuppressErrorPage(RenderFrame
* render_frame
,
52 void ContentRendererClient::DeferMediaLoad(RenderFrame
* render_frame
,
53 const base::Closure
& closure
) {
57 blink::WebMediaStreamCenter
*
58 ContentRendererClient::OverrideCreateWebMediaStreamCenter(
59 blink::WebMediaStreamCenterClient
* client
) {
63 blink::WebRTCPeerConnectionHandler
*
64 ContentRendererClient::OverrideCreateWebRTCPeerConnectionHandler(
65 blink::WebRTCPeerConnectionHandlerClient
* client
) {
69 blink::WebMIDIAccessor
*
70 ContentRendererClient::OverrideCreateMIDIAccessor(
71 blink::WebMIDIAccessorClient
* client
) {
75 blink::WebAudioDevice
*
76 ContentRendererClient::OverrideCreateAudioDevice(
81 blink::WebClipboard
* ContentRendererClient::OverrideWebClipboard() {
85 blink::WebThemeEngine
* ContentRendererClient::OverrideThemeEngine() {
89 blink::WebSpeechSynthesizer
* ContentRendererClient::OverrideSpeechSynthesizer(
90 blink::WebSpeechSynthesizerClient
* client
) {
94 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
98 bool ContentRendererClient::AllowPopup() {
103 bool ContentRendererClient::HandleNavigation(
104 RenderFrame
* render_frame
,
105 DocumentState
* document_state
,
107 blink::WebFrame
* frame
,
108 const blink::WebURLRequest
& request
,
109 blink::WebNavigationType type
,
110 blink::WebNavigationPolicy default_policy
,
116 bool ContentRendererClient::ShouldFork(blink::WebFrame
* frame
,
118 const std::string
& http_method
,
119 bool is_initial_navigation
,
120 bool is_server_redirect
,
121 bool* send_referrer
) {
125 bool ContentRendererClient::ShouldForwardToGuestContainer(
126 const IPC::Message
& msg
) {
130 bool ContentRendererClient::WillSendRequest(
131 blink::WebFrame
* frame
,
132 ui::PageTransition transition_type
,
134 const GURL
& first_party_for_cookies
,
139 unsigned long long ContentRendererClient::VisitedLinkHash(
140 const char* canonical_url
, size_t length
) {
144 bool ContentRendererClient::IsLinkVisited(unsigned long long link_hash
) {
148 blink::WebPrescientNetworking
*
149 ContentRendererClient::GetPrescientNetworking() {
153 bool ContentRendererClient::ShouldOverridePageVisibilityState(
154 const RenderFrame
* render_frame
,
155 blink::WebPageVisibilityState
* override_state
) {
159 const void* ContentRendererClient::CreatePPAPIInterface(
160 const std::string
& interface_name
) {
164 bool ContentRendererClient::IsExternalPepperPlugin(
165 const std::string
& module_name
) {
169 bool ContentRendererClient::AllowPepperMediaStreamAPI(const GURL
& url
) {
173 void ContentRendererClient::AddKeySystems(
174 std::vector
<media::KeySystemInfo
>* key_systems
) {
177 scoped_ptr
<media::RendererFactory
>
178 ContentRendererClient::CreateMediaRendererFactory(
179 RenderFrame
* render_frame
,
180 const scoped_refptr
<media::MediaLog
>& media_log
) {
184 bool ContentRendererClient::ShouldReportDetailedMessageForSource(
185 const base::string16
& source
) const {
189 bool ContentRendererClient::ShouldEnableSiteIsolationPolicy() const {
193 blink::WebWorkerContentSettingsClientProxy
*
194 ContentRendererClient::CreateWorkerContentSettingsClientProxy(
195 RenderFrame
* render_frame
, blink::WebFrame
* frame
) {
199 bool ContentRendererClient::IsPluginAllowedToUseCameraDeviceAPI(
204 bool ContentRendererClient::IsPluginAllowedToUseCompositorAPI(const GURL
& url
) {
208 bool ContentRendererClient::IsPluginAllowedToUseDevChannelAPIs() {
212 BrowserPluginDelegate
* ContentRendererClient::CreateBrowserPluginDelegate(
213 RenderFrame
* render_frame
,
214 const std::string
& mime_type
,
215 const GURL
& original_url
) {
219 std::string
ContentRendererClient::GetUserAgentOverrideForURL(const GURL
& url
) {
220 return std::string();
223 } // namespace content