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

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: CR Feedback and Move to Components Dependency 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
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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 virtual std::unique_ptr<MemoryCoordinatorDelegate> 786 virtual std::unique_ptr<MemoryCoordinatorDelegate>
785 GetMemoryCoordinatorDelegate(); 787 GetMemoryCoordinatorDelegate();
786 788
787 // Binds a new media remoter service to |request|, if supported by the 789 // Binds a new media remoter service to |request|, if supported by the
788 // embedder, for the |source| that lives in the render frame represented 790 // embedder, for the |source| that lives in the render frame represented
789 // by |render_frame_host|. This may be called multiple times if there is more 791 // by |render_frame_host|. This may be called multiple times if there is more
790 // than one source candidate in the same render frame. 792 // than one source candidate in the same render frame.
791 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, 793 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host,
792 media::mojom::RemotingSourcePtr source, 794 media::mojom::RemotingSourcePtr source,
793 media::mojom::RemoterRequest request) {} 795 media::mojom::RemoterRequest request) {}
796
fdoray 2016/12/06 21:14:12 // Comment?
robliao 2016/12/07 00:57:32 Done.
797 virtual void GetTaskSchedulerInitializationParams(
798 std::vector<base::SchedulerWorkerPoolParams>* params_vector,
799 base::TaskScheduler::WorkerPoolIndexForTraitsCallback*
800 index_to_traits_callback);
801
fdoray 2016/12/06 21:14:12 // Comment?
robliao 2016/12/07 00:57:32 Done.
802 virtual void PerformRedirectionToTaskScheduler() {}
794 }; 803 };
795 804
796 } // namespace content 805 } // namespace content
797 806
798 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 807 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698