| 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 "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/public/browser/client_certificate_delegate.h" | 9 #include "content/public/browser/client_certificate_delegate.h" |
| 10 #include "content/public/common/sandbox_type.h" | 10 #include "content/public/common/sandbox_type.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 bool ContentBrowserClient::ShouldLockToOrigin(BrowserContext* browser_context, | 55 bool ContentBrowserClient::ShouldLockToOrigin(BrowserContext* browser_context, |
| 56 const GURL& effective_url) { | 56 const GURL& effective_url) { |
| 57 return true; | 57 return true; |
| 58 } | 58 } |
| 59 | 59 |
| 60 bool ContentBrowserClient::LogWebUIUrl(const GURL& web_ui_url) const { | 60 bool ContentBrowserClient::LogWebUIUrl(const GURL& web_ui_url) const { |
| 61 return false; | 61 return false; |
| 62 } | 62 } |
| 63 | 63 |
| 64 net::URLRequestContextGetter* ContentBrowserClient::CreateRequestContext( | |
| 65 BrowserContext* browser_context, | |
| 66 ProtocolHandlerMap* protocol_handlers, | |
| 67 URLRequestInterceptorScopedVector request_interceptors) { | |
| 68 return nullptr; | |
| 69 } | |
| 70 | |
| 71 net::URLRequestContextGetter* | |
| 72 ContentBrowserClient::CreateRequestContextForStoragePartition( | |
| 73 BrowserContext* browser_context, | |
| 74 const base::FilePath& partition_path, | |
| 75 bool in_memory, | |
| 76 ProtocolHandlerMap* protocol_handlers, | |
| 77 URLRequestInterceptorScopedVector request_interceptors) { | |
| 78 return nullptr; | |
| 79 } | |
| 80 | |
| 81 bool ContentBrowserClient::IsHandledURL(const GURL& url) { | 64 bool ContentBrowserClient::IsHandledURL(const GURL& url) { |
| 82 return false; | 65 return false; |
| 83 } | 66 } |
| 84 | 67 |
| 85 bool ContentBrowserClient::CanCommitURL(RenderProcessHost* process_host, | 68 bool ContentBrowserClient::CanCommitURL(RenderProcessHost* process_host, |
| 86 const GURL& site_url) { | 69 const GURL& site_url) { |
| 87 return true; | 70 return true; |
| 88 } | 71 } |
| 89 | 72 |
| 90 bool ContentBrowserClient::IsIllegalOrigin(ResourceContext* resource_context, | 73 bool ContentBrowserClient::IsIllegalOrigin(ResourceContext* resource_context, |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 #if defined(VIDEO_HOLE) | 416 #if defined(VIDEO_HOLE) |
| 434 ExternalVideoSurfaceContainer* | 417 ExternalVideoSurfaceContainer* |
| 435 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 418 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
| 436 WebContents* web_contents) { | 419 WebContents* web_contents) { |
| 437 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; | 420 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; |
| 438 return nullptr; | 421 return nullptr; |
| 439 } | 422 } |
| 440 #endif | 423 #endif |
| 441 | 424 |
| 442 } // namespace content | 425 } // namespace content |
| OLD | NEW |