| 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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 using MojoApplicationManifestMap = std::map<std::string, std::string>; | 710 using MojoApplicationManifestMap = std::map<std::string, std::string>; |
| 711 | 711 |
| 712 // Registers manifest contents for Mojo applications. | 712 // Registers manifest contents for Mojo applications. |
| 713 // See "services/shell/manifest.json" for an example Mojo app manifest. | 713 // See "services/shell/manifest.json" for an example Mojo app manifest. |
| 714 // | 714 // |
| 715 // TODO(rockot): http://crbug.com/610426. Add more documentations about | 715 // TODO(rockot): http://crbug.com/610426. Add more documentations about |
| 716 // Mojo app manifest. | 716 // Mojo app manifest. |
| 717 virtual void RegisterMojoApplicationManifests( | 717 virtual void RegisterMojoApplicationManifests( |
| 718 MojoApplicationManifestMap* manifests) {} | 718 MojoApplicationManifestMap* manifests) {} |
| 719 | 719 |
| 720 // Allow the embedder to provide a dictionary loaded from a JSON file | |
| 721 // resembling a service manifest whose capabilities section will be merged | |
| 722 // with content's own for |name|. Additional entries will be appended to their | |
| 723 // respective sections. | |
| 724 virtual std::unique_ptr<base::Value> GetServiceManifestOverlay( | |
| 725 const std::string& name); | |
| 726 | |
| 727 // Allows to override the visibility state of a RenderFrameHost. | 720 // Allows to override the visibility state of a RenderFrameHost. |
| 728 // |visibility_state| should not be null. It will only be set if needed. | 721 // |visibility_state| should not be null. It will only be set if needed. |
| 729 virtual void OverridePageVisibilityState( | 722 virtual void OverridePageVisibilityState( |
| 730 RenderFrameHost* render_frame_host, | 723 RenderFrameHost* render_frame_host, |
| 731 blink::WebPageVisibilityState* visibility_state) {} | 724 blink::WebPageVisibilityState* visibility_state) {} |
| 732 | 725 |
| 733 // Allows an embedder to provide its own PresentationServiceDelegate | 726 // Allows an embedder to provide its own PresentationServiceDelegate |
| 734 // implementation. Returns nullptr if unavailable. | 727 // implementation. Returns nullptr if unavailable. |
| 735 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( | 728 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( |
| 736 WebContents* web_contents); | 729 WebContents* web_contents); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 795 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 803 // implementation. Return nullptr to disable external surface video. | 796 // implementation. Return nullptr to disable external surface video. |
| 804 virtual ExternalVideoSurfaceContainer* | 797 virtual ExternalVideoSurfaceContainer* |
| 805 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 798 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 806 #endif | 799 #endif |
| 807 }; | 800 }; |
| 808 | 801 |
| 809 } // namespace content | 802 } // namespace content |
| 810 | 803 |
| 811 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 804 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |