| 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_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/process.h" | 8 #include "base/process.h" |
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // This method is invoked when the RenderView of the current RenderViewHost | 49 // This method is invoked when the RenderView of the current RenderViewHost |
| 50 // is ready, e.g. because we recreated it after a crash. | 50 // is ready, e.g. because we recreated it after a crash. |
| 51 virtual void RenderViewReady() {} | 51 virtual void RenderViewReady() {} |
| 52 | 52 |
| 53 // This method is invoked when a RenderViewHost of the WebContents is | 53 // This method is invoked when a RenderViewHost of the WebContents is |
| 54 // deleted. Note that this does not always happen when the WebContents starts | 54 // deleted. Note that this does not always happen when the WebContents starts |
| 55 // to use a different RenderViewHost, as the old RenderViewHost might get | 55 // to use a different RenderViewHost, as the old RenderViewHost might get |
| 56 // just swapped out. | 56 // just swapped out. |
| 57 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} | 57 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} |
| 58 | 58 |
| 59 // This method is invoked when the current RenderView crashes. The WebContents | 59 // This method is invoked when the process for the current RenderView crashes. |
| 60 // continues to use the RenderViewHost, e.g. when the user reloads the current | 60 // The WebContents continues to use the RenderViewHost, e.g. when the user |
| 61 // page. | 61 // reloads the current page. |
| 62 // When the RenderViewHost is deleted, the RenderViewDeleted method will be | 62 // When the RenderViewHost is deleted, the RenderViewDeleted method will be |
| 63 // invoked. | 63 // invoked. |
| 64 virtual void RenderViewGone(base::TerminationStatus status) {} | 64 virtual void RenderProcessGone(base::TerminationStatus status) {} |
| 65 | 65 |
| 66 // This method is invoked after the WebContents decided which RenderViewHost | 66 // This method is invoked after the WebContents decided which RenderViewHost |
| 67 // to use for the next navigation, but before the navigation starts. | 67 // to use for the next navigation, but before the navigation starts. |
| 68 virtual void AboutToNavigateRenderView( | 68 virtual void AboutToNavigateRenderView( |
| 69 RenderViewHost* render_view_host) {} | 69 RenderViewHost* render_view_host) {} |
| 70 | 70 |
| 71 // This method is invoked right after the navigation was initiated. | 71 // This method is invoked right after the navigation was initiated. |
| 72 virtual void NavigateToPendingEntry( | 72 virtual void NavigateToPendingEntry( |
| 73 const GURL& url, | 73 const GURL& url, |
| 74 NavigationController::ReloadType reload_type) {} | 74 NavigationController::ReloadType reload_type) {} |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 void WebContentsImplDestroyed(); | 297 void WebContentsImplDestroyed(); |
| 298 | 298 |
| 299 WebContentsImpl* web_contents_; | 299 WebContentsImpl* web_contents_; |
| 300 | 300 |
| 301 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 301 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 302 }; | 302 }; |
| 303 | 303 |
| 304 } // namespace content | 304 } // namespace content |
| 305 | 305 |
| 306 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 306 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |