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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 right after the navigation was initiated. |
83 virtual void NavigateToPendingEntry( | 83 virtual void DidCreatePendingEntry( |
Charlie Reis
2013/11/22 22:09:25
Sorry to possibly create more work for you, but I
| |
84 const GURL& url, | 84 const GURL& url, |
85 NavigationController::ReloadType reload_type) {} | 85 NavigationController::ReloadType reload_type) {} |
86 | 86 |
87 // |render_view_host| is the RenderViewHost for which the provisional load is | 87 // |render_view_host| is the RenderViewHost for which the provisional load is |
88 // happening. |frame_id| is a positive, non-zero integer identifying the | 88 // 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 | 89 // 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 | 90 // frame identifier of the frame containing the navigating frame, or -1 if the |
91 // frame is not contained in another frame. | 91 // frame is not contained in another frame. |
92 // | 92 // |
93 // Since the URL validation will strip error URLs, or srcdoc URLs, the boolean | 93 // 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(); | 338 void WebContentsImplDestroyed(); |
339 | 339 |
340 WebContentsImpl* web_contents_; | 340 WebContentsImpl* web_contents_; |
341 | 341 |
342 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 342 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
343 }; | 343 }; |
344 | 344 |
345 } // namespace content | 345 } // namespace content |
346 | 346 |
347 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 347 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |