| 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/renderer/mock_content_renderer_client.h" | 5 #include "content/renderer/mock_content_renderer_client.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include "v8/include/v8.h" | 8 #include "v8/include/v8.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 const WebKit::WebURLRequest& failed_request, | 46 const WebKit::WebURLRequest& failed_request, |
| 47 const WebKit::WebURLError& error, | 47 const WebKit::WebURLError& error, |
| 48 std::string* error_html, | 48 std::string* error_html, |
| 49 string16* error_description) { | 49 string16* error_description) { |
| 50 } | 50 } |
| 51 | 51 |
| 52 bool MockContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { | 52 bool MockContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { |
| 53 return true; | 53 return true; |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool MockContentRendererClient::RunIdleHandlerWhenUserIdle() { |
| 57 return true; |
| 58 } |
| 59 |
| 56 bool MockContentRendererClient::AllowPopup(const GURL& creator) { | 60 bool MockContentRendererClient::AllowPopup(const GURL& creator) { |
| 57 return false; | 61 return false; |
| 58 } | 62 } |
| 59 | 63 |
| 60 bool MockContentRendererClient::ShouldFork(WebKit::WebFrame* frame, | 64 bool MockContentRendererClient::ShouldFork(WebKit::WebFrame* frame, |
| 61 const GURL& url, | 65 const GURL& url, |
| 62 bool is_content_initiated, | 66 bool is_content_initiated, |
| 63 bool is_initial_navigation, | 67 bool is_initial_navigation, |
| 64 bool* send_referrer) { | 68 bool* send_referrer) { |
| 65 return false; | 69 return false; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 124 |
| 121 bool MockContentRendererClient::IsProtocolSupportedForMedia(const GURL& url) { | 125 bool MockContentRendererClient::IsProtocolSupportedForMedia(const GURL& url) { |
| 122 return false; | 126 return false; |
| 123 } | 127 } |
| 124 | 128 |
| 125 void MockContentRendererClient::RegisterPPAPIInterfaceFactories( | 129 void MockContentRendererClient::RegisterPPAPIInterfaceFactories( |
| 126 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { | 130 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { |
| 127 } | 131 } |
| 128 | 132 |
| 129 } // namespace content | 133 } // namespace content |
| OLD | NEW |