| 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 "storage/browser/quota/quota_manager.h" | 10 #include "storage/browser/quota/quota_manager.h" |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 ContentBrowserClient::CreateThrottlesForNavigation( | 380 ContentBrowserClient::CreateThrottlesForNavigation( |
| 381 NavigationHandle* navigation_handle) { | 381 NavigationHandle* navigation_handle) { |
| 382 return ScopedVector<NavigationThrottle>(); | 382 return ScopedVector<NavigationThrottle>(); |
| 383 } | 383 } |
| 384 | 384 |
| 385 #if defined(OS_WIN) | 385 #if defined(OS_WIN) |
| 386 const wchar_t* ContentBrowserClient::GetResourceDllName() { | 386 const wchar_t* ContentBrowserClient::GetResourceDllName() { |
| 387 return nullptr; | 387 return nullptr; |
| 388 } | 388 } |
| 389 | 389 |
| 390 bool ContentBrowserClient::PreSpawnRenderer(sandbox::TargetPolicy* policy) { |
| 391 return true; |
| 392 } |
| 393 |
| 390 base::string16 ContentBrowserClient::GetAppContainerSidForSandboxType( | 394 base::string16 ContentBrowserClient::GetAppContainerSidForSandboxType( |
| 391 int sandbox_type) const { | 395 int sandbox_type) const { |
| 392 // Embedders should override this method and return different SIDs for each | 396 // Embedders should override this method and return different SIDs for each |
| 393 // sandbox type. Note: All content level tests will run child processes in the | 397 // sandbox type. Note: All content level tests will run child processes in the |
| 394 // same AppContainer. | 398 // same AppContainer. |
| 395 return base::string16( | 399 return base::string16( |
| 396 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" | 400 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" |
| 397 L"924012148-129201922"); | 401 L"924012148-129201922"); |
| 398 } | 402 } |
| 399 #endif | 403 #endif |
| 400 | 404 |
| 401 #if defined(VIDEO_HOLE) | 405 #if defined(VIDEO_HOLE) |
| 402 ExternalVideoSurfaceContainer* | 406 ExternalVideoSurfaceContainer* |
| 403 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 407 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
| 404 WebContents* web_contents) { | 408 WebContents* web_contents) { |
| 405 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; | 409 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; |
| 406 return nullptr; | 410 return nullptr; |
| 407 } | 411 } |
| 408 #endif | 412 #endif |
| 409 | 413 |
| 410 } // namespace content | 414 } // namespace content |
| OLD | NEW |