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/browser/mock_content_browser_client.h" | 5 #include "content/browser/mock_content_browser_client.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 176 |
177 void MockContentBrowserClient::RequestDesktopNotificationPermission( | 177 void MockContentBrowserClient::RequestDesktopNotificationPermission( |
178 const GURL& source_origin, | 178 const GURL& source_origin, |
179 int callback_context, | 179 int callback_context, |
180 int render_process_id, | 180 int render_process_id, |
181 int render_view_id) { | 181 int render_view_id) { |
182 } | 182 } |
183 | 183 |
184 WebKit::WebNotificationPresenter::Permission | 184 WebKit::WebNotificationPresenter::Permission |
185 MockContentBrowserClient::CheckDesktopNotificationPermission( | 185 MockContentBrowserClient::CheckDesktopNotificationPermission( |
186 const GURL& source_url, | 186 const GURL& source_origin, |
187 const content::ResourceContext& context) { | 187 const content::ResourceContext& context, |
| 188 int render_process_id) { |
188 return WebKit::WebNotificationPresenter::PermissionAllowed; | 189 return WebKit::WebNotificationPresenter::PermissionAllowed; |
189 } | 190 } |
190 | 191 |
191 void MockContentBrowserClient::ShowDesktopNotification( | 192 void MockContentBrowserClient::ShowDesktopNotification( |
192 const DesktopNotificationHostMsg_Show_Params& params, | 193 const DesktopNotificationHostMsg_Show_Params& params, |
193 int render_process_id, | 194 int render_process_id, |
194 int render_view_id, | 195 int render_view_id, |
195 bool worker) { | 196 bool worker) { |
196 } | 197 } |
197 | 198 |
198 void MockContentBrowserClient::CancelDesktopNotification( | 199 void MockContentBrowserClient::CancelDesktopNotification( |
199 int render_process_id, | 200 int render_process_id, |
200 int render_view_id, | 201 int render_view_id, |
201 int notification_id) { | 202 int notification_id) { |
202 } | 203 } |
203 | 204 |
204 bool MockContentBrowserClient::CanCreateWindow( | 205 bool MockContentBrowserClient::CanCreateWindow( |
205 const GURL& source_url, | 206 const GURL& source_origin, |
206 WindowContainerType container_type, | 207 WindowContainerType container_type, |
207 const content::ResourceContext& context) { | 208 const content::ResourceContext& context, |
| 209 int render_process_id) { |
208 return true; | 210 return true; |
209 } | 211 } |
210 | 212 |
211 std::string MockContentBrowserClient::GetWorkerProcessTitle( | 213 std::string MockContentBrowserClient::GetWorkerProcessTitle( |
212 const GURL& url, const content::ResourceContext& context) { | 214 const GURL& url, const content::ResourceContext& context) { |
213 return std::string(); | 215 return std::string(); |
214 } | 216 } |
215 | 217 |
216 ResourceDispatcherHost* MockContentBrowserClient::GetResourceDispatcherHost() { | 218 ResourceDispatcherHost* MockContentBrowserClient::GetResourceDispatcherHost() { |
217 return NULL; | 219 return NULL; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 #endif | 296 #endif |
295 | 297 |
296 #if defined(USE_NSS) | 298 #if defined(USE_NSS) |
297 crypto::CryptoModuleBlockingPasswordDelegate* | 299 crypto::CryptoModuleBlockingPasswordDelegate* |
298 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 300 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
299 return NULL; | 301 return NULL; |
300 } | 302 } |
301 #endif | 303 #endif |
302 | 304 |
303 } // namespace content | 305 } // namespace content |
OLD | NEW |