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"
9 SkBitmap
* ContentRendererClient::GetSadPluginBitmap() {
13 SkBitmap
* ContentRendererClient::GetSadWebViewBitmap() {
17 std::string
ContentRendererClient::GetDefaultEncoding() {
21 bool ContentRendererClient::OverrideCreatePlugin(
22 RenderFrame
* render_frame
,
23 blink::WebLocalFrame
* frame
,
24 const blink::WebPluginParams
& params
,
25 blink::WebPlugin
** plugin
) {
29 blink::WebPlugin
* ContentRendererClient::CreatePluginReplacement(
30 RenderFrame
* render_frame
,
31 const base::FilePath
& plugin_path
) {
35 bool ContentRendererClient::HasErrorPage(int http_status_code
,
36 std::string
* error_domain
) {
40 bool ContentRendererClient::ShouldSuppressErrorPage(RenderFrame
* render_frame
,
45 void ContentRendererClient::DeferMediaLoad(RenderFrame
* render_frame
,
46 const base::Closure
& closure
) {
50 blink::WebMediaStreamCenter
*
51 ContentRendererClient::OverrideCreateWebMediaStreamCenter(
52 blink::WebMediaStreamCenterClient
* client
) {
56 blink::WebRTCPeerConnectionHandler
*
57 ContentRendererClient::OverrideCreateWebRTCPeerConnectionHandler(
58 blink::WebRTCPeerConnectionHandlerClient
* client
) {
62 blink::WebMIDIAccessor
*
63 ContentRendererClient::OverrideCreateMIDIAccessor(
64 blink::WebMIDIAccessorClient
* client
) {
68 blink::WebAudioDevice
*
69 ContentRendererClient::OverrideCreateAudioDevice(
74 blink::WebClipboard
* ContentRendererClient::OverrideWebClipboard() {
78 blink::WebThemeEngine
* ContentRendererClient::OverrideThemeEngine() {
82 blink::WebSpeechSynthesizer
* ContentRendererClient::OverrideSpeechSynthesizer(
83 blink::WebSpeechSynthesizerClient
* client
) {
87 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
91 bool ContentRendererClient::AllowPopup() {
96 bool ContentRendererClient::HandleNavigation(
97 RenderFrame
* render_frame
,
98 DocumentState
* document_state
,
100 blink::WebFrame
* frame
,
101 const blink::WebURLRequest
& request
,
102 blink::WebNavigationType type
,
103 blink::WebNavigationPolicy default_policy
,
109 bool ContentRendererClient::ShouldFork(blink::WebFrame
* frame
,
111 const std::string
& http_method
,
112 bool is_initial_navigation
,
113 bool is_server_redirect
,
114 bool* send_referrer
) {
118 bool ContentRendererClient::WillSendRequest(
119 blink::WebFrame
* frame
,
120 PageTransition transition_type
,
122 const GURL
& first_party_for_cookies
,
127 unsigned long long ContentRendererClient::VisitedLinkHash(
128 const char* canonical_url
, size_t length
) {
132 bool ContentRendererClient::IsLinkVisited(unsigned long long link_hash
) {
136 blink::WebPrescientNetworking
*
137 ContentRendererClient::GetPrescientNetworking() {
141 bool ContentRendererClient::ShouldOverridePageVisibilityState(
142 const RenderFrame
* render_frame
,
143 blink::WebPageVisibilityState
* override_state
) {
147 const void* ContentRendererClient::CreatePPAPIInterface(
148 const std::string
& interface_name
) {
152 bool ContentRendererClient::IsExternalPepperPlugin(
153 const std::string
& module_name
) {
157 bool ContentRendererClient::AllowBrowserPlugin(
158 blink::WebPluginContainer
* container
) {
162 bool ContentRendererClient::AllowPepperMediaStreamAPI(const GURL
& url
) {
166 void ContentRendererClient::AddKeySystems(
167 std::vector
<KeySystemInfo
>* key_systems
) {
170 bool ContentRendererClient::ShouldReportDetailedMessageForSource(
171 const base::string16
& source
) const {
175 bool ContentRendererClient::ShouldEnableSiteIsolationPolicy() const {
179 blink::WebWorkerPermissionClientProxy
*
180 ContentRendererClient::CreateWorkerPermissionClientProxy(
181 RenderFrame
* render_frame
, blink::WebFrame
* frame
) {
185 } // namespace content