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 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 return true; | 50 return true; |
51 } | 51 } |
52 | 52 |
53 bool MockContentRendererClient::AllowPopup(const GURL& creator) { | 53 bool MockContentRendererClient::AllowPopup(const GURL& creator) { |
54 return false; | 54 return false; |
55 } | 55 } |
56 | 56 |
57 bool MockContentRendererClient::ShouldFork(WebKit::WebFrame* frame, | 57 bool MockContentRendererClient::ShouldFork(WebKit::WebFrame* frame, |
58 const GURL& url, | 58 const GURL& url, |
59 bool is_content_initiated, | 59 bool is_content_initiated, |
| 60 bool is_initial_navigation, |
60 bool* send_referrer) { | 61 bool* send_referrer) { |
61 return false; | 62 return false; |
62 } | 63 } |
63 | 64 |
64 bool MockContentRendererClient::WillSendRequest(WebKit::WebFrame* frame, | 65 bool MockContentRendererClient::WillSendRequest(WebKit::WebFrame* frame, |
65 const GURL& url, | 66 const GURL& url, |
66 GURL* new_url) { | 67 GURL* new_url) { |
67 return false; | 68 return false; |
68 } | 69 } |
69 | 70 |
(...skipping 26 matching lines...) Expand all Loading... |
96 const char* hostname, size_t length) { | 97 const char* hostname, size_t length) { |
97 } | 98 } |
98 | 99 |
99 bool MockContentRendererClient::ShouldOverridePageVisibilityState( | 100 bool MockContentRendererClient::ShouldOverridePageVisibilityState( |
100 const RenderView* render_view, | 101 const RenderView* render_view, |
101 WebKit::WebPageVisibilityState* override_state) const { | 102 WebKit::WebPageVisibilityState* override_state) const { |
102 return false; | 103 return false; |
103 } | 104 } |
104 | 105 |
105 } // namespace content | 106 } // namespace content |
OLD | NEW |