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

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

Issue 1612663002: Use a valid /prefetch argument when launching a process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bit
Patch Set: rebase + prefetch argument for crashpad Created 4 years, 10 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
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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" 411 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-"
412 L"924012148-129201922"); 412 L"924012148-129201922");
413 } 413 }
414 414
415 bool ContentBrowserClient::IsWin32kLockdownEnabledForMimeType( 415 bool ContentBrowserClient::IsWin32kLockdownEnabledForMimeType(
416 const std::string& mime_type) const { 416 const std::string& mime_type) const {
417 // TODO(wfh): Enable this by default once Win32k lockdown for PPAPI processes 417 // TODO(wfh): Enable this by default once Win32k lockdown for PPAPI processes
418 // is enabled by default in Chrome. See crbug.com/523278. 418 // is enabled by default in Chrome. See crbug.com/523278.
419 return false; 419 return false;
420 } 420 }
421 #endif 421
422 bool ContentBrowserClient::ShouldUseWindowsPrefetchArgument() const {
423 return true;
424 }
425 #endif // defined(OS_WIN)
422 426
423 #if defined(VIDEO_HOLE) 427 #if defined(VIDEO_HOLE)
424 ExternalVideoSurfaceContainer* 428 ExternalVideoSurfaceContainer*
425 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 429 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
426 WebContents* web_contents) { 430 WebContents* web_contents) {
427 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; 431 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348.";
428 return nullptr; 432 return nullptr;
429 } 433 }
430 #endif 434 #endif
431 435
432 } // namespace content 436 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698