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 #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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
744 // This is called on the PROCESS_LAUNCHER thread before the renderer process | 744 // This is called on the PROCESS_LAUNCHER thread before the renderer process |
745 // is launched. It gives the embedder a chance to add loosen the sandbox | 745 // is launched. It gives the embedder a chance to add loosen the sandbox |
746 // policy. | 746 // policy. |
747 virtual bool PreSpawnRenderer(sandbox::TargetPolicy* policy); | 747 virtual bool PreSpawnRenderer(sandbox::TargetPolicy* policy); |
748 | 748 |
749 // Returns the AppContainer SID for the specified sandboxed process type, or | 749 // Returns the AppContainer SID for the specified sandboxed process type, or |
750 // empty string if this sandboxed process type does not support living inside | 750 // empty string if this sandboxed process type does not support living inside |
751 // an AppContainer. | 751 // an AppContainer. |
752 virtual base::string16 GetAppContainerSidForSandboxType( | 752 virtual base::string16 GetAppContainerSidForSandboxType( |
753 int sandbox_type) const; | 753 int sandbox_type) const; |
754 | |
755 // Returns true if processes should be launched with a /prefetch:# argument. | |
gab
2016/01/26 21:40:26
Also refer to a place where you explain the detail
fdoray
2016/01/27 20:12:19
Done.
| |
756 virtual bool ShouldUseWindowsPrefetchArgument() const; | |
754 #endif | 757 #endif |
755 | 758 |
756 #if defined(VIDEO_HOLE) | 759 #if defined(VIDEO_HOLE) |
757 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 760 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
758 // implementation. Return nullptr to disable external surface video. | 761 // implementation. Return nullptr to disable external surface video. |
759 virtual ExternalVideoSurfaceContainer* | 762 virtual ExternalVideoSurfaceContainer* |
760 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 763 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
761 #endif | 764 #endif |
762 }; | 765 }; |
763 | 766 |
764 } // namespace content | 767 } // namespace content |
765 | 768 |
766 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 769 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |