Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(691)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 2799433002: Use TaskScheduler::InitParams to initialize TaskScheduler in browser process. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 #if defined(OS_POSIX) 44 #if defined(OS_POSIX)
45 #include "content/public/browser/file_descriptor_info.h" 45 #include "content/public/browser/file_descriptor_info.h"
46 #endif 46 #endif
47 47
48 class GURL; 48 class GURL;
49 49
50 namespace base { 50 namespace base {
51 class CommandLine; 51 class CommandLine;
52 class FilePath; 52 class FilePath;
53 class SchedulerWorkerPoolParams;
54 } 53 }
55 54
56 namespace gfx { 55 namespace gfx {
57 class ImageSkia; 56 class ImageSkia;
58 } 57 }
59 58
60 namespace gpu { 59 namespace gpu {
61 class GpuChannelEstablishFactory; 60 class GpuChannelEstablishFactory;
62 } 61 }
63 62
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 // embedder, for the |source| that lives in the render frame represented 805 // embedder, for the |source| that lives in the render frame represented
807 // by |render_frame_host|. This may be called multiple times if there is more 806 // by |render_frame_host|. This may be called multiple times if there is more
808 // than one source candidate in the same render frame. 807 // than one source candidate in the same render frame.
809 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, 808 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host,
810 media::mojom::RemotingSourcePtr source, 809 media::mojom::RemotingSourcePtr source,
811 media::mojom::RemoterRequest request) {} 810 media::mojom::RemoterRequest request) {}
812 811
813 // Returns the RapporService from the browser process. 812 // Returns the RapporService from the browser process.
814 virtual ::rappor::RapporService* GetRapporService(); 813 virtual ::rappor::RapporService* GetRapporService();
815 814
816 // Provides parameters for initializing the global task scheduler. If 815 // Provides parameters for initializing the global task scheduler. Default
817 // |params_vector| is empty, default parameters are used. 816 // params are used if this returns nullptr.
818 virtual void GetTaskSchedulerInitializationParams( 817 virtual std::unique_ptr<base::TaskScheduler::InitParams>
819 std::vector<base::SchedulerWorkerPoolParams>* params_vector, 818 GetTaskSchedulerInitParams();
820 base::TaskScheduler::WorkerPoolIndexForTraitsCallback*
821 index_to_traits_callback) {}
822 819
823 // Performs any necessary PostTask API redirection to the task scheduler. 820 // Performs any necessary PostTask API redirection to the task scheduler.
824 virtual void PerformExperimentalTaskSchedulerRedirections() {} 821 virtual void PerformExperimentalTaskSchedulerRedirections() {}
825 822
826 // Returns true if the DOMStorageTaskRunner should be redirected to the task 823 // Returns true if the DOMStorageTaskRunner should be redirected to the task
827 // scheduler. 824 // scheduler.
828 virtual bool ShouldRedirectDOMStorageTaskRunner(); 825 virtual bool ShouldRedirectDOMStorageTaskRunner();
829 826
830 // If this returns true, all BrowserThreads (but UI/IO) that support it on 827 // If this returns true, all BrowserThreads (but UI/IO) that support it on
831 // this platform will experimentally be redirected to TaskScheduler. 828 // this platform will experimentally be redirected to TaskScheduler.
832 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); 829 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler();
833 }; 830 };
834 831
835 } // namespace content 832 } // namespace content
836 833
837 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 834 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698