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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, |
102 WindowOpenDisposition disposition, | 102 WindowOpenDisposition disposition, |
103 PageTransition transition, | 103 PageTransition transition, |
104 int64 source_frame_id) {} | 104 int64 source_frame_id) {} |
105 | 105 |
106 virtual void WasRestored() {} | 106 virtual void WasShown() {} |
107 | 107 |
108 virtual void AppCacheAccessed(const GURL& manifest_url, | 108 virtual void AppCacheAccessed(const GURL& manifest_url, |
109 bool blocked_by_policy) {} | 109 bool blocked_by_policy) {} |
110 | 110 |
111 // Notification that a plugin has crashed. | 111 // Notification that a plugin has crashed. |
112 virtual void PluginCrashed(const FilePath& plugin_path) {} | 112 virtual void PluginCrashed(const FilePath& plugin_path) {} |
113 | 113 |
114 // Notication that the given plugin has hung or become unhung. This | 114 // Notication that the given plugin has hung or become unhung. This |
115 // notification is only for Pepper plugins. | 115 // notification is only for Pepper plugins. |
116 // | 116 // |
(...skipping 41 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 |