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

Unified Diff: chrome/browser/thumbnails/thumbnail_tab_helper.h

Issue 2859263002: ThumbnailTabHelper: Capture thumbnail when page load finishes (Closed)
Patch Set: review: comment Created 3 years, 7 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
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | chrome/browser/thumbnails/thumbnail_tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/thumbnails/thumbnail_tab_helper.h
diff --git a/chrome/browser/thumbnails/thumbnail_tab_helper.h b/chrome/browser/thumbnails/thumbnail_tab_helper.h
index aae839e6d97253aec792adb41f28c930ce1d5084..b91b05ab115336cee6b24b0ac2744fd9874b0f84 100644
--- a/chrome/browser/thumbnails/thumbnail_tab_helper.h
+++ b/chrome/browser/thumbnails/thumbnail_tab_helper.h
@@ -38,6 +38,7 @@ class ThumbnailTabHelper
// content::WebContentsObserver overrides.
void RenderViewDeleted(content::RenderViewHost* render_view_host) override;
void DidStartLoading() override;
+ void DidStopLoading() override;
void NavigationStopped() override;
// Update the thumbnail of the given tab contents if necessary.
@@ -67,6 +68,8 @@ class ThumbnailTabHelper
// Indicates that the given widget has changed is visibility.
void WidgetHidden(content::RenderWidgetHost* widget);
+ const bool capture_on_load_finished_;
+
content::NotificationRegistrar registrar_;
scoped_refptr<thumbnails::ThumbnailingContext> thumbnailing_context_;
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | chrome/browser/thumbnails/thumbnail_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698