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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 virtual void DidFinishLoad(int64 frame_id, | 77 virtual void DidFinishLoad(int64 frame_id, |
78 const GURL& validated_url, | 78 const GURL& validated_url, |
79 bool is_main_frame, | 79 bool is_main_frame, |
80 RenderViewHost* render_view_host) {} | 80 RenderViewHost* render_view_host) {} |
81 virtual void DidFailLoad(int64 frame_id, | 81 virtual void DidFailLoad(int64 frame_id, |
82 const GURL& validated_url, | 82 const GURL& validated_url, |
83 bool is_main_frame, | 83 bool is_main_frame, |
84 int error_code, | 84 int error_code, |
85 const string16& error_description, | 85 const string16& error_description, |
86 RenderViewHost* render_view_host) {} | 86 RenderViewHost* render_view_host) {} |
| 87 virtual void DidStartLoading(RenderViewHost* render_view_host) {} |
| 88 virtual void DidStopLoading(RenderViewHost* render_view_host) {} |
| 89 |
87 virtual void DidGetUserGesture() {} | 90 virtual void DidGetUserGesture() {} |
88 virtual void DidGetIgnoredUIEvent() {} | 91 virtual void DidGetIgnoredUIEvent() {} |
89 | |
90 virtual void DidStartLoading() {} | |
91 virtual void DidStopLoading() {} | |
92 virtual void StopNavigation() {} | 92 virtual void StopNavigation() {} |
93 | 93 |
94 virtual void DidOpenURL(const GURL& url, | 94 virtual void DidOpenURL(const GURL& url, |
95 const Referrer& referrer, | 95 const Referrer& referrer, |
96 WindowOpenDisposition disposition, | 96 WindowOpenDisposition disposition, |
97 PageTransition transition) {} | 97 PageTransition transition) {} |
98 | 98 |
99 virtual void DidOpenRequestedURL(WebContents* new_contents, | 99 virtual void DidOpenRequestedURL(WebContents* new_contents, |
100 const GURL& url, | 100 const GURL& url, |
101 const Referrer& referrer, | 101 const Referrer& referrer, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 void WebContentsImplDestroyed(); | 158 void WebContentsImplDestroyed(); |
159 | 159 |
160 WebContentsImpl* web_contents_; | 160 WebContentsImpl* web_contents_; |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 162 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
163 }; | 163 }; |
164 | 164 |
165 } // namespace content | 165 } // namespace content |
166 | 166 |
167 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 167 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |