Commit 4d61441b authored by avi@chromium.org's avatar avi@chromium.org

Point out in the comments the equivalence of two observer functions.

BUG=none
TEST=none

Review URL: https://codereview.chromium.org/132063006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244127 0039d316-1c4b-4281-b951-d872f2087c98
parent 54d2eb93
...@@ -20,6 +20,8 @@ class CONTENT_EXPORT RenderProcessHostObserver { ...@@ -20,6 +20,8 @@ class CONTENT_EXPORT RenderProcessHostObserver {
// This method is invoked when a render process exited (either normally or // This method is invoked when a render process exited (either normally or
// with a crash). To determine if the process closed normally or crashed, // with a crash). To determine if the process closed normally or crashed,
// examine the |status| parameter. // examine the |status| parameter.
//
// Note that this is equivalent to WebContentsObserver::RenderProcessGone().
virtual void RenderProcessExited(RenderProcessHost* host, virtual void RenderProcessExited(RenderProcessHost* host,
base::ProcessHandle handle, base::ProcessHandle handle,
base::TerminationStatus status, base::TerminationStatus status,
......
...@@ -72,9 +72,11 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener, ...@@ -72,9 +72,11 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener,
// This method is invoked when the process for the current RenderView crashes. // This method is invoked when the process for the current RenderView crashes.
// The WebContents continues to use the RenderViewHost, e.g. when the user // The WebContents continues to use the RenderViewHost, e.g. when the user
// reloads the current page. // reloads the current page. When the RenderViewHost itself is deleted, the
// When the RenderViewHost is deleted, the RenderViewDeleted method will be // RenderViewDeleted method will be invoked.
// invoked. //
// Note that this is equivalent to
// RenderProcessHostObserver::RenderProcessExited().
virtual void RenderProcessGone(base::TerminationStatus status) {} virtual void RenderProcessGone(base::TerminationStatus status) {}
// This method is invoked when a WebContents swaps its render view host with // This method is invoked when a WebContents swaps its render view host with
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment