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

Side by Side Diff: content/public/test/mock_render_thread.cc

Issue 2635053002: [content] Expose renderer scheduler task queues in content::RenderThread. (Closed)
Patch Set: Fixed compilation Created 3 years, 11 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/public/test/mock_render_thread.h ('k') | content/renderer/render_thread_impl.h » ('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 #include "content/public/test/mock_render_thread.h" 5 #include "content/public/test/mock_render_thread.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 } 242 }
243 243
244 base::WaitableEvent* MockRenderThread::GetShutdownEvent() { 244 base::WaitableEvent* MockRenderThread::GetShutdownEvent() {
245 return NULL; 245 return NULL;
246 } 246 }
247 247
248 int32_t MockRenderThread::GetClientId() { 248 int32_t MockRenderThread::GetClientId() {
249 return 1; 249 return 1;
250 } 250 }
251 251
252 scoped_refptr<base::SingleThreadTaskRunner>
253 MockRenderThread::GetTimerTaskRunner() {
254 return base::ThreadTaskRunnerHandle::Get();
255 }
256
257 scoped_refptr<base::SingleThreadTaskRunner>
258 MockRenderThread::GetLoadingTaskRunner() {
259 return base::ThreadTaskRunnerHandle::Get();
260 }
261
252 #if defined(OS_WIN) 262 #if defined(OS_WIN)
253 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { 263 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) {
254 } 264 }
255 265
256 void MockRenderThread::ReleaseCachedFonts() { 266 void MockRenderThread::ReleaseCachedFonts() {
257 } 267 }
258 268
259 #endif // OS_WIN 269 #endif // OS_WIN
260 270
261 ServiceManagerConnection* MockRenderThread::GetServiceManagerConnection() { 271 ServiceManagerConnection* MockRenderThread::GetServiceManagerConnection() {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 void MockRenderThread::OnCreateWindow( 345 void MockRenderThread::OnCreateWindow(
336 const mojom::CreateNewWindowParams& params, 346 const mojom::CreateNewWindowParams& params,
337 mojom::CreateNewWindowReply* reply) { 347 mojom::CreateNewWindowReply* reply) {
338 reply->route_id = new_window_routing_id_; 348 reply->route_id = new_window_routing_id_;
339 reply->main_frame_route_id = new_window_main_frame_routing_id_; 349 reply->main_frame_route_id = new_window_main_frame_routing_id_;
340 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_; 350 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_;
341 reply->cloned_session_storage_namespace_id = 0; 351 reply->cloned_session_storage_namespace_id = 0;
342 } 352 }
343 353
344 } // namespace content 354 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698