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

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

Issue 2075693002: Always use a /prefetch:# switch when launching a process on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 // Returns the AppContainer SID for the specified sandboxed process type, or 765 // Returns the AppContainer SID for the specified sandboxed process type, or
766 // empty string if this sandboxed process type does not support living inside 766 // empty string if this sandboxed process type does not support living inside
767 // an AppContainer. 767 // an AppContainer.
768 virtual base::string16 GetAppContainerSidForSandboxType( 768 virtual base::string16 GetAppContainerSidForSandboxType(
769 int sandbox_type) const; 769 int sandbox_type) const;
770 770
771 // Returns whether the Win32k lockdown process mitigation should be applied to 771 // Returns whether the Win32k lockdown process mitigation should be applied to
772 // a process hosting a plugin with the specified |mime_type|. 772 // a process hosting a plugin with the specified |mime_type|.
773 virtual bool IsWin32kLockdownEnabledForMimeType( 773 virtual bool IsWin32kLockdownEnabledForMimeType(
774 const std::string& mime_type) const; 774 const std::string& mime_type) const;
775
776 // Returns true if processes should be launched with a /prefetch:# argument.
777 // See the kPrefetchArgument* constants in content_switches.cc for details.
778 virtual bool ShouldUseWindowsPrefetchArgument() const;
779 #endif 775 #endif
780 776
781 #if defined(VIDEO_HOLE) 777 #if defined(VIDEO_HOLE)
782 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 778 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
783 // implementation. Return nullptr to disable external surface video. 779 // implementation. Return nullptr to disable external surface video.
784 virtual ExternalVideoSurfaceContainer* 780 virtual ExternalVideoSurfaceContainer*
785 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 781 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
786 #endif 782 #endif
787 }; 783 };
788 784
789 } // namespace content 785 } // namespace content
790 786
791 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 787 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/utility_process_host_impl.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698