| 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.h" | 8 #include "base/process.h" |
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/public/browser/navigation_controller.h" | 11 #include "content/public/browser/navigation_controller.h" |
| 12 #include "content/public/common/page_transition_types.h" | 12 #include "content/public/common/page_transition_types.h" |
| 13 #include "content/public/common/three_d_api_types.h" | |
| 14 #include "ipc/ipc_listener.h" | 13 #include "ipc/ipc_listener.h" |
| 15 #include "ipc/ipc_sender.h" | 14 #include "ipc/ipc_sender.h" |
| 16 #include "ui/base/window_open_disposition.h" | 15 #include "ui/base/window_open_disposition.h" |
| 17 | 16 |
| 18 namespace content { | 17 namespace content { |
| 19 | 18 |
| 20 class RenderViewHost; | 19 class RenderViewHost; |
| 21 class WebContents; | 20 class WebContents; |
| 22 class WebContentsImpl; | 21 class WebContentsImpl; |
| 23 struct FaviconURL; | 22 struct FaviconURL; |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 WebContents* new_web_contents) {} | 226 WebContents* new_web_contents) {} |
| 228 | 227 |
| 229 // Invoked when the WebContents is being destroyed. Gives subclasses a chance | 228 // Invoked when the WebContents is being destroyed. Gives subclasses a chance |
| 230 // to cleanup. At the time this is invoked |web_contents()| returns NULL. | 229 // to cleanup. At the time this is invoked |web_contents()| returns NULL. |
| 231 // It is safe to delete 'this' from here. | 230 // It is safe to delete 'this' from here. |
| 232 virtual void WebContentsDestroyed(WebContents* web_contents) {} | 231 virtual void WebContentsDestroyed(WebContents* web_contents) {} |
| 233 | 232 |
| 234 // Called when the user agent override for a WebContents has been changed. | 233 // Called when the user agent override for a WebContents has been changed. |
| 235 virtual void UserAgentOverrideSet(const std::string& user_agent) {} | 234 virtual void UserAgentOverrideSet(const std::string& user_agent) {} |
| 236 | 235 |
| 237 // Indicates that client 3D APIs (Pepper 3D, WebGL) were just | |
| 238 // blocked on the current page, specifically because the GPU was | |
| 239 // reset recently. | |
| 240 virtual void DidBlock3DAPIs(const GURL& url, | |
| 241 ThreeDAPIType requester) {} | |
| 242 | |
| 243 // Invoked when new FaviconURL candidates are received from the renderer. | 236 // Invoked when new FaviconURL candidates are received from the renderer. |
| 244 virtual void DidUpdateFaviconURL(int32 page_id, | 237 virtual void DidUpdateFaviconURL(int32 page_id, |
| 245 const std::vector<FaviconURL>& candidates) {} | 238 const std::vector<FaviconURL>& candidates) {} |
| 246 | 239 |
| 247 // Invoked when a pepper plugin creates and shows or destroys a fullscreen | 240 // Invoked when a pepper plugin creates and shows or destroys a fullscreen |
| 248 // render widget. | 241 // render widget. |
| 249 virtual void DidShowFullscreenWidget(int routing_id) {} | 242 virtual void DidShowFullscreenWidget(int routing_id) {} |
| 250 virtual void DidDestroyFullscreenWidget(int routing_id) {} | 243 virtual void DidDestroyFullscreenWidget(int routing_id) {} |
| 251 | 244 |
| 252 // Invoked when visible SSL state (as defined by SSLStatus) changes. | 245 // Invoked when visible SSL state (as defined by SSLStatus) changes. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 void WebContentsImplDestroyed(); | 277 void WebContentsImplDestroyed(); |
| 285 | 278 |
| 286 WebContentsImpl* web_contents_; | 279 WebContentsImpl* web_contents_; |
| 287 | 280 |
| 288 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 281 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 289 }; | 282 }; |
| 290 | 283 |
| 291 } // namespace content | 284 } // namespace content |
| 292 | 285 |
| 293 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 286 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |