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

Side by Side Diff: content/public/renderer/content_renderer_client.cc

Issue 2491823005: Initialize TaskScheduler in renderers. (Closed)
Patch Set: do not enable in this CL Created 4 years, 1 month 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 #include "content/public/renderer/content_renderer_client.h" 5 #include "content/public/renderer/content_renderer_client.h"
6 6
7 #include "cc/blimp/remote_compositor_bridge.h" 7 #include "cc/blimp/remote_compositor_bridge.h"
8 #include "content/public/renderer/media_stream_renderer_factory.h" 8 #include "content/public/renderer/media_stream_renderer_factory.h"
9 #include "media/base/renderer_factory.h" 9 #include "media/base/renderer_factory.h"
10 #include "ui/gfx/icc_profile.h" 10 #include "ui/gfx/icc_profile.h"
(...skipping 26 matching lines...) Expand all
37 bool ContentRendererClient::HasErrorPage(int http_status_code, 37 bool ContentRendererClient::HasErrorPage(int http_status_code,
38 std::string* error_domain) { 38 std::string* error_domain) {
39 return false; 39 return false;
40 } 40 }
41 41
42 bool ContentRendererClient::ShouldSuppressErrorPage(RenderFrame* render_frame, 42 bool ContentRendererClient::ShouldSuppressErrorPage(RenderFrame* render_frame,
43 const GURL& url) { 43 const GURL& url) {
44 return false; 44 return false;
45 } 45 }
46 46
47 bool ContentRendererClient::ShouldInitializeTaskScheduler(
48 std::vector<base::SchedulerWorkerPoolParams>* worker_pool_params_vector,
49 base::Callback<size_t(const base::TaskTraits& traits)>*
50 worker_pool_index_for_traits_callback,
51 bool* should_redirect_sequenced_worker_pool) {
52 return false;
53 }
54
47 void ContentRendererClient::DeferMediaLoad( 55 void ContentRendererClient::DeferMediaLoad(
48 RenderFrame* render_frame, 56 RenderFrame* render_frame,
49 bool has_played_media_before, 57 bool has_played_media_before,
50 const base::Closure& closure) { 58 const base::Closure& closure) {
51 closure.Run(); 59 closure.Run();
52 } 60 }
53 61
54 blink::WebMediaStreamCenter* 62 blink::WebMediaStreamCenter*
55 ContentRendererClient::OverrideCreateWebMediaStreamCenter( 63 ContentRendererClient::OverrideCreateWebMediaStreamCenter(
56 blink::WebMediaStreamCenterClient* client) { 64 blink::WebMediaStreamCenterClient* client) {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 240
233 bool ContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { 241 bool ContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() {
234 return true; 242 return true;
235 } 243 }
236 244
237 GURL ContentRendererClient::OverrideFlashEmbedWithHTML(const GURL& url) { 245 GURL ContentRendererClient::OverrideFlashEmbedWithHTML(const GURL& url) {
238 return GURL(); 246 return GURL();
239 } 247 }
240 248
241 } // namespace content 249 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698