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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 int error_code, | 88 int error_code, |
89 const string16& error_description, | 89 const string16& error_description, |
90 RenderViewHost* render_view_host) {} | 90 RenderViewHost* render_view_host) {} |
91 virtual void DidStartLoading(RenderViewHost* render_view_host) {} | 91 virtual void DidStartLoading(RenderViewHost* render_view_host) {} |
92 virtual void DidStopLoading(RenderViewHost* render_view_host) {} | 92 virtual void DidStopLoading(RenderViewHost* render_view_host) {} |
93 | 93 |
94 virtual void DidGetUserGesture() {} | 94 virtual void DidGetUserGesture() {} |
95 virtual void DidGetIgnoredUIEvent() {} | 95 virtual void DidGetIgnoredUIEvent() {} |
96 virtual void StopNavigation() {} | 96 virtual void StopNavigation() {} |
97 | 97 |
98 virtual void DidOpenURL(const GURL& url, | |
99 const Referrer& referrer, | |
100 WindowOpenDisposition disposition, | |
101 PageTransition transition) {} | |
102 | |
103 virtual void DidOpenRequestedURL(WebContents* new_contents, | 98 virtual void DidOpenRequestedURL(WebContents* new_contents, |
104 const GURL& url, | 99 const GURL& url, |
105 const Referrer& referrer, | 100 const Referrer& referrer, |
106 WindowOpenDisposition disposition, | 101 WindowOpenDisposition disposition, |
107 PageTransition transition, | 102 PageTransition transition, |
108 int64 source_frame_id) {} | 103 int64 source_frame_id) {} |
109 | 104 |
110 virtual void WasShown() {} | 105 virtual void WasShown() {} |
111 | 106 |
112 virtual void AppCacheAccessed(const GURL& manifest_url, | 107 virtual void AppCacheAccessed(const GURL& manifest_url, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 void WebContentsImplDestroyed(); | 174 void WebContentsImplDestroyed(); |
180 | 175 |
181 WebContentsImpl* web_contents_; | 176 WebContentsImpl* web_contents_; |
182 | 177 |
183 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 178 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
184 }; | 179 }; |
185 | 180 |
186 } // namespace content | 181 } // namespace content |
187 | 182 |
188 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 183 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |