| 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 "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "content/renderer/content_renderer_client.h" | 10 #include "content/renderer/content_renderer_client.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 WebKit::WebFrame* frame, | 28 WebKit::WebFrame* frame, |
| 29 int http_status_code) OVERRIDE; | 29 int http_status_code) OVERRIDE; |
| 30 virtual std::string GetNavigationErrorHtml( | 30 virtual std::string GetNavigationErrorHtml( |
| 31 const WebKit::WebURLRequest& failed_request, | 31 const WebKit::WebURLRequest& failed_request, |
| 32 const WebKit::WebURLError& error) OVERRIDE; | 32 const WebKit::WebURLError& error) OVERRIDE; |
| 33 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE; | 33 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE; |
| 34 virtual bool AllowPopup(const GURL& creator) OVERRIDE; | 34 virtual bool AllowPopup(const GURL& creator) OVERRIDE; |
| 35 virtual bool ShouldFork(WebKit::WebFrame* frame, | 35 virtual bool ShouldFork(WebKit::WebFrame* frame, |
| 36 const GURL& url, | 36 const GURL& url, |
| 37 bool is_content_initiated, | 37 bool is_content_initiated, |
| 38 bool is_initial_navigation, |
| 38 bool* send_referrer) OVERRIDE; | 39 bool* send_referrer) OVERRIDE; |
| 39 virtual bool WillSendRequest(WebKit::WebFrame* frame, | 40 virtual bool WillSendRequest(WebKit::WebFrame* frame, |
| 40 const GURL& url, | 41 const GURL& url, |
| 41 GURL* new_url) OVERRIDE; | 42 GURL* new_url) OVERRIDE; |
| 42 virtual bool ShouldPumpEventsDuringCookieMessage() OVERRIDE; | 43 virtual bool ShouldPumpEventsDuringCookieMessage() OVERRIDE; |
| 43 virtual void DidCreateScriptContext(WebKit::WebFrame* frame) OVERRIDE; | 44 virtual void DidCreateScriptContext(WebKit::WebFrame* frame) OVERRIDE; |
| 44 virtual void DidDestroyScriptContext(WebKit::WebFrame* frame) OVERRIDE; | 45 virtual void DidDestroyScriptContext(WebKit::WebFrame* frame) OVERRIDE; |
| 45 virtual void DidCreateIsolatedScriptContext( | 46 virtual void DidCreateIsolatedScriptContext( |
| 46 WebKit::WebFrame* frame) OVERRIDE; | 47 WebKit::WebFrame* frame) OVERRIDE; |
| 47 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 48 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
| 48 size_t length) OVERRIDE; | 49 size_t length) OVERRIDE; |
| 49 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; | 50 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; |
| 50 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; | 51 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; |
| 51 virtual bool ShouldOverridePageVisibilityState( | 52 virtual bool ShouldOverridePageVisibilityState( |
| 52 const RenderView* render_view, | 53 const RenderView* render_view, |
| 53 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; | 54 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 } // namespace content | 57 } // namespace content |
| 57 | 58 |
| 58 #endif // CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ | 59 #endif // CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |