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 RenderView
* render_view
,
23 WebKit::WebFrame
* frame
,
24 const WebKit::WebPluginParams
& params
,
25 WebKit::WebPlugin
** plugin
) {
29 WebKit::WebPlugin
* ContentRendererClient::CreatePluginReplacement(
30 RenderView
* render_view
,
31 const base::FilePath
& plugin_path
) {
35 bool ContentRendererClient::HasErrorPage(int http_status_code
,
36 std::string
* error_domain
) {
40 void ContentRendererClient::DeferMediaLoad(RenderView
* render_view
,
41 const base::Closure
& closure
) {
45 WebKit::WebMediaStreamCenter
*
46 ContentRendererClient::OverrideCreateWebMediaStreamCenter(
47 WebKit::WebMediaStreamCenterClient
* client
) {
51 WebKit::WebRTCPeerConnectionHandler
*
52 ContentRendererClient::OverrideCreateWebRTCPeerConnectionHandler(
53 WebKit::WebRTCPeerConnectionHandlerClient
* client
) {
57 WebKit::WebMIDIAccessor
*
58 ContentRendererClient::OverrideCreateMIDIAccessor(
59 WebKit::WebMIDIAccessorClient
* client
) {
63 WebKit::WebAudioDevice
*
64 ContentRendererClient::OverrideCreateAudioDevice(
69 WebKit::WebClipboard
* ContentRendererClient::OverrideWebClipboard() {
73 WebKit::WebThemeEngine
* ContentRendererClient::OverrideThemeEngine() {
77 WebKit::WebSpeechSynthesizer
* ContentRendererClient::OverrideSpeechSynthesizer(
78 WebKit::WebSpeechSynthesizerClient
* client
) {
82 WebKit::WebCrypto
* ContentRendererClient::OverrideWebCrypto() {
86 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
90 bool ContentRendererClient::AllowPopup() {
94 bool ContentRendererClient::HandleNavigation(
95 WebKit::WebFrame
* frame
,
96 const WebKit::WebURLRequest
& request
,
97 WebKit::WebNavigationType type
,
98 WebKit::WebNavigationPolicy default_policy
,
103 bool ContentRendererClient::ShouldFork(WebKit::WebFrame
* frame
,
105 const std::string
& http_method
,
106 bool is_initial_navigation
,
107 bool is_server_redirect
,
108 bool* send_referrer
) {
112 bool ContentRendererClient::WillSendRequest(
113 WebKit::WebFrame
* frame
,
114 PageTransition transition_type
,
116 const GURL
& first_party_for_cookies
,
121 bool ContentRendererClient::ShouldPumpEventsDuringCookieMessage() {
125 unsigned long long ContentRendererClient::VisitedLinkHash(
126 const char* canonical_url
, size_t length
) {
130 bool ContentRendererClient::IsLinkVisited(unsigned long long link_hash
) {
134 WebKit::WebPrescientNetworking
*
135 ContentRendererClient::GetPrescientNetworking() {
139 bool ContentRendererClient::ShouldOverridePageVisibilityState(
140 const RenderView
* render_view
,
141 WebKit::WebPageVisibilityState
* override_state
) {
145 bool ContentRendererClient::HandleGetCookieRequest(
148 const GURL
& first_party_for_cookies
,
149 std::string
* cookies
) {
153 bool ContentRendererClient::HandleSetCookieRequest(
156 const GURL
& first_party_for_cookies
,
157 const std::string
& value
) {
161 const void* ContentRendererClient::CreatePPAPIInterface(
162 const std::string
& interface_name
) {
166 bool ContentRendererClient::IsExternalPepperPlugin(
167 const std::string
& module_name
) {
171 bool ContentRendererClient::IsPluginAllowedToCallRequestOSFileHandle(
172 WebKit::WebPluginContainer
* container
) {
176 bool ContentRendererClient::AllowBrowserPlugin(
177 WebKit::WebPluginContainer
* container
) {
181 bool ContentRendererClient::AllowPepperMediaStreamAPI(const GURL
& url
) {
185 bool ContentRendererClient::ShouldReportDetailedMessageForSource(
186 const base::string16
& source
) const {
190 } // namespace content