| 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 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 // Registers Mojo applications to be loaded out of the browser process (in | 699 // Registers Mojo applications to be loaded out of the browser process (in |
| 700 // a utility process) without the sandbox. | 700 // a utility process) without the sandbox. |
| 701 // | 701 // |
| 702 // WARNING: This path is NOT recommended! If a Mojo application needs a | 702 // WARNING: This path is NOT recommended! If a Mojo application needs a |
| 703 // service that is only available out of the sandbox, it could ask the browser | 703 // service that is only available out of the sandbox, it could ask the browser |
| 704 // process to provide it (e.g. through OverrideFrameMojoShellServices()). Only | 704 // process to provide it (e.g. through OverrideFrameMojoShellServices()). Only |
| 705 // use this method when that approach does not work. | 705 // use this method when that approach does not work. |
| 706 virtual void RegisterUnsandboxedOutOfProcessMojoApplications( | 706 virtual void RegisterUnsandboxedOutOfProcessMojoApplications( |
| 707 OutOfProcessMojoApplicationMap* apps) {} | 707 OutOfProcessMojoApplicationMap* apps) {} |
| 708 | 708 |
| 709 // A map of Mojo application names to corresponding manifest contents. | 709 // Allow the embedder to provide a dictionary loaded from a JSON file |
| 710 using MojoApplicationManifestMap = std::map<std::string, std::string>; | 710 // resembling a service manifest whose capabilities section will be merged |
| 711 | 711 // with content's own for |name|. Additional entries will be appended to their |
| 712 // Registers manifest contents for Mojo applications. | 712 // respective sections. |
| 713 // See "services/shell/manifest.json" for an example Mojo app manifest. | 713 virtual std::unique_ptr<base::Value> GetServiceManifestOverlay( |
| 714 // | 714 const std::string& name); |
| 715 // TODO(rockot): http://crbug.com/610426. Add more documentations about | |
| 716 // Mojo app manifest. | |
| 717 virtual void RegisterMojoApplicationManifests( | |
| 718 MojoApplicationManifestMap* manifests) {} | |
| 719 | 715 |
| 720 // Allows to override the visibility state of a RenderFrameHost. | 716 // Allows to override the visibility state of a RenderFrameHost. |
| 721 // |visibility_state| should not be null. It will only be set if needed. | 717 // |visibility_state| should not be null. It will only be set if needed. |
| 722 virtual void OverridePageVisibilityState( | 718 virtual void OverridePageVisibilityState( |
| 723 RenderFrameHost* render_frame_host, | 719 RenderFrameHost* render_frame_host, |
| 724 blink::WebPageVisibilityState* visibility_state) {} | 720 blink::WebPageVisibilityState* visibility_state) {} |
| 725 | 721 |
| 726 // Allows an embedder to provide its own PresentationServiceDelegate | 722 // Allows an embedder to provide its own PresentationServiceDelegate |
| 727 // implementation. Returns nullptr if unavailable. | 723 // implementation. Returns nullptr if unavailable. |
| 728 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( | 724 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 791 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 796 // implementation. Return nullptr to disable external surface video. | 792 // implementation. Return nullptr to disable external surface video. |
| 797 virtual ExternalVideoSurfaceContainer* | 793 virtual ExternalVideoSurfaceContainer* |
| 798 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 794 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 799 #endif | 795 #endif |
| 800 }; | 796 }; |
| 801 | 797 |
| 802 } // namespace content | 798 } // namespace content |
| 803 | 799 |
| 804 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 800 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |