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/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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // been replaced is in |old_render_view_host|, which is NULL if the old RVH | 72 // been replaced is in |old_render_view_host|, which is NULL if the old RVH |
73 // was shut down. | 73 // was shut down. |
74 virtual void RenderViewHostChanged(RenderViewHost* old_host, | 74 virtual void RenderViewHostChanged(RenderViewHost* old_host, |
75 RenderViewHost* new_host) {} | 75 RenderViewHost* new_host) {} |
76 | 76 |
77 // This method is invoked after the WebContents decided which RenderViewHost | 77 // This method is invoked after the WebContents decided which RenderViewHost |
78 // to use for the next navigation, but before the navigation starts. | 78 // to use for the next navigation, but before the navigation starts. |
79 virtual void AboutToNavigateRenderView( | 79 virtual void AboutToNavigateRenderView( |
80 RenderViewHost* render_view_host) {} | 80 RenderViewHost* render_view_host) {} |
81 | 81 |
82 // This method is invoked right after the navigation was initiated. | 82 // This method is invoked after the browser process starts a navigation to a |
83 virtual void NavigateToPendingEntry( | 83 // pending NavigationEntry. It is not called for renderer-initiated |
| 84 // navigations unless they are sent to the browser process via OpenURL. It may |
| 85 // be called multiple times for a given navigation, such as a typed URL |
| 86 // followed by a cross-process client or server redirect. |
| 87 virtual void DidStartNavigationToPendingEntry( |
84 const GURL& url, | 88 const GURL& url, |
85 NavigationController::ReloadType reload_type) {} | 89 NavigationController::ReloadType reload_type) {} |
86 | 90 |
87 // |render_view_host| is the RenderViewHost for which the provisional load is | 91 // |render_view_host| is the RenderViewHost for which the provisional load is |
88 // happening. |frame_id| is a positive, non-zero integer identifying the | 92 // happening. |frame_id| is a positive, non-zero integer identifying the |
89 // navigating frame in the given |render_view_host|. |parent_frame_id| is the | 93 // navigating frame in the given |render_view_host|. |parent_frame_id| is the |
90 // frame identifier of the frame containing the navigating frame, or -1 if the | 94 // frame identifier of the frame containing the navigating frame, or -1 if the |
91 // frame is not contained in another frame. | 95 // frame is not contained in another frame. |
92 // | 96 // |
93 // Since the URL validation will strip error URLs, or srcdoc URLs, the boolean | 97 // Since the URL validation will strip error URLs, or srcdoc URLs, the boolean |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 void WebContentsImplDestroyed(); | 342 void WebContentsImplDestroyed(); |
339 | 343 |
340 WebContentsImpl* web_contents_; | 344 WebContentsImpl* web_contents_; |
341 | 345 |
342 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 346 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
343 }; | 347 }; |
344 | 348 |
345 } // namespace content | 349 } // namespace content |
346 | 350 |
347 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 351 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |