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

Side by Side Diff: chrome/browser/thumbnails/thumbnail_tab_helper.cc

Issue 1008913002: Remove RenderViewHost parameter from WebContentsObserver::Did{Start|Stop}Loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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 unified diff | Download patch
OLDNEW
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 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h" 5 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h"
6 6
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/thumbnails/thumbnail_service.h" 9 #include "chrome/browser/thumbnails/thumbnail_service.h"
10 #include "chrome/browser/thumbnails/thumbnail_service_factory.h" 10 #include "chrome/browser/thumbnails/thumbnail_service_factory.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED, 155 content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED,
156 content::Source<RenderWidgetHost>(render_view_host)); 156 content::Source<RenderWidgetHost>(render_view_host));
157 if (registered) { 157 if (registered) {
158 registrar_.Remove( 158 registrar_.Remove(
159 this, 159 this,
160 content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED, 160 content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED,
161 content::Source<RenderWidgetHost>(render_view_host)); 161 content::Source<RenderWidgetHost>(render_view_host));
162 } 162 }
163 } 163 }
164 164
165 void ThumbnailTabHelper::DidStartLoading( 165 void ThumbnailTabHelper::DidStartLoading() {
166 content::RenderViewHost* render_view_host) {
167 load_interrupted_ = false; 166 load_interrupted_ = false;
168 } 167 }
169 168
170 void ThumbnailTabHelper::NavigationStopped() { 169 void ThumbnailTabHelper::NavigationStopped() {
171 // This function gets called when the page loading is interrupted by the 170 // This function gets called when the page loading is interrupted by the
172 // stop button. 171 // stop button.
173 load_interrupted_ = true; 172 load_interrupted_ = true;
174 } 173 }
175 174
176 void ThumbnailTabHelper::UpdateThumbnailIfNecessary( 175 void ThumbnailTabHelper::UpdateThumbnailIfNecessary(
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED, 219 content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED,
221 content::Source<RenderWidgetHost>(renderer)); 220 content::Source<RenderWidgetHost>(renderer));
222 } 221 }
223 } 222 }
224 223
225 void ThumbnailTabHelper::WidgetHidden(RenderWidgetHost* widget) { 224 void ThumbnailTabHelper::WidgetHidden(RenderWidgetHost* widget) {
226 if (!enabled_) 225 if (!enabled_)
227 return; 226 return;
228 UpdateThumbnailIfNecessary(web_contents()); 227 UpdateThumbnailIfNecessary(web_contents());
229 } 228 }
OLDNEW
« no previous file with comments | « chrome/browser/thumbnails/thumbnail_tab_helper.h ('k') | chrome/browser/ui/tab_contents/core_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698