Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: content/public/browser/content_browser_client.cc

Issue 1851213002: Remove sandbox on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nacl compile issues Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/common/sandbox_init.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/common/sandbox_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698