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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 virtual void DidOpenRequestedURL(WebContents* new_contents, | 211 virtual void DidOpenRequestedURL(WebContents* new_contents, |
212 const GURL& url, | 212 const GURL& url, |
213 const Referrer& referrer, | 213 const Referrer& referrer, |
214 WindowOpenDisposition disposition, | 214 WindowOpenDisposition disposition, |
215 PageTransition transition, | 215 PageTransition transition, |
216 int64 source_frame_id) {} | 216 int64 source_frame_id) {} |
217 | 217 |
218 virtual void FrameDetached(RenderViewHost* render_view_host, | 218 virtual void FrameDetached(RenderViewHost* render_view_host, |
219 int64 frame_id) {} | 219 int64 frame_id) {} |
220 | 220 |
| 221 // This method is invoked when the renderer has completed its first paint |
| 222 // after a non-empty layout. |
| 223 virtual void DidFirstVisuallyNonEmptyPaint(int32 page_id) {} |
| 224 |
221 // These two methods correspond to the points in time when the spinner of the | 225 // These two methods correspond to the points in time when the spinner of the |
222 // tab starts and stops spinning. | 226 // tab starts and stops spinning. |
223 virtual void DidStartLoading(RenderViewHost* render_view_host) {} | 227 virtual void DidStartLoading(RenderViewHost* render_view_host) {} |
224 virtual void DidStopLoading(RenderViewHost* render_view_host) {} | 228 virtual void DidStopLoading(RenderViewHost* render_view_host) {} |
225 | 229 |
226 // When WebContents::Stop() is called, the WebContents stops loading and then | 230 // When WebContents::Stop() is called, the WebContents stops loading and then |
227 // invokes this method. If there are ongoing navigations, their respective | 231 // invokes this method. If there are ongoing navigations, their respective |
228 // failure methods will also be invoked. | 232 // failure methods will also be invoked. |
229 virtual void NavigationStopped() {} | 233 virtual void NavigationStopped() {} |
230 | 234 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 void WebContentsImplDestroyed(); | 338 void WebContentsImplDestroyed(); |
335 | 339 |
336 WebContentsImpl* web_contents_; | 340 WebContentsImpl* web_contents_; |
337 | 341 |
338 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 342 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
339 }; | 343 }; |
340 | 344 |
341 } // namespace content | 345 } // namespace content |
342 | 346 |
343 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 347 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |