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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 content::FileDescriptorInfo* mappings) {} | 724 content::FileDescriptorInfo* mappings) {} |
725 #endif // defined(OS_ANDROID) | 725 #endif // defined(OS_ANDROID) |
726 | 726 |
727 #if defined(OS_WIN) | 727 #if defined(OS_WIN) |
728 // Returns the name of the dll that contains cursors and other resources. | 728 // Returns the name of the dll that contains cursors and other resources. |
729 virtual const wchar_t* GetResourceDllName(); | 729 virtual const wchar_t* GetResourceDllName(); |
730 | 730 |
731 // This is called on the PROCESS_LAUNCHER thread before the renderer process | 731 // This is called on the PROCESS_LAUNCHER thread before the renderer process |
732 // is launched. It gives the embedder a chance to add loosen the sandbox | 732 // is launched. It gives the embedder a chance to add loosen the sandbox |
733 // policy. | 733 // policy. |
734 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, | 734 virtual bool PreSpawnRenderer(sandbox::TargetPolicy* policy); |
735 bool* success) {} | |
736 | 735 |
737 // Returns the AppContainer SID for the specified sandboxed process type, or | 736 // Returns the AppContainer SID for the specified sandboxed process type, or |
738 // empty string if this sandboxed process type does not support living inside | 737 // empty string if this sandboxed process type does not support living inside |
739 // an AppContainer. | 738 // an AppContainer. |
740 virtual base::string16 GetAppContainerSidForSandboxType( | 739 virtual base::string16 GetAppContainerSidForSandboxType( |
741 int sandbox_type) const; | 740 int sandbox_type) const; |
742 #endif | 741 #endif |
743 | 742 |
744 #if defined(VIDEO_HOLE) | 743 #if defined(VIDEO_HOLE) |
745 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 744 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
746 // implementation. Return nullptr to disable external surface video. | 745 // implementation. Return nullptr to disable external surface video. |
747 virtual ExternalVideoSurfaceContainer* | 746 virtual ExternalVideoSurfaceContainer* |
748 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 747 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
749 #endif | 748 #endif |
750 }; | 749 }; |
751 | 750 |
752 } // namespace content | 751 } // namespace content |
753 | 752 |
754 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 753 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |