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> |
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 Loading... | |
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 Loading... | |
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 | |
797 // Provides parameters for initializing the global task scheduler. | |
fdoray
2016/12/07 13:46:12
If |params_vector| is empty or |index_to_traits_ca
robliao
2016/12/08 01:04:22
Done.
| |
798 virtual void GetTaskSchedulerInitializationParams( | |
799 std::vector<base::SchedulerWorkerPoolParams>* params_vector, | |
800 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* | |
801 index_to_traits_callback) {} | |
802 | |
803 // Performs any necessary PostTask API redirection to the task scheduler. | |
804 virtual void PerformRedirectionToTaskScheduler() {} | |
794 }; | 805 }; |
795 | 806 |
796 } // namespace content | 807 } // namespace content |
797 | 808 |
798 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 809 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |