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 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 virtual void RegisterUnsandboxedOutOfProcessServices( | 701 virtual void RegisterUnsandboxedOutOfProcessServices( |
702 OutOfProcessServiceMap* services) {} | 702 OutOfProcessServiceMap* services) {} |
703 | 703 |
704 // Allow the embedder to provide a dictionary loaded from a JSON file | 704 // Allow the embedder to provide a dictionary loaded from a JSON file |
705 // resembling a service manifest whose capabilities section will be merged | 705 // resembling a service manifest whose capabilities section will be merged |
706 // with content's own for |name|. Additional entries will be appended to their | 706 // with content's own for |name|. Additional entries will be appended to their |
707 // respective sections. | 707 // respective sections. |
708 virtual std::unique_ptr<base::Value> GetServiceManifestOverlay( | 708 virtual std::unique_ptr<base::Value> GetServiceManifestOverlay( |
709 const std::string& name); | 709 const std::string& name); |
710 | 710 |
| 711 struct ServiceManifestInfo { |
| 712 // The name of the service. |
| 713 std::string name; |
| 714 |
| 715 // The resource ID of the manifest. |
| 716 int resource_id; |
| 717 }; |
| 718 |
| 719 // Allows the embedder to provide extra service manifests to be registered |
| 720 // with the service manager context. |
| 721 virtual std::vector<ServiceManifestInfo> GetExtraServiceManifests(); |
| 722 |
711 // Allows to override the visibility state of a RenderFrameHost. | 723 // Allows to override the visibility state of a RenderFrameHost. |
712 // |visibility_state| should not be null. It will only be set if needed. | 724 // |visibility_state| should not be null. It will only be set if needed. |
713 virtual void OverridePageVisibilityState( | 725 virtual void OverridePageVisibilityState( |
714 RenderFrameHost* render_frame_host, | 726 RenderFrameHost* render_frame_host, |
715 blink::WebPageVisibilityState* visibility_state) {} | 727 blink::WebPageVisibilityState* visibility_state) {} |
716 | 728 |
717 // Allows an embedder to provide its own PresentationServiceDelegate | 729 // Allows an embedder to provide its own PresentationServiceDelegate |
718 // implementation. Returns nullptr if unavailable. | 730 // implementation. Returns nullptr if unavailable. |
719 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( | 731 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( |
720 WebContents* web_contents); | 732 WebContents* web_contents); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 // by |render_frame_host|. This may be called multiple times if there is more | 801 // by |render_frame_host|. This may be called multiple times if there is more |
790 // than one source candidate in the same render frame. | 802 // than one source candidate in the same render frame. |
791 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, | 803 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, |
792 media::mojom::RemotingSourcePtr source, | 804 media::mojom::RemotingSourcePtr source, |
793 media::mojom::RemoterRequest request) {} | 805 media::mojom::RemoterRequest request) {} |
794 }; | 806 }; |
795 | 807 |
796 } // namespace content | 808 } // namespace content |
797 | 809 |
798 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 810 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |