| 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 30 matching lines...) Expand all Loading... |
| 41 const LoadCommittedDetails& details, | 41 const LoadCommittedDetails& details, |
| 42 const FrameNavigateParams& params) {} | 42 const FrameNavigateParams& params) {} |
| 43 // |render_view_host| is the RenderViewHost for which the provisional load is | 43 // |render_view_host| is the RenderViewHost for which the provisional load is |
| 44 // happening. | 44 // happening. |
| 45 virtual void DidStartProvisionalLoadForFrame( | 45 virtual void DidStartProvisionalLoadForFrame( |
| 46 int64 frame_id, | 46 int64 frame_id, |
| 47 bool is_main_frame, | 47 bool is_main_frame, |
| 48 const GURL& validated_url, | 48 const GURL& validated_url, |
| 49 bool is_error_page, | 49 bool is_error_page, |
| 50 RenderViewHost* render_view_host) {} | 50 RenderViewHost* render_view_host) {} |
| 51 virtual void ProvisionalChangeToMainFrameUrl( | |
| 52 const GURL& url, | |
| 53 const GURL& opener_url, | |
| 54 RenderViewHost* render_view_host) {} | |
| 55 virtual void DidCommitProvisionalLoadForFrame( | 51 virtual void DidCommitProvisionalLoadForFrame( |
| 56 int64 frame_id, | 52 int64 frame_id, |
| 57 bool is_main_frame, | 53 bool is_main_frame, |
| 58 const GURL& url, | 54 const GURL& url, |
| 59 PageTransition transition_type, | 55 PageTransition transition_type, |
| 60 RenderViewHost* render_view_host) {} | 56 RenderViewHost* render_view_host) {} |
| 61 virtual void DidFailProvisionalLoad(int64 frame_id, | 57 virtual void DidFailProvisionalLoad(int64 frame_id, |
| 62 bool is_main_frame, | 58 bool is_main_frame, |
| 63 const GURL& validated_url, | 59 const GURL& validated_url, |
| 64 int error_code, | 60 int error_code, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 void WebContentsImplDestroyed(); | 143 void WebContentsImplDestroyed(); |
| 148 | 144 |
| 149 WebContentsImpl* web_contents_; | 145 WebContentsImpl* web_contents_; |
| 150 | 146 |
| 151 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 147 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 152 }; | 148 }; |
| 153 | 149 |
| 154 } // namespace content | 150 } // namespace content |
| 155 | 151 |
| 156 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 152 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |