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

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

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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 COMPONENTS_PRINTING_TEST_PRINT_MOCK_RENDER_THREAD_H_ 5 #ifndef COMPONENTS_PRINTING_TEST_PRINT_MOCK_RENDER_THREAD_H_
6 #define COMPONENTS_PRINTING_TEST_PRINT_MOCK_RENDER_THREAD_H_ 6 #define COMPONENTS_PRINTING_TEST_PRINT_MOCK_RENDER_THREAD_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 17 matching lines...) Expand all
28 struct PrintMsg_PrintPages_Params; 28 struct PrintMsg_PrintPages_Params;
29 struct PrintMsg_Print_Params; 29 struct PrintMsg_Print_Params;
30 30
31 // Extends content::MockRenderThread to know about printing 31 // Extends content::MockRenderThread to know about printing
32 class PrintMockRenderThread : public content::MockRenderThread { 32 class PrintMockRenderThread : public content::MockRenderThread {
33 public: 33 public:
34 PrintMockRenderThread(); 34 PrintMockRenderThread();
35 ~PrintMockRenderThread() override; 35 ~PrintMockRenderThread() override;
36 36
37 // content::RenderThread overrides. 37 // content::RenderThread overrides.
38 scoped_refptr<base::SingleThreadTaskRunner> GetIOMessageLoopProxy() override; 38 scoped_refptr<base::SingleThreadTaskRunner> GetIOTaskRunner() override;
39 39
40 ////////////////////////////////////////////////////////////////////////// 40 //////////////////////////////////////////////////////////////////////////
41 // The following functions are called by the test itself. 41 // The following functions are called by the test itself.
42 42
43 // Set IO message loop proxy. 43 void set_io_task_runner(
44 void set_io_message_loop_proxy(
45 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); 44 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
46 45
47 #if defined(ENABLE_PRINTING) 46 #if defined(ENABLE_PRINTING)
48 // Returns the pseudo-printer instance. 47 // Returns the pseudo-printer instance.
49 MockPrinter* printer(); 48 MockPrinter* printer();
50 49
51 // Call with |response| set to true if the user wants to print. 50 // Call with |response| set to true if the user wants to print.
52 // False if the user decides to cancel. 51 // False if the user decides to cancel.
53 void set_print_dialog_user_response(bool response); 52 void set_print_dialog_user_response(bool response);
54 53
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Number of pages to generate for print preview. 107 // Number of pages to generate for print preview.
109 int print_preview_pages_remaining_; 108 int print_preview_pages_remaining_;
110 #endif 109 #endif
111 110
112 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 111 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
113 112
114 DISALLOW_COPY_AND_ASSIGN(PrintMockRenderThread); 113 DISALLOW_COPY_AND_ASSIGN(PrintMockRenderThread);
115 }; 114 };
116 115
117 #endif // COMPONENTS_PRINTING_TEST_PRINT_MOCK_RENDER_THREAD_H_ 116 #endif // COMPONENTS_PRINTING_TEST_PRINT_MOCK_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « components/nacl/renderer/trusted_plugin_channel.cc ('k') | components/printing/test/print_mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698