| 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/public/browser/content_browser_client.h" | 5 #include "content/public/browser/content_browser_client.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "ui/gfx/image/image_skia.h" | 8 #include "ui/gfx/image/image_skia.h" |
| 9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 bool ContentBrowserClient::ShouldAllowOpenURL(SiteInstance* site_instance, | 59 bool ContentBrowserClient::ShouldAllowOpenURL(SiteInstance* site_instance, |
| 60 const GURL& url) { | 60 const GURL& url) { |
| 61 return true; | 61 return true; |
| 62 } | 62 } |
| 63 | 63 |
| 64 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host, | 64 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host, |
| 65 const GURL& site_url) { | 65 const GURL& site_url) { |
| 66 return true; | 66 return true; |
| 67 } | 67 } |
| 68 | 68 |
| 69 bool ContentBrowserClient::MayReuseHost(RenderProcessHost* process_host) { |
| 70 return true; |
| 71 } |
| 72 |
| 69 bool ContentBrowserClient::ShouldTryToUseExistingProcessHost( | 73 bool ContentBrowserClient::ShouldTryToUseExistingProcessHost( |
| 70 BrowserContext* browser_context, const GURL& url) { | 74 BrowserContext* browser_context, const GURL& url) { |
| 71 return false; | 75 return false; |
| 72 } | 76 } |
| 73 | 77 |
| 74 bool ContentBrowserClient::ShouldSwapBrowsingInstancesForNavigation( | 78 bool ContentBrowserClient::ShouldSwapBrowsingInstancesForNavigation( |
| 75 SiteInstance* site_instance, | 79 SiteInstance* site_instance, |
| 76 const GURL& current_url, | 80 const GURL& current_url, |
| 77 const GURL& new_url) { | 81 const GURL& new_url) { |
| 78 return false; | 82 return false; |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 | 310 |
| 307 #if defined(VIDEO_HOLE) | 311 #if defined(VIDEO_HOLE) |
| 308 ExternalVideoSurfaceContainer* | 312 ExternalVideoSurfaceContainer* |
| 309 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 313 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
| 310 WebContents* web_contents) { | 314 WebContents* web_contents) { |
| 311 return NULL; | 315 return NULL; |
| 312 } | 316 } |
| 313 #endif | 317 #endif |
| 314 | 318 |
| 315 } // namespace content | 319 } // namespace content |
| OLD | NEW |