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 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 | 627 |
628 #if defined(OS_WIN) | 628 #if defined(OS_WIN) |
629 // Returns the name of the dll that contains cursors and other resources. | 629 // Returns the name of the dll that contains cursors and other resources. |
630 virtual const wchar_t* GetResourceDllName(); | 630 virtual const wchar_t* GetResourceDllName(); |
631 | 631 |
632 // This is called on the PROCESS_LAUNCHER thread before the renderer process | 632 // This is called on the PROCESS_LAUNCHER thread before the renderer process |
633 // is launched. It gives the embedder a chance to add loosen the sandbox | 633 // is launched. It gives the embedder a chance to add loosen the sandbox |
634 // policy. | 634 // policy. |
635 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, | 635 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, |
636 bool* success) {} | 636 bool* success) {} |
| 637 |
| 638 // Returns the AppContainer SID for the specified sandboxed process type, or |
| 639 // empty string if this sandboxed process type does not support living inside |
| 640 // an AppContainer. |
| 641 virtual base::string16 GetAppContainerSidForSandboxType( |
| 642 int sandbox_type) const; |
637 #endif | 643 #endif |
638 | 644 |
639 #if defined(VIDEO_HOLE) | 645 #if defined(VIDEO_HOLE) |
640 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 646 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
641 // implementation. Return nullptr to disable external surface video. | 647 // implementation. Return nullptr to disable external surface video. |
642 virtual ExternalVideoSurfaceContainer* | 648 virtual ExternalVideoSurfaceContainer* |
643 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 649 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
644 #endif | 650 #endif |
645 }; | 651 }; |
646 | 652 |
647 } // namespace content | 653 } // namespace content |
648 | 654 |
649 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 655 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |