| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 // This method is invoked when the provisional load was successfully | 148 // This method is invoked when the provisional load was successfully |
| 149 // committed. | 149 // committed. |
| 150 // | 150 // |
| 151 // If the navigation only changed the reference fragment, or was triggered | 151 // If the navigation only changed the reference fragment, or was triggered |
| 152 // using the history API (e.g. window.history.replaceState), we will receive | 152 // using the history API (e.g. window.history.replaceState), we will receive |
| 153 // this signal without a prior DidStartProvisionalLoadForFrame signal. | 153 // this signal without a prior DidStartProvisionalLoadForFrame signal. |
| 154 virtual void DidCommitProvisionalLoadForFrame( | 154 virtual void DidCommitProvisionalLoadForFrame( |
| 155 RenderFrameHost* render_frame_host, | 155 RenderFrameHost* render_frame_host, |
| 156 const GURL& url, | 156 const GURL& url, |
| 157 bool url_is_unreachable, |
| 157 ui::PageTransition transition_type) {} | 158 ui::PageTransition transition_type) {} |
| 158 | 159 |
| 159 // This method is invoked when the provisional load failed. | 160 // This method is invoked when the provisional load failed. |
| 160 virtual void DidFailProvisionalLoad( | 161 virtual void DidFailProvisionalLoad( |
| 161 RenderFrameHost* render_frame_host, | 162 RenderFrameHost* render_frame_host, |
| 162 const GURL& validated_url, | 163 const GURL& validated_url, |
| 163 int error_code, | 164 int error_code, |
| 164 const base::string16& error_description) {} | 165 const base::string16& error_description) {} |
| 165 | 166 |
| 166 // If the provisional load corresponded to the main frame, this method is | 167 // If the provisional load corresponded to the main frame, this method is |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 void ResetWebContents(); | 368 void ResetWebContents(); |
| 368 | 369 |
| 369 WebContentsImpl* web_contents_; | 370 WebContentsImpl* web_contents_; |
| 370 | 371 |
| 371 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 372 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 372 }; | 373 }; |
| 373 | 374 |
| 374 } // namespace content | 375 } // namespace content |
| 375 | 376 |
| 376 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 377 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |