Chromium Code Reviews| 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" |
| 11 #include "content/browser/webui/empty_web_ui_factory.h" | 11 #include "content/browser/webui/empty_web_ui_factory.h" |
| 12 #include "content/test/test_tab_contents_view.h" | 12 #include "content/test/test_tab_contents_view.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 #include "net/url_request/url_request.h" | |
| 14 #include "third_party/skia/include/core/SkBitmap.h" | 15 #include "third_party/skia/include/core/SkBitmap.h" |
| 15 #include "ui/base/clipboard/clipboard.h" | 16 #include "ui/base/clipboard/clipboard.h" |
| 16 #include "webkit/glue/webpreferences.h" | 17 #include "webkit/glue/webpreferences.h" |
| 17 | 18 |
| 18 #if defined(USE_AURA) | 19 #if defined(USE_AURA) |
| 19 #include "content/browser/renderer_host/render_widget_host_view_aura.h" | 20 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
| 20 #elif defined(OS_WIN) | 21 #elif defined(OS_WIN) |
| 21 #include "content/browser/renderer_host/render_widget_host_view_win.h" | 22 #include "content/browser/renderer_host/render_widget_host_view_win.h" |
| 22 #elif defined(TOOLKIT_USES_GTK) | 23 #elif defined(TOOLKIT_USES_GTK) |
| 23 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" | 24 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 82 | 83 |
| 83 bool MockContentBrowserClient::ShouldUseProcessPerSite( | 84 bool MockContentBrowserClient::ShouldUseProcessPerSite( |
| 84 BrowserContext* browser_context, const GURL& effective_url) { | 85 BrowserContext* browser_context, const GURL& effective_url) { |
| 85 return false; | 86 return false; |
| 86 } | 87 } |
| 87 | 88 |
| 88 bool MockContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) { | 89 bool MockContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) { |
| 89 return false; | 90 return false; |
| 90 } | 91 } |
| 91 | 92 |
| 93 bool MockContentBrowserClient::IsHandledURL(const GURL& url) { | |
| 94 return net::URLRequest::IsHandledURL(url); | |
|
jam
2011/12/07 23:37:05
why isn't the mock impl returning false?
| |
| 95 } | |
| 96 | |
| 92 bool MockContentBrowserClient::IsSuitableHost( | 97 bool MockContentBrowserClient::IsSuitableHost( |
| 93 RenderProcessHost* process_host, | 98 RenderProcessHost* process_host, |
| 94 const GURL& site_url) { | 99 const GURL& site_url) { |
| 95 return true; | 100 return true; |
| 96 } | 101 } |
| 97 | 102 |
| 98 void MockContentBrowserClient::SiteInstanceGotProcess( | 103 void MockContentBrowserClient::SiteInstanceGotProcess( |
| 99 SiteInstance* site_instance) { | 104 SiteInstance* site_instance) { |
| 100 } | 105 } |
| 101 | 106 |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 334 #endif | 339 #endif |
| 335 | 340 |
| 336 #if defined(USE_NSS) | 341 #if defined(USE_NSS) |
| 337 crypto::CryptoModuleBlockingPasswordDelegate* | 342 crypto::CryptoModuleBlockingPasswordDelegate* |
| 338 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 343 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
| 339 return NULL; | 344 return NULL; |
| 340 } | 345 } |
| 341 #endif | 346 #endif |
| 342 | 347 |
| 343 } // namespace content | 348 } // namespace content |
| OLD | NEW |