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 #ifndef CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ |
6 #define CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 RenderView* render_view, | 26 RenderView* render_view, |
27 WebKit::WebFrame* frame, | 27 WebKit::WebFrame* frame, |
28 const WebKit::WebPluginParams& params, | 28 const WebKit::WebPluginParams& params, |
29 WebKit::WebPlugin** plugin) OVERRIDE; | 29 WebKit::WebPlugin** plugin) OVERRIDE; |
30 virtual void ShowErrorPage(RenderView* render_view, | 30 virtual void ShowErrorPage(RenderView* render_view, |
31 WebKit::WebFrame* frame, | 31 WebKit::WebFrame* frame, |
32 int http_status_code) OVERRIDE; | 32 int http_status_code) OVERRIDE; |
33 virtual std::string GetNavigationErrorHtml( | 33 virtual std::string GetNavigationErrorHtml( |
34 const WebKit::WebURLRequest& failed_request, | 34 const WebKit::WebURLRequest& failed_request, |
35 const WebKit::WebURLError& error) OVERRIDE; | 35 const WebKit::WebURLError& error) OVERRIDE; |
| 36 virtual string16 GetNavigationErrorDescription( |
| 37 const WebKit::WebURLRequest& failed_request, |
| 38 const WebKit::WebURLError& error) OVERRIDE; |
36 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE; | 39 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE; |
37 virtual bool AllowPopup(const GURL& creator) OVERRIDE; | 40 virtual bool AllowPopup(const GURL& creator) OVERRIDE; |
38 virtual bool ShouldFork(WebKit::WebFrame* frame, | 41 virtual bool ShouldFork(WebKit::WebFrame* frame, |
39 const GURL& url, | 42 const GURL& url, |
40 bool is_content_initiated, | 43 bool is_content_initiated, |
41 bool is_initial_navigation, | 44 bool is_initial_navigation, |
42 bool* send_referrer) OVERRIDE; | 45 bool* send_referrer) OVERRIDE; |
43 virtual bool WillSendRequest(WebKit::WebFrame* frame, | 46 virtual bool WillSendRequest(WebKit::WebFrame* frame, |
44 const GURL& url, | 47 const GURL& url, |
45 GURL* new_url) OVERRIDE; | 48 GURL* new_url) OVERRIDE; |
(...skipping 18 matching lines...) Expand all Loading... |
64 virtual bool HandleSetCookieRequest(RenderView* sender, | 67 virtual bool HandleSetCookieRequest(RenderView* sender, |
65 const GURL& url, | 68 const GURL& url, |
66 const GURL& first_party_for_cookies, | 69 const GURL& first_party_for_cookies, |
67 const std::string& value) OVERRIDE; | 70 const std::string& value) OVERRIDE; |
68 virtual bool IsProtocolSupportedForMedia(const GURL& url) OVERRIDE; | 71 virtual bool IsProtocolSupportedForMedia(const GURL& url) OVERRIDE; |
69 }; | 72 }; |
70 | 73 |
71 } // namespace content | 74 } // namespace content |
72 | 75 |
73 #endif // CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ | 76 #endif // CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |