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

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

Issue 2539263003: Move Task Scheduler Initialization From chrome/browser to Content (Closed)
Patch Set: Rebase to bf8e2f1 Created 4 years 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') | no next file » | 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>
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <utility> 13 #include <utility>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/callback_forward.h" 16 #include "base/callback_forward.h"
17 #include "base/memory/scoped_vector.h" 17 #include "base/memory/scoped_vector.h"
18 #include "base/task_scheduler/task_scheduler.h"
18 #include "base/values.h" 19 #include "base/values.h"
19 #include "build/build_config.h" 20 #include "build/build_config.h"
20 #include "content/public/browser/certificate_request_result_type.h" 21 #include "content/public/browser/certificate_request_result_type.h"
21 #include "content/public/browser/navigation_throttle.h" 22 #include "content/public/browser/navigation_throttle.h"
22 #include "content/public/common/content_client.h" 23 #include "content/public/common/content_client.h"
23 #include "content/public/common/media_stream_request.h" 24 #include "content/public/common/media_stream_request.h"
24 #include "content/public/common/resource_type.h" 25 #include "content/public/common/resource_type.h"
25 #include "content/public/common/service_info.h" 26 #include "content/public/common/service_info.h"
26 #include "content/public/common/socket_permission_request.h" 27 #include "content/public/common/socket_permission_request.h"
27 #include "content/public/common/window_container_type.h" 28 #include "content/public/common/window_container_type.h"
(...skipping 13 matching lines...) Expand all
41 42
42 #if defined(OS_POSIX) 43 #if defined(OS_POSIX)
43 #include "content/public/browser/file_descriptor_info.h" 44 #include "content/public/browser/file_descriptor_info.h"
44 #endif 45 #endif
45 46
46 class GURL; 47 class GURL;
47 48
48 namespace base { 49 namespace base {
49 class CommandLine; 50 class CommandLine;
50 class FilePath; 51 class FilePath;
52 class SchedulerWorkerPoolParams;
51 } 53 }
52 54
53 namespace blink { 55 namespace blink {
54 struct WebWindowFeatures; 56 struct WebWindowFeatures;
55 } 57 }
56 58
57 namespace gfx { 59 namespace gfx {
58 class ImageSkia; 60 class ImageSkia;
59 } 61 }
60 62
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 // Binds a new media remoter service to |request|, if supported by the 793 // Binds a new media remoter service to |request|, if supported by the
792 // embedder, for the |source| that lives in the render frame represented 794 // embedder, for the |source| that lives in the render frame represented
793 // by |render_frame_host|. This may be called multiple times if there is more 795 // by |render_frame_host|. This may be called multiple times if there is more
794 // than one source candidate in the same render frame. 796 // than one source candidate in the same render frame.
795 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, 797 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host,
796 media::mojom::RemotingSourcePtr source, 798 media::mojom::RemotingSourcePtr source,
797 media::mojom::RemoterRequest request) {} 799 media::mojom::RemoterRequest request) {}
798 800
799 // Returns the RapporService from the browser process. 801 // Returns the RapporService from the browser process.
800 virtual ::rappor::RapporService* GetRapporService(); 802 virtual ::rappor::RapporService* GetRapporService();
803
804 // Provides parameters for initializing the global task scheduler. If
805 // |params_vector| is empty, default parameters are used.
806 virtual void GetTaskSchedulerInitializationParams(
807 std::vector<base::SchedulerWorkerPoolParams>* params_vector,
808 base::TaskScheduler::WorkerPoolIndexForTraitsCallback*
809 index_to_traits_callback) {}
810
811 // Performs any necessary PostTask API redirection to the task scheduler.
812 virtual void PerformExperimentalTaskSchedulerRedirections() {}
801 }; 813 };
802 814
803 } // namespace content 815 } // namespace content
804 816
805 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 817 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698