diff options
author | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-31 01:57:30 +0000 |
---|---|---|
committer | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-31 01:57:30 +0000 |
commit | f0d3e9075fc6adefd035831fa165f32ebe4f9765 (patch) | |
tree | 62a5149089716659873b3a1f08fb2a3ec2367201 /chrome/common/thumbnail_score.h | |
parent | 1ce87506562f6766d3734f7ff4b6ff311e38ef22 (diff) | |
download | chromium_src-f0d3e9075fc6adefd035831fa165f32ebe4f9765.zip chromium_src-f0d3e9075fc6adefd035831fa165f32ebe4f9765.tar.gz chromium_src-f0d3e9075fc6adefd035831fa165f32ebe4f9765.tar.bz2 |
Add load_completed property to ThumbnailScore.
Thumbnails taken while page loading may only contain partial contents,
hence these are not desirable.
BUG=65936
TEST=with --enable-in-browser-thumbnailing --vmodule=thumbnail_generator=1, confirm that thumbnails taken while page loading were replaced with new ones properly.
Review URL: http://codereview.chromium.org/6962008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87264 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/thumbnail_score.h')
-rw-r--r-- | chrome/common/thumbnail_score.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/common/thumbnail_score.h b/chrome/common/thumbnail_score.h index d35d7d8..0a0650b 100644 --- a/chrome/common/thumbnail_score.h +++ b/chrome/common/thumbnail_score.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -57,6 +57,11 @@ struct ThumbnailScore { // thumbnails with |at_top| set to false. bool at_top; + // Whether this thumbnail was taken after load was completed. + // Thumbnails taken while page loading may only contain partial + // contents. + bool load_completed; + // Record the time when a thumbnail was taken. This is used to make // sure thumbnails are kept fresh. base::Time time_at_snapshot; |