| 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_util.h" | 8 #include "base/process_util.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 const LoadCommittedDetails& details, | 45 const LoadCommittedDetails& details, |
| 46 const FrameNavigateParams& params) {} | 46 const FrameNavigateParams& params) {} |
| 47 // |render_view_host| is the RenderViewHost for which the provisional load is | 47 // |render_view_host| is the RenderViewHost for which the provisional load is |
| 48 // happening. | 48 // happening. |
| 49 virtual void DidStartProvisionalLoadForFrame( | 49 virtual void DidStartProvisionalLoadForFrame( |
| 50 int64 frame_id, | 50 int64 frame_id, |
| 51 bool is_main_frame, | 51 bool is_main_frame, |
| 52 const GURL& validated_url, | 52 const GURL& validated_url, |
| 53 bool is_error_page, | 53 bool is_error_page, |
| 54 RenderViewHost* render_view_host) {} | 54 RenderViewHost* render_view_host) {} |
| 55 virtual void ProvisionalChangeToMainFrameUrl( | |
| 56 const GURL& url, | |
| 57 const GURL& opener_url, | |
| 58 RenderViewHost* render_view_host) {} | |
| 59 virtual void DidCommitProvisionalLoadForFrame( | 55 virtual void DidCommitProvisionalLoadForFrame( |
| 60 int64 frame_id, | 56 int64 frame_id, |
| 61 bool is_main_frame, | 57 bool is_main_frame, |
| 62 const GURL& url, | 58 const GURL& url, |
| 63 PageTransition transition_type, | 59 PageTransition transition_type, |
| 64 RenderViewHost* render_view_host) {} | 60 RenderViewHost* render_view_host) {} |
| 65 virtual void DidFailProvisionalLoad(int64 frame_id, | 61 virtual void DidFailProvisionalLoad(int64 frame_id, |
| 66 bool is_main_frame, | 62 bool is_main_frame, |
| 67 const GURL& validated_url, | 63 const GURL& validated_url, |
| 68 int error_code, | 64 int error_code, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 void WebContentsImplDestroyed(); | 147 void WebContentsImplDestroyed(); |
| 152 | 148 |
| 153 WebContentsImpl* web_contents_; | 149 WebContentsImpl* web_contents_; |
| 154 | 150 |
| 155 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 151 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 156 }; | 152 }; |
| 157 | 153 |
| 158 } // namespace content | 154 } // namespace content |
| 159 | 155 |
| 160 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 156 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |