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 30 matching lines...) Expand all Loading... |
41 WebKit::WebFrame* frame, | 41 WebKit::WebFrame* frame, |
42 int http_status_code) { | 42 int http_status_code) { |
43 } | 43 } |
44 | 44 |
45 std::string MockContentRendererClient::GetNavigationErrorHtml( | 45 std::string MockContentRendererClient::GetNavigationErrorHtml( |
46 const WebKit::WebURLRequest& failed_request, | 46 const WebKit::WebURLRequest& failed_request, |
47 const WebKit::WebURLError& error) { | 47 const WebKit::WebURLError& error) { |
48 return std::string(); | 48 return std::string(); |
49 } | 49 } |
50 | 50 |
| 51 string16 MockContentRendererClient::GetNavigationErrorDescription( |
| 52 const WebKit::WebURLRequest& failed_request, |
| 53 const WebKit::WebURLError& error) { |
| 54 return string16(); |
| 55 } |
| 56 |
51 bool MockContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { | 57 bool MockContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { |
52 return true; | 58 return true; |
53 } | 59 } |
54 | 60 |
55 bool MockContentRendererClient::AllowPopup(const GURL& creator) { | 61 bool MockContentRendererClient::AllowPopup(const GURL& creator) { |
56 return false; | 62 return false; |
57 } | 63 } |
58 | 64 |
59 bool MockContentRendererClient::ShouldFork(WebKit::WebFrame* frame, | 65 bool MockContentRendererClient::ShouldFork(WebKit::WebFrame* frame, |
60 const GURL& url, | 66 const GURL& url, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 const GURL& first_party_for_cookies, | 121 const GURL& first_party_for_cookies, |
116 const std::string& value) { | 122 const std::string& value) { |
117 return false; | 123 return false; |
118 } | 124 } |
119 | 125 |
120 bool MockContentRendererClient::IsProtocolSupportedForMedia(const GURL& url) { | 126 bool MockContentRendererClient::IsProtocolSupportedForMedia(const GURL& url) { |
121 return false; | 127 return false; |
122 } | 128 } |
123 | 129 |
124 } // namespace content | 130 } // namespace content |
OLD | NEW |