| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 // If the provisional load corresponded to the main frame, this method is | 150 // If the provisional load corresponded to the main frame, this method is |
| 151 // invoked in addition to DidCommitProvisionalLoadForFrame. | 151 // invoked in addition to DidCommitProvisionalLoadForFrame. |
| 152 virtual void DidNavigateMainFrame( | 152 virtual void DidNavigateMainFrame( |
| 153 const LoadCommittedDetails& details, | 153 const LoadCommittedDetails& details, |
| 154 const FrameNavigateParams& params) {} | 154 const FrameNavigateParams& params) {} |
| 155 | 155 |
| 156 // And regardless of what frame navigated, this method is invoked after | 156 // And regardless of what frame navigated, this method is invoked after |
| 157 // DidCommitProvisionalLoadForFrame was invoked. | 157 // DidCommitProvisionalLoadForFrame was invoked. |
| 158 virtual void DidNavigateAnyFrame( | 158 virtual void DidNavigateAnyFrame( |
| 159 RenderFrameHost* render_frame_host, |
| 159 const LoadCommittedDetails& details, | 160 const LoadCommittedDetails& details, |
| 160 const FrameNavigateParams& params) {} | 161 const FrameNavigateParams& params) {} |
| 161 | 162 |
| 162 // This method is invoked once the window.document object of the main frame | 163 // This method is invoked once the window.document object of the main frame |
| 163 // was created. | 164 // was created. |
| 164 virtual void DocumentAvailableInMainFrame() {} | 165 virtual void DocumentAvailableInMainFrame() {} |
| 165 | 166 |
| 166 // This method is invoked once the onload handler of the main frame has | 167 // This method is invoked once the onload handler of the main frame has |
| 167 // completed. | 168 // completed. |
| 168 virtual void DocumentOnLoadCompletedInMainFrame() {} | 169 virtual void DocumentOnLoadCompletedInMainFrame() {} |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 void ResetWebContents(); | 352 void ResetWebContents(); |
| 352 | 353 |
| 353 WebContentsImpl* web_contents_; | 354 WebContentsImpl* web_contents_; |
| 354 | 355 |
| 355 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 356 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 356 }; | 357 }; |
| 357 | 358 |
| 358 } // namespace content | 359 } // namespace content |
| 359 | 360 |
| 360 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 361 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |