OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 } | 103 } |
104 | 104 |
105 bool MockContentRendererClient::IsLinkVisited(unsigned long long link_hash) { | 105 bool MockContentRendererClient::IsLinkVisited(unsigned long long link_hash) { |
106 return false; | 106 return false; |
107 } | 107 } |
108 | 108 |
109 void MockContentRendererClient::PrefetchHostName( | 109 void MockContentRendererClient::PrefetchHostName( |
110 const char* hostname, size_t length) { | 110 const char* hostname, size_t length) { |
111 } | 111 } |
112 | 112 |
| 113 void MockContentRendererClient::NewLinkPrerender( |
| 114 int prerender_id, |
| 115 int render_view_route_id, |
| 116 const GURL& url, |
| 117 const content::Referrer& referrer, |
| 118 const gfx::Size& size) { |
| 119 } |
| 120 |
| 121 void MockContentRendererClient::RemovedLinkPrerender(int prerender_id) { |
| 122 } |
| 123 |
| 124 void MockContentRendererClient::UnloadedLinkPrerender(int prerender_id) { |
| 125 } |
| 126 |
113 bool MockContentRendererClient::ShouldOverridePageVisibilityState( | 127 bool MockContentRendererClient::ShouldOverridePageVisibilityState( |
114 const RenderView* render_view, | 128 const RenderView* render_view, |
115 WebKit::WebPageVisibilityState* override_state) const { | 129 WebKit::WebPageVisibilityState* override_state) const { |
116 return false; | 130 return false; |
117 } | 131 } |
118 | 132 |
119 bool MockContentRendererClient::HandleGetCookieRequest( | 133 bool MockContentRendererClient::HandleGetCookieRequest( |
120 RenderView* sender, | 134 RenderView* sender, |
121 const GURL& url, | 135 const GURL& url, |
122 const GURL& first_party_for_cookies, | 136 const GURL& first_party_for_cookies, |
123 std::string* cookies) { | 137 std::string* cookies) { |
124 return false; | 138 return false; |
125 } | 139 } |
126 | 140 |
127 bool MockContentRendererClient::HandleSetCookieRequest( | 141 bool MockContentRendererClient::HandleSetCookieRequest( |
128 RenderView* sender, | 142 RenderView* sender, |
129 const GURL& url, | 143 const GURL& url, |
130 const GURL& first_party_for_cookies, | 144 const GURL& first_party_for_cookies, |
131 const std::string& value) { | 145 const std::string& value) { |
132 return false; | 146 return false; |
133 } | 147 } |
134 | 148 |
135 void MockContentRendererClient::RegisterPPAPIInterfaceFactories( | 149 void MockContentRendererClient::RegisterPPAPIInterfaceFactories( |
136 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { | 150 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { |
137 } | 151 } |
138 | 152 |
139 } // namespace content | 153 } // namespace content |
OLD | NEW |