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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 virtual void RegisterUnsandboxedOutOfProcessServices( | 711 virtual void RegisterUnsandboxedOutOfProcessServices( |
712 OutOfProcessServiceMap* services) {} | 712 OutOfProcessServiceMap* services) {} |
713 | 713 |
714 // Allow the embedder to provide a dictionary loaded from a JSON file | 714 // Allow the embedder to provide a dictionary loaded from a JSON file |
715 // resembling a service manifest whose capabilities section will be merged | 715 // resembling a service manifest whose capabilities section will be merged |
716 // with content's own for |name|. Additional entries will be appended to their | 716 // with content's own for |name|. Additional entries will be appended to their |
717 // respective sections. | 717 // respective sections. |
718 virtual std::unique_ptr<base::Value> GetServiceManifestOverlay( | 718 virtual std::unique_ptr<base::Value> GetServiceManifestOverlay( |
719 const std::string& name); | 719 const std::string& name); |
720 | 720 |
| 721 struct ServiceManifestInfo { |
| 722 // The name of the service. |
| 723 std::string name; |
| 724 |
| 725 // The resource ID of the manifest. |
| 726 int resource_id; |
| 727 }; |
| 728 |
| 729 // Allows the embedder to provide extra service manifests to be registered |
| 730 // with the service manager context. |
| 731 virtual std::vector<ServiceManifestInfo> GetExtraServiceManifests(); |
| 732 |
721 // Allows to override the visibility state of a RenderFrameHost. | 733 // Allows to override the visibility state of a RenderFrameHost. |
722 // |visibility_state| should not be null. It will only be set if needed. | 734 // |visibility_state| should not be null. It will only be set if needed. |
723 virtual void OverridePageVisibilityState( | 735 virtual void OverridePageVisibilityState( |
724 RenderFrameHost* render_frame_host, | 736 RenderFrameHost* render_frame_host, |
725 blink::WebPageVisibilityState* visibility_state) {} | 737 blink::WebPageVisibilityState* visibility_state) {} |
726 | 738 |
727 // Allows an embedder to provide its own PresentationServiceDelegate | 739 // Allows an embedder to provide its own PresentationServiceDelegate |
728 // implementation. Returns nullptr if unavailable. | 740 // implementation. Returns nullptr if unavailable. |
729 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( | 741 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( |
730 WebContents* web_contents); | 742 WebContents* web_contents); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 virtual void PerformExperimentalTaskSchedulerRedirections() {} | 828 virtual void PerformExperimentalTaskSchedulerRedirections() {} |
817 | 829 |
818 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 830 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
819 // this platform will experimentally be redirected to TaskScheduler. | 831 // this platform will experimentally be redirected to TaskScheduler. |
820 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 832 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
821 }; | 833 }; |
822 | 834 |
823 } // namespace content | 835 } // namespace content |
824 | 836 |
825 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 837 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |