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 "base/guid.h" | 8 #include "base/guid.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "content/public/browser/client_certificate_delegate.h" | 10 #include "content/public/browser/client_certificate_delegate.h" |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" | 416 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" |
417 L"924012148-129201922"); | 417 L"924012148-129201922"); |
418 } | 418 } |
419 | 419 |
420 bool ContentBrowserClient::IsWin32kLockdownEnabledForMimeType( | 420 bool ContentBrowserClient::IsWin32kLockdownEnabledForMimeType( |
421 const std::string& mime_type) const { | 421 const std::string& mime_type) const { |
422 // TODO(wfh): Enable this by default once Win32k lockdown for PPAPI processes | 422 // TODO(wfh): Enable this by default once Win32k lockdown for PPAPI processes |
423 // is enabled by default in Chrome. See crbug.com/523278. | 423 // is enabled by default in Chrome. See crbug.com/523278. |
424 return false; | 424 return false; |
425 } | 425 } |
426 | |
427 bool ContentBrowserClient::ShouldUseWindowsPrefetchArgument() const { | |
428 return true; | |
429 } | |
430 #endif // defined(OS_WIN) | 426 #endif // defined(OS_WIN) |
431 | 427 |
432 #if defined(VIDEO_HOLE) | 428 #if defined(VIDEO_HOLE) |
433 ExternalVideoSurfaceContainer* | 429 ExternalVideoSurfaceContainer* |
434 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 430 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
435 WebContents* web_contents) { | 431 WebContents* web_contents) { |
436 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; | 432 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; |
437 return nullptr; | 433 return nullptr; |
438 } | 434 } |
439 #endif | 435 #endif |
440 | 436 |
441 } // namespace content | 437 } // namespace content |
OLD | NEW |