Chromium Code Reviews| 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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 633 | 633 |
| 634 #if defined(OS_WIN) | 634 #if defined(OS_WIN) |
| 635 // Returns the name of the dll that contains cursors and other resources. | 635 // Returns the name of the dll that contains cursors and other resources. |
| 636 virtual const wchar_t* GetResourceDllName(); | 636 virtual const wchar_t* GetResourceDllName(); |
| 637 | 637 |
| 638 // This is called on the PROCESS_LAUNCHER thread before the renderer process | 638 // This is called on the PROCESS_LAUNCHER thread before the renderer process |
| 639 // is launched. It gives the embedder a chance to add loosen the sandbox | 639 // is launched. It gives the embedder a chance to add loosen the sandbox |
| 640 // policy. | 640 // policy. |
| 641 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, | 641 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, |
| 642 bool* success) {} | 642 bool* success) {} |
| 643 | |
| 644 // Returns the App Container SID for the specified sandboxed process type, or | |
| 645 // empty string if this sandboxed process type does not support living inside | |
| 646 // an App Container. | |
| 647 virtual base::string16 GetAppContainerSidForSandboxType( | |
|
nasko
2015/06/19 12:18:19
I don't see an implementation of this interface fo
Will Harris
2015/06/23 16:21:11
There's quite a few subclasses of ContentBrowserCl
nasko
2015/06/24 08:04:08
Indeed, that sounds like the right approach to me.
Will Harris
2015/06/24 11:37:09
Done.
| |
| 648 int sandbox_type) const; | |
| 643 #endif | 649 #endif |
| 644 | 650 |
| 645 #if defined(VIDEO_HOLE) | 651 #if defined(VIDEO_HOLE) |
| 646 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 652 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 647 // implementation. Return nullptr to disable external surface video. | 653 // implementation. Return nullptr to disable external surface video. |
| 648 virtual ExternalVideoSurfaceContainer* | 654 virtual ExternalVideoSurfaceContainer* |
| 649 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 655 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 650 #endif | 656 #endif |
| 651 }; | 657 }; |
| 652 | 658 |
| 653 } // namespace content | 659 } // namespace content |
| 654 | 660 |
| 655 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 661 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |