| 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 UkmRecorder; |
| 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 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 // embedder, for the |source| that lives in the render frame represented | 797 // embedder, for the |source| that lives in the render frame represented |
| 794 // by |render_frame_host|. This may be called multiple times if there is more | 798 // by |render_frame_host|. This may be called multiple times if there is more |
| 795 // than one source candidate in the same render frame. | 799 // than one source candidate in the same render frame. |
| 796 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, | 800 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, |
| 797 media::mojom::RemotingSourcePtr source, | 801 media::mojom::RemotingSourcePtr source, |
| 798 media::mojom::RemoterRequest request) {} | 802 media::mojom::RemoterRequest request) {} |
| 799 | 803 |
| 800 // Returns the RapporService from the browser process. | 804 // Returns the RapporService from the browser process. |
| 801 virtual ::rappor::RapporService* GetRapporService(); | 805 virtual ::rappor::RapporService* GetRapporService(); |
| 802 | 806 |
| 807 // Returns the UkmRecorder from the browser process. |
| 808 virtual ::ukm::UkmRecorder* GetUkmRecorder(); |
| 809 |
| 803 // Provides parameters for initializing the global task scheduler. Default | 810 // Provides parameters for initializing the global task scheduler. Default |
| 804 // params are used if this returns nullptr. | 811 // params are used if this returns nullptr. |
| 805 virtual std::unique_ptr<base::TaskScheduler::InitParams> | 812 virtual std::unique_ptr<base::TaskScheduler::InitParams> |
| 806 GetTaskSchedulerInitParams(); | 813 GetTaskSchedulerInitParams(); |
| 807 | 814 |
| 808 // Performs any necessary PostTask API redirection to the task scheduler. | 815 // Performs any necessary PostTask API redirection to the task scheduler. |
| 809 virtual void PerformExperimentalTaskSchedulerRedirections() {} | 816 virtual void PerformExperimentalTaskSchedulerRedirections() {} |
| 810 | 817 |
| 811 // Returns true if the DOMStorageTaskRunner should be redirected to the task | 818 // Returns true if the DOMStorageTaskRunner should be redirected to the task |
| 812 // scheduler. | 819 // scheduler. |
| 813 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 820 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
| 814 | 821 |
| 815 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 822 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
| 816 // this platform will experimentally be redirected to TaskScheduler. | 823 // this platform will experimentally be redirected to TaskScheduler. |
| 817 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 824 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
| 818 }; | 825 }; |
| 819 | 826 |
| 820 } // namespace content | 827 } // namespace content |
| 821 | 828 |
| 822 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 829 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |