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 webkit_media::WebMediaPlayerImpl
*
41 ContentRendererClient::OverrideCreateWebMediaPlayer(
42 RenderView
* render_view
,
43 WebKit::WebFrame
* frame
,
44 WebKit::WebMediaPlayerClient
* client
,
45 base::WeakPtr
<webkit_media::WebMediaPlayerDelegate
> delegate
,
46 const webkit_media::WebMediaPlayerParams
& params
) {
50 WebKit::WebMediaStreamCenter
*
51 ContentRendererClient::OverrideCreateWebMediaStreamCenter(
52 WebKit::WebMediaStreamCenterClient
* client
) {
56 WebKit::WebRTCPeerConnectionHandler
*
57 ContentRendererClient::OverrideCreateWebRTCPeerConnectionHandler(
58 WebKit::WebRTCPeerConnectionHandlerClient
* client
) {
62 WebKit::WebClipboard
* ContentRendererClient::OverrideWebClipboard() {
66 WebKit::WebMimeRegistry
* ContentRendererClient::OverrideWebMimeRegistry() {
70 WebKit::WebHyphenator
* ContentRendererClient::OverrideWebHyphenator() {
74 WebKit::WebThemeEngine
* ContentRendererClient::OverrideThemeEngine() {
78 WebKit::WebSpeechSynthesizer
* ContentRendererClient::OverrideSpeechSynthesizer(
79 WebKit::WebSpeechSynthesizerClient
* client
) {
83 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
87 bool ContentRendererClient::AllowPopup() {
91 bool ContentRendererClient::HandleNavigation(
92 WebKit::WebFrame
* frame
,
93 const WebKit::WebURLRequest
& request
,
94 WebKit::WebNavigationType type
,
95 WebKit::WebNavigationPolicy default_policy
,
100 bool ContentRendererClient::ShouldFork(WebKit::WebFrame
* frame
,
102 const std::string
& http_method
,
103 bool is_initial_navigation
,
104 bool* send_referrer
) {
108 bool ContentRendererClient::WillSendRequest(
109 WebKit::WebFrame
* frame
,
110 PageTransition transition_type
,
112 const GURL
& first_party_for_cookies
,
117 bool ContentRendererClient::ShouldPumpEventsDuringCookieMessage() {
121 unsigned long long ContentRendererClient::VisitedLinkHash(
122 const char* canonical_url
, size_t length
) {
126 bool ContentRendererClient::IsLinkVisited(unsigned long long link_hash
) {
130 bool ContentRendererClient::ShouldOverridePageVisibilityState(
131 const RenderView
* render_view
,
132 WebKit::WebPageVisibilityState
* override_state
) const {
136 bool ContentRendererClient::HandleGetCookieRequest(
139 const GURL
& first_party_for_cookies
,
140 std::string
* cookies
) {
144 bool ContentRendererClient::HandleSetCookieRequest(
147 const GURL
& first_party_for_cookies
,
148 const std::string
& value
) {
152 bool ContentRendererClient::AllowBrowserPlugin(
153 WebKit::WebPluginContainer
* container
) const {
157 MessageLoop
* ContentRendererClient::OverrideCompositorMessageLoop() const {
161 bool ContentRendererClient::ShouldCreateCompositorInputHandler() const {
165 } // namespace content