| 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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 ContentBrowserClient::CreateThrottlesForNavigation( | 393 ContentBrowserClient::CreateThrottlesForNavigation( |
| 394 NavigationHandle* navigation_handle) { | 394 NavigationHandle* navigation_handle) { |
| 395 return ScopedVector<NavigationThrottle>(); | 395 return ScopedVector<NavigationThrottle>(); |
| 396 } | 396 } |
| 397 | 397 |
| 398 #if defined(OS_WIN) | 398 #if defined(OS_WIN) |
| 399 const wchar_t* ContentBrowserClient::GetResourceDllName() { | 399 const wchar_t* ContentBrowserClient::GetResourceDllName() { |
| 400 return nullptr; | 400 return nullptr; |
| 401 } | 401 } |
| 402 | 402 |
| 403 bool ContentBrowserClient::PreSpawnRenderer(sandbox::TargetPolicy* policy) { | |
| 404 return true; | |
| 405 } | |
| 406 | |
| 407 base::string16 ContentBrowserClient::GetAppContainerSidForSandboxType( | 403 base::string16 ContentBrowserClient::GetAppContainerSidForSandboxType( |
| 408 int sandbox_type) const { | 404 int sandbox_type) const { |
| 409 // Embedders should override this method and return different SIDs for each | 405 // Embedders should override this method and return different SIDs for each |
| 410 // sandbox type. Note: All content level tests will run child processes in the | 406 // sandbox type. Note: All content level tests will run child processes in the |
| 411 // same AppContainer. | 407 // same AppContainer. |
| 412 return base::string16( | 408 return base::string16( |
| 413 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" | 409 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" |
| 414 L"924012148-129201922"); | 410 L"924012148-129201922"); |
| 415 } | 411 } |
| 416 | 412 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 429 #if defined(VIDEO_HOLE) | 425 #if defined(VIDEO_HOLE) |
| 430 ExternalVideoSurfaceContainer* | 426 ExternalVideoSurfaceContainer* |
| 431 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 427 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
| 432 WebContents* web_contents) { | 428 WebContents* web_contents) { |
| 433 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; | 429 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; |
| 434 return nullptr; | 430 return nullptr; |
| 435 } | 431 } |
| 436 #endif | 432 #endif |
| 437 | 433 |
| 438 } // namespace content | 434 } // namespace content |
| OLD | NEW |