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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 const GetAudioOutputControllersCallback& callback) const override {} | 120 const GetAudioOutputControllersCallback& callback) const override {} |
121 | 121 |
122 private: | 122 private: |
123 // Stores IPC messages that would have been sent to the renderer. | 123 // Stores IPC messages that would have been sent to the renderer. |
124 IPC::TestSink sink_; | 124 IPC::TestSink sink_; |
125 int bad_msg_count_; | 125 int bad_msg_count_; |
126 const MockRenderProcessHostFactory* factory_; | 126 const MockRenderProcessHostFactory* factory_; |
127 int id_; | 127 int id_; |
128 bool has_connection_; | 128 bool has_connection_; |
129 BrowserContext* browser_context_; | 129 BrowserContext* browser_context_; |
130 ObserverList<RenderProcessHostObserver> observers_; | 130 base::ObserverList<RenderProcessHostObserver> observers_; |
131 | 131 |
132 IDMap<RenderWidgetHost> render_widget_hosts_; | 132 IDMap<RenderWidgetHost> render_widget_hosts_; |
133 int prev_routing_id_; | 133 int prev_routing_id_; |
134 IDMap<IPC::Listener> listeners_; | 134 IDMap<IPC::Listener> listeners_; |
135 bool fast_shutdown_started_; | 135 bool fast_shutdown_started_; |
136 bool deletion_callback_called_; | 136 bool deletion_callback_called_; |
137 bool is_isolated_guest_; | 137 bool is_isolated_guest_; |
138 scoped_ptr<base::ProcessHandle> process_handle; | 138 scoped_ptr<base::ProcessHandle> process_handle; |
139 | 139 |
140 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHost); | 140 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHost); |
(...skipping 18 matching lines...) Expand all Loading... |
159 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 159 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
160 // the destructor and prevent them from being leaked. | 160 // the destructor and prevent them from being leaked. |
161 mutable ScopedVector<MockRenderProcessHost> processes_; | 161 mutable ScopedVector<MockRenderProcessHost> processes_; |
162 | 162 |
163 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 163 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
164 }; | 164 }; |
165 | 165 |
166 } // namespace content | 166 } // namespace content |
167 | 167 |
168 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 168 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |