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 "content/public/browser/client_certificate_delegate.h" | 8 #include "content/public/browser/client_certificate_delegate.h" |
9 #include "content/public/common/sandbox_type.h" | 9 #include "content/public/common/sandbox_type.h" |
10 #include "ui/gfx/image/image_skia.h" | 10 #include "ui/gfx/image/image_skia.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 bool ContentBrowserClient::IsHandledURL(const GURL& url) { | 59 bool ContentBrowserClient::IsHandledURL(const GURL& url) { |
60 return false; | 60 return false; |
61 } | 61 } |
62 | 62 |
63 bool ContentBrowserClient::CanCommitURL(RenderProcessHost* process_host, | 63 bool ContentBrowserClient::CanCommitURL(RenderProcessHost* process_host, |
64 const GURL& site_url) { | 64 const GURL& site_url) { |
65 return true; | 65 return true; |
66 } | 66 } |
67 | 67 |
| 68 bool ContentBrowserClient::IsIllegalOrigin(ResourceContext* resource_context, |
| 69 int child_process_id, |
| 70 const GURL& origin) { |
| 71 return false; |
| 72 } |
| 73 |
68 bool ContentBrowserClient::ShouldAllowOpenURL(SiteInstance* site_instance, | 74 bool ContentBrowserClient::ShouldAllowOpenURL(SiteInstance* site_instance, |
69 const GURL& url) { | 75 const GURL& url) { |
70 return true; | 76 return true; |
71 } | 77 } |
72 | 78 |
73 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host, | 79 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host, |
74 const GURL& site_url) { | 80 const GURL& site_url) { |
75 return true; | 81 return true; |
76 } | 82 } |
77 | 83 |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 #if defined(VIDEO_HOLE) | 369 #if defined(VIDEO_HOLE) |
364 ExternalVideoSurfaceContainer* | 370 ExternalVideoSurfaceContainer* |
365 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 371 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
366 WebContents* web_contents) { | 372 WebContents* web_contents) { |
367 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; | 373 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; |
368 return nullptr; | 374 return nullptr; |
369 } | 375 } |
370 #endif | 376 #endif |
371 | 377 |
372 } // namespace content | 378 } // namespace content |
OLD | NEW |