Chromium Code Reviews| 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, | 98 virtual void DidOpenURL(const GURL& url, | 
| 
 
jam
2012/12/07 06:18:15
nit: looks like this isn't used anymore, can you r
 
Shishir
2012/12/07 21:01:25
Done.
 
 | |
| 99 const Referrer& referrer, | 99 const Referrer& referrer, | 
| 100 WindowOpenDisposition disposition, | 100 WindowOpenDisposition disposition, | 
| 101 PageTransition transition) {} | 101 PageTransition transition) {} | 
| 102 | 102 | 
| 103 // Invoked just before the WebContents opens the |url|. | |
| 104 virtual void AboutToOpenURL(const GURL& url) {} | |
| 105 | |
| 103 virtual void DidOpenRequestedURL(WebContents* new_contents, | 106 virtual void DidOpenRequestedURL(WebContents* new_contents, | 
| 104 const GURL& url, | 107 const GURL& url, | 
| 105 const Referrer& referrer, | 108 const Referrer& referrer, | 
| 106 WindowOpenDisposition disposition, | 109 WindowOpenDisposition disposition, | 
| 107 PageTransition transition, | 110 PageTransition transition, | 
| 108 int64 source_frame_id) {} | 111 int64 source_frame_id) {} | 
| 109 | 112 | 
| 110 virtual void WasShown() {} | 113 virtual void WasShown() {} | 
| 111 | 114 | 
| 112 virtual void AppCacheAccessed(const GURL& manifest_url, | 115 virtual void AppCacheAccessed(const GURL& manifest_url, | 
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 179 void WebContentsImplDestroyed(); | 182 void WebContentsImplDestroyed(); | 
| 180 | 183 | 
| 181 WebContentsImpl* web_contents_; | 184 WebContentsImpl* web_contents_; | 
| 182 | 185 | 
| 183 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 186 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 
| 184 }; | 187 }; | 
| 185 | 188 | 
| 186 } // namespace content | 189 } // namespace content | 
| 187 | 190 | 
| 188 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 191 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 
| OLD | NEW |