Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2134)

Unified Diff: content/public/browser/web_contents_observer.h

Issue 2780373002: Use observer pattern instead of sniffing SwapCompositorFrame IPC (Closed)
Patch Set: Addressed comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/browser/web_contents_observer.h
diff --git a/content/public/browser/web_contents_observer.h b/content/public/browser/web_contents_observer.h
index 3de52be6ddc99655bb6148d9c25f1379df5ec10b..92b3f530c11d0dce6476314557cf1053c3cd770a 100644
--- a/content/public/browser/web_contents_observer.h
+++ b/content/public/browser/web_contents_observer.h
@@ -423,6 +423,9 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener,
// Notification that |contents| has gained focus.
virtual void OnWebContentsFocused() {}
+ // Notifes that a CompositorFrame was received from the renderer.
+ virtual void DidReceiveCompositorFrame() {}
+
// IPC::Listener implementation.
bool OnMessageReceived(const IPC::Message& message) override;
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura_browsertest.cc ('k') | content/public/test/browser_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698