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

Side by Side Diff: content/public/browser/render_process_host_observer.h

Issue 1923653002: Wire up process launch error codes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix debug and clang Created 4 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_RENDER_PROCESS_HOST_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_OBSERVER_H_
7 7
8 #include "base/process/kill.h" 8 #include "base/process/kill.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 24 matching lines...) Expand all
35 // 35 //
36 // A new render process may be spawned for this RenderProcessHost, but there 36 // A new render process may be spawned for this RenderProcessHost, but there
37 // are no guarantees (e.g. if shutdown is occurring, the HostDestroyed 37 // are no guarantees (e.g. if shutdown is occurring, the HostDestroyed
38 // callback will happen soon and that will be it, but if the renderer crashed 38 // callback will happen soon and that will be it, but if the renderer crashed
39 // and the user clicks 'reload', a new render process will be spawned). 39 // and the user clicks 'reload', a new render process will be spawned).
40 // 40 //
41 // This will cause a call to WebContentsObserver::RenderProcessGone() for the 41 // This will cause a call to WebContentsObserver::RenderProcessGone() for the
42 // active renderer process for the top-level frame; for code that needs to be 42 // active renderer process for the top-level frame; for code that needs to be
43 // a WebContentsObserver anyway, consider whether that API might be a better 43 // a WebContentsObserver anyway, consider whether that API might be a better
44 // choice. 44 // choice.
45 //
46 // If |status| is TERMINATION_STATUS_LAUNCH_FAILED then |exit_code| will
47 // contain a platform specific launch failure error code. Otherwise, it will
48 // contain the exit code for the process.
45 virtual void RenderProcessExited(RenderProcessHost* host, 49 virtual void RenderProcessExited(RenderProcessHost* host,
46 base::TerminationStatus status, 50 base::TerminationStatus status,
47 int exit_code) {} 51 int exit_code) {}
48 52
49 // This method is invoked when the observed RenderProcessHost itself is 53 // This method is invoked when the observed RenderProcessHost itself is
50 // destroyed. This is guaranteed to be the last call made to the observer, so 54 // destroyed. This is guaranteed to be the last call made to the observer, so
51 // if the observer is tied to the observed RenderProcessHost, it is safe to 55 // if the observer is tied to the observed RenderProcessHost, it is safe to
52 // delete it. 56 // delete it.
53 virtual void RenderProcessHostDestroyed(RenderProcessHost* host) {} 57 virtual void RenderProcessHostDestroyed(RenderProcessHost* host) {}
54 58
55 protected: 59 protected:
56 virtual ~RenderProcessHostObserver() {} 60 virtual ~RenderProcessHostObserver() {}
57 }; 61 };
58 62
59 } // namespace content 63 } // namespace content
60 64
61 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_OBSERVER_H_ 65 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_child_process_host_delegate.h ('k') | content/public/browser/utility_process_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698