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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 382 bool is_hung) {} | 382 bool is_hung) {} |
| 383 | 383 |
| 384 // Invoked when WebContents::Clone() was used to clone a WebContents. | 384 // Invoked when WebContents::Clone() was used to clone a WebContents. |
| 385 virtual void DidCloneToNewWebContents(WebContents* old_web_contents, | 385 virtual void DidCloneToNewWebContents(WebContents* old_web_contents, |
| 386 WebContents* new_web_contents) {} | 386 WebContents* new_web_contents) {} |
| 387 | 387 |
| 388 // Invoked when the WebContents is being destroyed. Gives subclasses a chance | 388 // Invoked when the WebContents is being destroyed. Gives subclasses a chance |
| 389 // to cleanup. After the whole loop over all WebContentsObservers has been | 389 // to cleanup. After the whole loop over all WebContentsObservers has been |
| 390 // finished, web_contents() returns nullptr. | 390 // finished, web_contents() returns nullptr. |
| 391 virtual void WebContentsDestroyed() {} | 391 virtual void WebContentsDestroyed() {} |
| 392 virtual void WebContentsDestroyed(WebContents* content) {} | |
|
Avi (use Gerrit)
2016/01/07 01:22:34
What? No.
GeorgeZ
2016/01/07 22:35:31
Undo and removed it.
| |
| 392 | 393 |
| 393 // Called when the user agent override for a WebContents has been changed. | 394 // Called when the user agent override for a WebContents has been changed. |
| 394 virtual void UserAgentOverrideSet(const std::string& user_agent) {} | 395 virtual void UserAgentOverrideSet(const std::string& user_agent) {} |
| 395 | 396 |
| 396 // Invoked when new FaviconURL candidates are received from the renderer | 397 // Invoked when new FaviconURL candidates are received from the renderer |
| 397 // process. | 398 // process. |
| 398 virtual void DidUpdateFaviconURL(const std::vector<FaviconURL>& candidates) {} | 399 virtual void DidUpdateFaviconURL(const std::vector<FaviconURL>& candidates) {} |
| 399 | 400 |
| 400 // Invoked when a pepper plugin creates and shows or destroys a fullscreen | 401 // Invoked when a pepper plugin creates and shows or destroys a fullscreen |
| 401 // RenderWidget. | 402 // RenderWidget. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 480 void ResetWebContents(); | 481 void ResetWebContents(); |
| 481 | 482 |
| 482 WebContentsImpl* web_contents_; | 483 WebContentsImpl* web_contents_; |
| 483 | 484 |
| 484 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 485 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 485 }; | 486 }; |
| 486 | 487 |
| 487 } // namespace content | 488 } // namespace content |
| 488 | 489 |
| 489 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 490 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |