OLD | NEW |
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 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <memory> | 10 #include <memory> |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 private: | 149 private: |
150 // Stores IPC messages that would have been sent to the renderer. | 150 // Stores IPC messages that would have been sent to the renderer. |
151 IPC::TestSink sink_; | 151 IPC::TestSink sink_; |
152 int bad_msg_count_; | 152 int bad_msg_count_; |
153 const MockRenderProcessHostFactory* factory_; | 153 const MockRenderProcessHostFactory* factory_; |
154 int id_; | 154 int id_; |
155 bool has_connection_; | 155 bool has_connection_; |
156 BrowserContext* browser_context_; | 156 BrowserContext* browser_context_; |
157 base::ObserverList<RenderProcessHostObserver> observers_; | 157 base::ObserverList<RenderProcessHostObserver> observers_; |
158 | 158 |
159 IDMap<RenderWidgetHost> render_widget_hosts_; | 159 IDMap<RenderWidgetHost*> render_widget_hosts_; |
160 int prev_routing_id_; | 160 int prev_routing_id_; |
161 IDMap<IPC::Listener> listeners_; | 161 IDMap<IPC::Listener*> listeners_; |
162 bool fast_shutdown_started_; | 162 bool fast_shutdown_started_; |
163 bool deletion_callback_called_; | 163 bool deletion_callback_called_; |
164 bool is_for_guests_only_; | 164 bool is_for_guests_only_; |
165 bool is_process_backgrounded_; | 165 bool is_process_backgrounded_; |
166 std::unique_ptr<base::ProcessHandle> process_handle; | 166 std::unique_ptr<base::ProcessHandle> process_handle; |
167 int worker_ref_count_; | 167 int worker_ref_count_; |
168 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_; | 168 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_; |
169 std::unique_ptr<mojo::AssociatedInterfacePtr<mojom::Renderer>> | 169 std::unique_ptr<mojo::AssociatedInterfacePtr<mojom::Renderer>> |
170 renderer_interface_; | 170 renderer_interface_; |
171 | 171 |
(...skipping 19 matching lines...) Expand all Loading... |
191 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 191 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
192 // the destructor and prevent them from being leaked. | 192 // the destructor and prevent them from being leaked. |
193 mutable ScopedVector<MockRenderProcessHost> processes_; | 193 mutable ScopedVector<MockRenderProcessHost> processes_; |
194 | 194 |
195 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 195 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
196 }; | 196 }; |
197 | 197 |
198 } // namespace content | 198 } // namespace content |
199 | 199 |
200 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 200 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |