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