| 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/shell/shell_content_browser_client.h" | 5 #include "content/shell/shell_content_browser_client.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "content/browser/webui/empty_web_ui_factory.h" | 8 #include "content/browser/webui/empty_web_ui_factory.h" |
| 9 #include "content/shell/shell.h" | 9 #include "content/shell/shell.h" |
| 10 #include "content/shell/shell_browser_main.h" | 10 #include "content/shell/shell_browser_main.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 12 #include "net/url_request/url_request.h" |
| 12 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
| 13 #include "webkit/glue/webpreferences.h" | 14 #include "webkit/glue/webpreferences.h" |
| 14 | 15 |
| 15 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
| 16 #include "content/browser/renderer_host/render_widget_host_view_win.h" | 17 #include "content/browser/renderer_host/render_widget_host_view_win.h" |
| 17 #include "content/browser/tab_contents/tab_contents.h" | 18 #include "content/browser/tab_contents/tab_contents.h" |
| 18 #include "content/browser/tab_contents/tab_contents_view_win.h" | 19 #include "content/browser/tab_contents/tab_contents_view_win.h" |
| 19 #include "content/common/view_messages.h" | 20 #include "content/common/view_messages.h" |
| 20 #endif | 21 #endif |
| 21 | 22 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 76 |
| 76 bool ShellContentBrowserClient::ShouldUseProcessPerSite( | 77 bool ShellContentBrowserClient::ShouldUseProcessPerSite( |
| 77 BrowserContext* browser_context, const GURL& effective_url) { | 78 BrowserContext* browser_context, const GURL& effective_url) { |
| 78 return false; | 79 return false; |
| 79 } | 80 } |
| 80 | 81 |
| 81 bool ShellContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) { | 82 bool ShellContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) { |
| 82 return false; | 83 return false; |
| 83 } | 84 } |
| 84 | 85 |
| 86 bool ShellContentBrowserClient::IsHandledURL(const GURL& url) { |
| 87 return net::URLRequest::IsHandledURL(); |
| 88 } |
| 89 |
| 85 bool ShellContentBrowserClient::IsSuitableHost( | 90 bool ShellContentBrowserClient::IsSuitableHost( |
| 86 RenderProcessHost* process_host, | 91 RenderProcessHost* process_host, |
| 87 const GURL& site_url) { | 92 const GURL& site_url) { |
| 88 return true; | 93 return true; |
| 89 } | 94 } |
| 90 | 95 |
| 91 void ShellContentBrowserClient::SiteInstanceGotProcess( | 96 void ShellContentBrowserClient::SiteInstanceGotProcess( |
| 92 SiteInstance* site_instance) { | 97 SiteInstance* site_instance) { |
| 93 } | 98 } |
| 94 | 99 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 tab_contents_view->tab_contents()->browser_context(), | 343 tab_contents_view->tab_contents()->browser_context(), |
| 339 GURL(), | 344 GURL(), |
| 340 tab_contents_view->tab_contents()->GetSiteInstance(), | 345 tab_contents_view->tab_contents()->GetSiteInstance(), |
| 341 route_id, | 346 route_id, |
| 342 tab_contents_view->tab_contents()); | 347 tab_contents_view->tab_contents()); |
| 343 return shell->tab_contents(); | 348 return shell->tab_contents(); |
| 344 } | 349 } |
| 345 #endif | 350 #endif |
| 346 | 351 |
| 347 } // namespace content | 352 } // namespace content |
| OLD | NEW |