| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/shell/shell_content_renderer_client.h" | 5 #include "content/shell/shell_content_renderer_client.h" |
| 6 | 6 |
| 7 #include "content/renderer/render_view.h" | |
| 8 #include "v8/include/v8.h" | 7 #include "v8/include/v8.h" |
| 9 | 8 |
| 10 namespace content { | 9 namespace content { |
| 11 | 10 |
| 12 ShellContentRendererClient::~ShellContentRendererClient() { | 11 ShellContentRendererClient::~ShellContentRendererClient() { |
| 13 } | 12 } |
| 14 | 13 |
| 15 void ShellContentRendererClient::RenderThreadStarted() { | 14 void ShellContentRendererClient::RenderThreadStarted() { |
| 16 } | 15 } |
| 17 | 16 |
| 18 void ShellContentRendererClient::RenderViewCreated(RenderView* render_view) { | 17 void ShellContentRendererClient::RenderViewCreated(RenderView* render_view) { |
| 19 } | 18 } |
| 20 | 19 |
| 21 void ShellContentRendererClient::SetNumberOfViews(int number_of_views) { | 20 void ShellContentRendererClient::SetNumberOfViews(int number_of_views) { |
| 22 } | 21 } |
| 23 | 22 |
| 24 SkBitmap* ShellContentRendererClient::GetSadPluginBitmap() { | 23 SkBitmap* ShellContentRendererClient::GetSadPluginBitmap() { |
| 25 return NULL; | 24 return NULL; |
| 26 } | 25 } |
| 27 | 26 |
| 28 std::string ShellContentRendererClient::GetDefaultEncoding() { | 27 std::string ShellContentRendererClient::GetDefaultEncoding() { |
| 29 return std::string(); | 28 return std::string(); |
| 30 } | 29 } |
| 31 | 30 |
| 32 WebKit::WebPlugin* ShellContentRendererClient::CreatePlugin( | 31 bool ShellContentRendererClient::OverrideCreatePlugin( |
| 33 RenderView* render_view, | 32 RenderView* render_view, |
| 34 WebKit::WebFrame* frame, | 33 WebKit::WebFrame* frame, |
| 35 const WebKit::WebPluginParams& params) { | 34 const WebKit::WebPluginParams& params, |
| 36 return render_view->CreatePluginNoCheck(frame, params); | 35 WebKit::WebPlugin** plugin) { |
| 36 return false; |
| 37 } | 37 } |
| 38 | 38 |
| 39 void ShellContentRendererClient::ShowErrorPage(RenderView* render_view, | 39 void ShellContentRendererClient::ShowErrorPage(RenderView* render_view, |
| 40 WebKit::WebFrame* frame, | 40 WebKit::WebFrame* frame, |
| 41 int http_status_code) { | 41 int http_status_code) { |
| 42 } | 42 } |
| 43 | 43 |
| 44 std::string ShellContentRendererClient::GetNavigationErrorHtml( | 44 std::string ShellContentRendererClient::GetNavigationErrorHtml( |
| 45 const WebKit::WebURLRequest& failed_request, | 45 const WebKit::WebURLRequest& failed_request, |
| 46 const WebKit::WebURLError& error) { | 46 const WebKit::WebURLError& error) { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 bool ShellContentRendererClient::HandleSetCookieRequest( | 111 bool ShellContentRendererClient::HandleSetCookieRequest( |
| 112 RenderView* sender, | 112 RenderView* sender, |
| 113 const GURL& url, | 113 const GURL& url, |
| 114 const GURL& first_party_for_cookies, | 114 const GURL& first_party_for_cookies, |
| 115 const std::string& value) { | 115 const std::string& value) { |
| 116 return false; | 116 return false; |
| 117 } | 117 } |
| 118 | 118 |
| 119 } // namespace content | 119 } // namespace content |
| OLD | NEW |