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 "base/guid.h" | 8 #include "base/guid.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "content/public/browser/client_certificate_delegate.h" | 10 #include "content/public/browser/client_certificate_delegate.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 bool ContentBrowserClient::IsHandledURL(const GURL& url) { | 66 bool ContentBrowserClient::IsHandledURL(const GURL& url) { |
67 return false; | 67 return false; |
68 } | 68 } |
69 | 69 |
70 bool ContentBrowserClient::CanCommitURL(RenderProcessHost* process_host, | 70 bool ContentBrowserClient::CanCommitURL(RenderProcessHost* process_host, |
71 const GURL& site_url) { | 71 const GURL& site_url) { |
72 return true; | 72 return true; |
73 } | 73 } |
74 | 74 |
75 bool ContentBrowserClient::IsIllegalOrigin(ResourceContext* resource_context, | |
76 int child_process_id, | |
77 const GURL& origin) { | |
78 return false; | |
79 } | |
80 | |
81 bool ContentBrowserClient::ShouldAllowOpenURL(SiteInstance* site_instance, | 75 bool ContentBrowserClient::ShouldAllowOpenURL(SiteInstance* site_instance, |
82 const GURL& url) { | 76 const GURL& url) { |
83 return true; | 77 return true; |
84 } | 78 } |
85 | 79 |
86 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host, | 80 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host, |
87 const GURL& site_url) { | 81 const GURL& site_url) { |
88 return true; | 82 return true; |
89 } | 83 } |
90 | 84 |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 #if defined(VIDEO_HOLE) | 416 #if defined(VIDEO_HOLE) |
423 ExternalVideoSurfaceContainer* | 417 ExternalVideoSurfaceContainer* |
424 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 418 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
425 WebContents* web_contents) { | 419 WebContents* web_contents) { |
426 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; | 420 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; |
427 return nullptr; | 421 return nullptr; |
428 } | 422 } |
429 #endif | 423 #endif |
430 | 424 |
431 } // namespace content | 425 } // namespace content |
OLD | NEW |