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

Side by Side Diff: chrome/browser/tab_contents/thumbnail_generator.cc

Issue 10805051: Add RenderViewHost* to DidStartLoading and DidStopLoading in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
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/tab_contents/thumbnail_generator.h" 5 #include "chrome/browser/tab_contents/thumbnail_generator.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 // Skip if we don't have to udpate the temporary thumbnail (i.e. the one 558 // Skip if we don't have to udpate the temporary thumbnail (i.e. the one
559 // not yet saved). 559 // not yet saved).
560 ThumbnailScore temporary_score; 560 ThumbnailScore temporary_score;
561 if (top_sites->GetTemporaryPageThumbnailScore(url, &temporary_score) && 561 if (top_sites->GetTemporaryPageThumbnailScore(url, &temporary_score) &&
562 !temporary_score.ShouldConsiderUpdating()) 562 !temporary_score.ShouldConsiderUpdating())
563 return false; 563 return false;
564 564
565 return true; 565 return true;
566 } 566 }
567 567
568 void ThumbnailGenerator::DidStartLoading() { 568 void ThumbnailGenerator::DidStartLoading(
569 content::RenderViewHost* render_view_host) {
569 load_interrupted_ = false; 570 load_interrupted_ = false;
570 } 571 }
571 572
572 void ThumbnailGenerator::StopNavigation() { 573 void ThumbnailGenerator::StopNavigation() {
573 // This function gets called when the page loading is interrupted by the 574 // This function gets called when the page loading is interrupted by the
574 // stop button. 575 // stop button.
575 load_interrupted_ = true; 576 load_interrupted_ = true;
576 } 577 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/thumbnail_generator.h ('k') | chrome/browser/ui/sync/one_click_signin_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698