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_BROWSER_TEST_UTILS_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 // Waits for the render process that contains the specified web contents. | 285 // Waits for the render process that contains the specified web contents. |
286 RenderProcessHostWatcher(WebContents* web_contents, WatchType type); | 286 RenderProcessHostWatcher(WebContents* web_contents, WatchType type); |
287 virtual ~RenderProcessHostWatcher(); | 287 virtual ~RenderProcessHostWatcher(); |
288 | 288 |
289 // Waits until the renderer process exits. | 289 // Waits until the renderer process exits. |
290 void Wait(); | 290 void Wait(); |
291 | 291 |
292 private: | 292 private: |
293 // Overridden RenderProcessHost::LifecycleObserver methods. | 293 // Overridden RenderProcessHost::LifecycleObserver methods. |
294 virtual void RenderProcessExited(RenderProcessHost* host, | 294 virtual void RenderProcessExited(RenderProcessHost* host, |
295 base::ProcessHandle handle, | |
296 base::TerminationStatus status, | 295 base::TerminationStatus status, |
297 int exit_code) override; | 296 int exit_code) override; |
298 virtual void RenderProcessHostDestroyed(RenderProcessHost* host) override; | 297 virtual void RenderProcessHostDestroyed(RenderProcessHost* host) override; |
299 | 298 |
300 RenderProcessHost* render_process_host_; | 299 RenderProcessHost* render_process_host_; |
301 WatchType type_; | 300 WatchType type_; |
302 | 301 |
303 scoped_refptr<MessageLoopRunner> message_loop_runner_; | 302 scoped_refptr<MessageLoopRunner> message_loop_runner_; |
304 | 303 |
305 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostWatcher); | 304 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostWatcher); |
(...skipping 25 matching lines...) Expand all Loading... |
331 NotificationRegistrar registrar_; | 330 NotificationRegistrar registrar_; |
332 std::queue<std::string> message_queue_; | 331 std::queue<std::string> message_queue_; |
333 scoped_refptr<MessageLoopRunner> message_loop_runner_; | 332 scoped_refptr<MessageLoopRunner> message_loop_runner_; |
334 | 333 |
335 DISALLOW_COPY_AND_ASSIGN(DOMMessageQueue); | 334 DISALLOW_COPY_AND_ASSIGN(DOMMessageQueue); |
336 }; | 335 }; |
337 | 336 |
338 } // namespace content | 337 } // namespace content |
339 | 338 |
340 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 339 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
OLD | NEW |