| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 class URLRequest; | 80 class URLRequest; |
| 81 class URLRequestContext; | 81 class URLRequestContext; |
| 82 class X509Certificate; | 82 class X509Certificate; |
| 83 typedef std::vector<scoped_refptr<X509Certificate>> CertificateList; | 83 typedef std::vector<scoped_refptr<X509Certificate>> CertificateList; |
| 84 } | 84 } |
| 85 | 85 |
| 86 namespace rappor { | 86 namespace rappor { |
| 87 class RapporService; | 87 class RapporService; |
| 88 } | 88 } |
| 89 | 89 |
| 90 namespace ukm { |
| 91 class UkmService; |
| 92 } |
| 93 |
| 90 namespace sandbox { | 94 namespace sandbox { |
| 91 class TargetPolicy; | 95 class TargetPolicy; |
| 92 } | 96 } |
| 93 | 97 |
| 94 namespace ui { | 98 namespace ui { |
| 95 class SelectFilePolicy; | 99 class SelectFilePolicy; |
| 96 } | 100 } |
| 97 | 101 |
| 98 namespace url { | 102 namespace url { |
| 99 class Origin; | 103 class Origin; |
| (...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 // embedder, for the |source| that lives in the render frame represented | 817 // embedder, for the |source| that lives in the render frame represented |
| 814 // by |render_frame_host|. This may be called multiple times if there is more | 818 // by |render_frame_host|. This may be called multiple times if there is more |
| 815 // than one source candidate in the same render frame. | 819 // than one source candidate in the same render frame. |
| 816 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, | 820 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, |
| 817 media::mojom::RemotingSourcePtr source, | 821 media::mojom::RemotingSourcePtr source, |
| 818 media::mojom::RemoterRequest request) {} | 822 media::mojom::RemoterRequest request) {} |
| 819 | 823 |
| 820 // Returns the RapporService from the browser process. | 824 // Returns the RapporService from the browser process. |
| 821 virtual ::rappor::RapporService* GetRapporService(); | 825 virtual ::rappor::RapporService* GetRapporService(); |
| 822 | 826 |
| 827 // Returns the UKMService from the browser process. |
| 828 virtual ::ukm::UkmService* GetUkmService(); |
| 829 |
| 823 // Provides parameters for initializing the global task scheduler. Default | 830 // Provides parameters for initializing the global task scheduler. Default |
| 824 // params are used if this returns nullptr. | 831 // params are used if this returns nullptr. |
| 825 virtual std::unique_ptr<base::TaskScheduler::InitParams> | 832 virtual std::unique_ptr<base::TaskScheduler::InitParams> |
| 826 GetTaskSchedulerInitParams(); | 833 GetTaskSchedulerInitParams(); |
| 827 | 834 |
| 828 // Performs any necessary PostTask API redirection to the task scheduler. | 835 // Performs any necessary PostTask API redirection to the task scheduler. |
| 829 virtual void PerformExperimentalTaskSchedulerRedirections() {} | 836 virtual void PerformExperimentalTaskSchedulerRedirections() {} |
| 830 | 837 |
| 831 // Returns true if the DOMStorageTaskRunner should be redirected to the task | 838 // Returns true if the DOMStorageTaskRunner should be redirected to the task |
| 832 // scheduler. | 839 // scheduler. |
| 833 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 840 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
| 834 | 841 |
| 835 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 842 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
| 836 // this platform will experimentally be redirected to TaskScheduler. | 843 // this platform will experimentally be redirected to TaskScheduler. |
| 837 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 844 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
| 838 }; | 845 }; |
| 839 | 846 |
| 840 } // namespace content | 847 } // namespace content |
| 841 | 848 |
| 842 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 849 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |