OLD | NEW |
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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 struct PrintMsg_PrintPages_Params; | 22 struct PrintMsg_PrintPages_Params; |
23 struct PrintMsg_Print_Params; | 23 struct PrintMsg_Print_Params; |
24 | 24 |
25 // Extends content::MockRenderThread to know about printing | 25 // Extends content::MockRenderThread to know about printing |
26 class PrintMockRenderThread : public content::MockRenderThread { | 26 class PrintMockRenderThread : public content::MockRenderThread { |
27 public: | 27 public: |
28 PrintMockRenderThread(); | 28 PrintMockRenderThread(); |
29 ~PrintMockRenderThread() override; | 29 ~PrintMockRenderThread() override; |
30 | 30 |
31 // content::RenderThread overrides. | 31 // content::RenderThread overrides. |
32 scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() override; | 32 scoped_refptr<base::SingleThreadTaskRunner> GetIOMessageLoopProxy() override; |
33 | 33 |
34 ////////////////////////////////////////////////////////////////////////// | 34 ////////////////////////////////////////////////////////////////////////// |
35 // The following functions are called by the test itself. | 35 // The following functions are called by the test itself. |
36 | 36 |
37 // Set IO message loop proxy. | 37 // Set IO message loop proxy. |
38 void set_io_message_loop_proxy( | 38 void set_io_message_loop_proxy( |
39 const scoped_refptr<base::MessageLoopProxy>& proxy); | 39 const scoped_refptr<base::MessageLoopProxy>& proxy); |
40 | 40 |
41 #if defined(ENABLE_PRINTING) | 41 #if defined(ENABLE_PRINTING) |
42 // Returns the pseudo-printer instance. | 42 // Returns the pseudo-printer instance. |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // Number of pages to generate for print preview. | 100 // Number of pages to generate for print preview. |
101 int print_preview_pages_remaining_; | 101 int print_preview_pages_remaining_; |
102 #endif | 102 #endif |
103 | 103 |
104 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; | 104 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; |
105 | 105 |
106 DISALLOW_COPY_AND_ASSIGN(PrintMockRenderThread); | 106 DISALLOW_COPY_AND_ASSIGN(PrintMockRenderThread); |
107 }; | 107 }; |
108 | 108 |
109 #endif // COMPONENTS_PRINTING_TEST_PRINT_MOCK_RENDER_THREAD_H_ | 109 #endif // COMPONENTS_PRINTING_TEST_PRINT_MOCK_RENDER_THREAD_H_ |
OLD | NEW |