| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 ResourceContext* context) { | 219 ResourceContext* context) { |
| 220 return true; | 220 return true; |
| 221 } | 221 } |
| 222 #endif // defined(ENABLE_WEBRTC) | 222 #endif // defined(ENABLE_WEBRTC) |
| 223 | 223 |
| 224 bool ContentBrowserClient::AllowKeygen(const GURL& url, | 224 bool ContentBrowserClient::AllowKeygen(const GURL& url, |
| 225 content::ResourceContext* context) { | 225 content::ResourceContext* context) { |
| 226 return true; | 226 return true; |
| 227 } | 227 } |
| 228 | 228 |
| 229 bool ContentBrowserClient::AllowWebBluetooth( | 229 ContentBrowserClient::AllowWebBluetoothResult |
| 230 ContentBrowserClient::AllowWebBluetooth( |
| 230 content::BrowserContext* browser_context, | 231 content::BrowserContext* browser_context, |
| 231 const url::Origin& requesting_origin, | 232 const url::Origin& requesting_origin, |
| 232 const url::Origin& embedding_origin) { | 233 const url::Origin& embedding_origin) { |
| 233 return true; | 234 return AllowWebBluetoothResult::ALLOW; |
| 234 } | 235 } |
| 235 | 236 |
| 236 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { | 237 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { |
| 237 return nullptr; | 238 return nullptr; |
| 238 } | 239 } |
| 239 | 240 |
| 240 scoped_ptr<storage::QuotaEvictionPolicy> | 241 scoped_ptr<storage::QuotaEvictionPolicy> |
| 241 ContentBrowserClient::GetTemporaryStorageEvictionPolicy( | 242 ContentBrowserClient::GetTemporaryStorageEvictionPolicy( |
| 242 content::BrowserContext* context) { | 243 content::BrowserContext* context) { |
| 243 return scoped_ptr<storage::QuotaEvictionPolicy>(); | 244 return scoped_ptr<storage::QuotaEvictionPolicy>(); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 #if defined(VIDEO_HOLE) | 438 #if defined(VIDEO_HOLE) |
| 438 ExternalVideoSurfaceContainer* | 439 ExternalVideoSurfaceContainer* |
| 439 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 440 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
| 440 WebContents* web_contents) { | 441 WebContents* web_contents) { |
| 441 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; | 442 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; |
| 442 return nullptr; | 443 return nullptr; |
| 443 } | 444 } |
| 444 #endif | 445 #endif |
| 445 | 446 |
| 446 } // namespace content | 447 } // namespace content |
| OLD | NEW |