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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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, | 
| 99 const Referrer& referrer, | 99 const Referrer& referrer, | 
| 100 WindowOpenDisposition disposition, | 100 WindowOpenDisposition disposition, | 
| 101 PageTransition transition) {} | 101 PageTransition transition) {} | 
| 102 | 102 | 
| 103 virtual void AboutToOpenURL(const GURL& url) {} | |
| 
 
sky
2012/12/06 22:37:29
Add description.
 
Shishir
2012/12/06 23:20:30
Not sure how useful it is, but added.
 
 | |
| 104 | |
| 103 virtual void DidOpenRequestedURL(WebContents* new_contents, | 105 virtual void DidOpenRequestedURL(WebContents* new_contents, | 
| 104 const GURL& url, | 106 const GURL& url, | 
| 105 const Referrer& referrer, | 107 const Referrer& referrer, | 
| 106 WindowOpenDisposition disposition, | 108 WindowOpenDisposition disposition, | 
| 107 PageTransition transition, | 109 PageTransition transition, | 
| 108 int64 source_frame_id) {} | 110 int64 source_frame_id) {} | 
| 109 | 111 | 
| 110 virtual void WasShown() {} | 112 virtual void WasShown() {} | 
| 111 | 113 | 
| 112 virtual void AppCacheAccessed(const GURL& manifest_url, | 114 virtual void AppCacheAccessed(const GURL& manifest_url, | 
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 179 void WebContentsImplDestroyed(); | 181 void WebContentsImplDestroyed(); | 
| 180 | 182 | 
| 181 WebContentsImpl* web_contents_; | 183 WebContentsImpl* web_contents_; | 
| 182 | 184 | 
| 183 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 185 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 
| 184 }; | 186 }; | 
| 185 | 187 | 
| 186 } // namespace content | 188 } // namespace content | 
| 187 | 189 | 
| 188 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 190 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 
| OLD | NEW |