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

Side by Side Diff: components/printing/test/print_mock_render_thread.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 "components/printing/test/print_mock_render_thread.h" 5 #include "components/printing/test/print_mock_render_thread.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 print_preview_cancel_page_number_(-1), 27 print_preview_cancel_page_number_(-1),
28 print_preview_pages_remaining_(0) 28 print_preview_pages_remaining_(0)
29 #endif 29 #endif
30 { 30 {
31 } 31 }
32 32
33 PrintMockRenderThread::~PrintMockRenderThread() { 33 PrintMockRenderThread::~PrintMockRenderThread() {
34 } 34 }
35 35
36 scoped_refptr<base::SingleThreadTaskRunner> 36 scoped_refptr<base::SingleThreadTaskRunner>
37 PrintMockRenderThread::GetIOMessageLoopProxy() { 37 PrintMockRenderThread::GetIOTaskRunner() {
38 return io_task_runner_; 38 return io_task_runner_;
39 } 39 }
40 40
41 void PrintMockRenderThread::set_io_message_loop_proxy( 41 void PrintMockRenderThread::set_io_task_runner(
42 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) { 42 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) {
43 io_task_runner_ = task_runner; 43 io_task_runner_ = task_runner;
44 } 44 }
45 45
46 bool PrintMockRenderThread::OnMessageReceived(const IPC::Message& msg) { 46 bool PrintMockRenderThread::OnMessageReceived(const IPC::Message& msg) {
47 if (content::MockRenderThread::OnMessageReceived(msg)) 47 if (content::MockRenderThread::OnMessageReceived(msg))
48 return true; 48 return true;
49 49
50 // Some messages we do special handling. 50 // Some messages we do special handling.
51 bool handled = true; 51 bool handled = true;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 } 179 }
180 180
181 void PrintMockRenderThread::set_print_preview_cancel_page_number(int page) { 181 void PrintMockRenderThread::set_print_preview_cancel_page_number(int page) {
182 print_preview_cancel_page_number_ = page; 182 print_preview_cancel_page_number_ = page;
183 } 183 }
184 184
185 int PrintMockRenderThread::print_preview_pages_remaining() const { 185 int PrintMockRenderThread::print_preview_pages_remaining() const {
186 return print_preview_pages_remaining_; 186 return print_preview_pages_remaining_;
187 } 187 }
188 #endif // defined(ENABLE_PRINTING) 188 #endif // defined(ENABLE_PRINTING)
OLDNEW
« no previous file with comments | « components/printing/test/print_mock_render_thread.h ('k') | components/storage_monitor/storage_monitor_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698