| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 bool is_error_page, | 118 bool is_error_page, |
| 119 bool is_iframe_srcdoc, | 119 bool is_iframe_srcdoc, |
| 120 RenderViewHost* render_view_host) {} | 120 RenderViewHost* render_view_host) {} |
| 121 | 121 |
| 122 // This method is invoked right after the DidStartProvisionalLoadForFrame if | 122 // This method is invoked right after the DidStartProvisionalLoadForFrame if |
| 123 // the provisional load affects the main frame, or if the provisional load | 123 // the provisional load affects the main frame, or if the provisional load |
| 124 // was redirected. The latter use case is DEPRECATED. You should listen to | 124 // was redirected. The latter use case is DEPRECATED. You should listen to |
| 125 // WebContentsObserver::DidGetRedirectForResourceRequest instead. | 125 // WebContentsObserver::DidGetRedirectForResourceRequest instead. |
| 126 virtual void ProvisionalChangeToMainFrameUrl( | 126 virtual void ProvisionalChangeToMainFrameUrl( |
| 127 const GURL& url, | 127 const GURL& url, |
| 128 RenderViewHost* render_view_host) {} | 128 RenderFrameHost* render_frame_host) {} |
| 129 | 129 |
| 130 // This method is invoked when the provisional load was successfully | 130 // This method is invoked when the provisional load was successfully |
| 131 // committed. The |render_view_host| is now the current RenderViewHost of the | 131 // committed. The |render_view_host| is now the current RenderViewHost of the |
| 132 // WebContents. | 132 // WebContents. |
| 133 // | 133 // |
| 134 // If the navigation only changed the reference fragment, or was triggered | 134 // If the navigation only changed the reference fragment, or was triggered |
| 135 // using the history API (e.g. window.history.replaceState), we will receive | 135 // using the history API (e.g. window.history.replaceState), we will receive |
| 136 // this signal without a prior DidStartProvisionalLoadForFrame signal. | 136 // this signal without a prior DidStartProvisionalLoadForFrame signal. |
| 137 virtual void DidCommitProvisionalLoadForFrame( | 137 virtual void DidCommitProvisionalLoadForFrame( |
| 138 int64 frame_id, | 138 int64 frame_id, |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 void WebContentsImplDestroyed(); | 353 void WebContentsImplDestroyed(); |
| 354 | 354 |
| 355 WebContentsImpl* web_contents_; | 355 WebContentsImpl* web_contents_; |
| 356 | 356 |
| 357 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 357 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 358 }; | 358 }; |
| 359 | 359 |
| 360 } // namespace content | 360 } // namespace content |
| 361 | 361 |
| 362 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 362 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |