| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_MOCK_RENDER_THREAD_H_ | 5 #ifndef CHROME_RENDERER_MOCK_RENDER_THREAD_H_ |
| 6 #define CHROME_RENDERER_MOCK_RENDER_THREAD_H_ | 6 #define CHROME_RENDERER_MOCK_RENDER_THREAD_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // Simulates the Widget receiving a close message. This should result | 75 // Simulates the Widget receiving a close message. This should result |
| 76 // on releasing the internal reference counts and destroying the internal | 76 // on releasing the internal reference counts and destroying the internal |
| 77 // state. | 77 // state. |
| 78 void SendCloseMessage(); | 78 void SendCloseMessage(); |
| 79 | 79 |
| 80 // Returns the pseudo-printer instance. | 80 // Returns the pseudo-printer instance. |
| 81 MockPrinter* printer() const { return printer_.get(); } | 81 MockPrinter* printer() const { return printer_.get(); } |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 // This function operates as a regular IPC listener. | 84 // This function operates as a regular IPC listener. |
| 85 void OnMessageReceived(const IPC::Message& msg); | 85 bool OnMessageReceived(const IPC::Message& msg); |
| 86 | 86 |
| 87 // The Widget expects to be returned valid route_id. | 87 // The Widget expects to be returned valid route_id. |
| 88 void OnMsgCreateWidget(int opener_id, | 88 void OnMsgCreateWidget(int opener_id, |
| 89 WebKit::WebPopupType popup_type, | 89 WebKit::WebPopupType popup_type, |
| 90 int* route_id); | 90 int* route_id); |
| 91 | 91 |
| 92 // The callee expects to be returned a valid channel_id. | 92 // The callee expects to be returned a valid channel_id. |
| 93 void OnMsgOpenChannelToExtension( | 93 void OnMsgOpenChannelToExtension( |
| 94 int routing_id, const std::string& extension_id, | 94 int routing_id, const std::string& extension_id, |
| 95 const std::string& source_extension_id, | 95 const std::string& source_extension_id, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // The last known good deserializer for sync messages. | 136 // The last known good deserializer for sync messages. |
| 137 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; | 137 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; |
| 138 | 138 |
| 139 // A mock printer device used for printing tests. | 139 // A mock printer device used for printing tests. |
| 140 scoped_ptr<MockPrinter> printer_; | 140 scoped_ptr<MockPrinter> printer_; |
| 141 | 141 |
| 142 bool is_extension_process_; | 142 bool is_extension_process_; |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ | 145 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ |
| OLD | NEW |