| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 const LoadCommittedDetails& details, | 170 const LoadCommittedDetails& details, |
| 171 const FrameNavigateParams& params) {} | 171 const FrameNavigateParams& params) {} |
| 172 | 172 |
| 173 // And regardless of what frame navigated, this method is invoked after | 173 // And regardless of what frame navigated, this method is invoked after |
| 174 // DidCommitProvisionalLoadForFrame was invoked. | 174 // DidCommitProvisionalLoadForFrame was invoked. |
| 175 virtual void DidNavigateAnyFrame( | 175 virtual void DidNavigateAnyFrame( |
| 176 RenderFrameHost* render_frame_host, | 176 RenderFrameHost* render_frame_host, |
| 177 const LoadCommittedDetails& details, | 177 const LoadCommittedDetails& details, |
| 178 const FrameNavigateParams& params) {} | 178 const FrameNavigateParams& params) {} |
| 179 | 179 |
| 180 // This method is invoked when the SecurityStyle of the WebContents changes. | 180 // This method is invoked when the SecurityStyle of the WebContents |
| 181 virtual void SecurityStyleChanged(content::SecurityStyle security_style) {} | 181 // changes. |security_style| is the new |
| 182 // SecurityStyle. |security_style_explanation| contains human-readable |
| 183 // strings explaining why the SecurityStyle of the page has been |
| 184 // downgraded. |
| 185 virtual void SecurityStyleChanged( |
| 186 SecurityStyle security_style, |
| 187 const SecurityStyleExplanation& security_style_explanation) {} |
| 182 | 188 |
| 183 // This method is invoked once the window.document object of the main frame | 189 // This method is invoked once the window.document object of the main frame |
| 184 // was created. | 190 // was created. |
| 185 virtual void DocumentAvailableInMainFrame() {} | 191 virtual void DocumentAvailableInMainFrame() {} |
| 186 | 192 |
| 187 // This method is invoked once the onload handler of the main frame has | 193 // This method is invoked once the onload handler of the main frame has |
| 188 // completed. | 194 // completed. |
| 189 virtual void DocumentOnLoadCompletedInMainFrame() {} | 195 virtual void DocumentOnLoadCompletedInMainFrame() {} |
| 190 | 196 |
| 191 // This method is invoked when the document in the given frame finished | 197 // This method is invoked when the document in the given frame finished |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 void ResetWebContents(); | 401 void ResetWebContents(); |
| 396 | 402 |
| 397 WebContentsImpl* web_contents_; | 403 WebContentsImpl* web_contents_; |
| 398 | 404 |
| 399 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 405 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 400 }; | 406 }; |
| 401 | 407 |
| 402 } // namespace content | 408 } // namespace content |
| 403 | 409 |
| 404 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 410 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |