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 #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 Loading... |
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 } |
OLD | NEW |