Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: content/public/test/browser_test_utils.h

Issue 644473004: Modifed the content api RenderProcessHostObserver::RenderProcessExited to remove the ununsed & inva… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modified AUTHORS file Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/public/browser/render_process_host_observer.h ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698