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

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

Issue 23784005: Provide observer functions for NOTIFICATION_WEB_CONTENTS_CONNECTED, NOTIFICATION_WEB_CONTENTS_SWAPP… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better name Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « content/public/browser/notification_types.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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/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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 process for the current RenderView crashes. 59 // This method is invoked when the process for the current RenderView crashes.
60 // The WebContents continues to use the RenderViewHost, e.g. when the user 60 // The WebContents continues to use the RenderViewHost, e.g. when the user
61 // reloads the current 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 RenderProcessGone(base::TerminationStatus status) {} 64 virtual void RenderProcessGone(base::TerminationStatus status) {}
65 65
66 // This method is invoked when a WebContents swaps its render view host with
67 // another one, possibly changing processes. The RenderViewHost that has
68 // been replaced is in |old_render_view_host|, which is NULL if the old RVH
69 // was shut down.
70 virtual void RenderViewHostSwapped(RenderViewHost* old_render_view_host) {}
71
66 // This method is invoked after the WebContents decided which RenderViewHost 72 // This method is invoked after the WebContents decided which RenderViewHost
67 // to use for the next navigation, but before the navigation starts. 73 // to use for the next navigation, but before the navigation starts.
68 virtual void AboutToNavigateRenderView( 74 virtual void AboutToNavigateRenderView(
69 RenderViewHost* render_view_host) {} 75 RenderViewHost* render_view_host) {}
70 76
71 // This method is invoked right after the navigation was initiated. 77 // This method is invoked right after the navigation was initiated.
72 virtual void NavigateToPendingEntry( 78 virtual void NavigateToPendingEntry(
73 const GURL& url, 79 const GURL& url,
74 NavigationController::ReloadType reload_type) {} 80 NavigationController::ReloadType reload_type) {}
75 81
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 void WebContentsImplDestroyed(); 303 void WebContentsImplDestroyed();
298 304
299 WebContentsImpl* web_contents_; 305 WebContentsImpl* web_contents_;
300 306
301 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 307 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
302 }; 308 };
303 309
304 } // namespace content 310 } // namespace content
305 311
306 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 312 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/browser/notification_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698