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

Side by Side Diff: chrome/browser/jumplist_win.h

Issue 11515005: Delay updating jumplist to avoid blocking the file thread at start-up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | chrome/browser/jumplist_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_JUMPLIST_WIN_H_ 5 #ifndef CHROME_BROWSER_JUMPLIST_WIN_H_
6 #define CHROME_BROWSER_JUMPLIST_WIN_H_ 6 #define CHROME_BROWSER_JUMPLIST_WIN_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 typedef std::pair<std::string, scoped_refptr<ShellLinkItem> > URLPair; 237 typedef std::pair<std::string, scoped_refptr<ShellLinkItem> > URLPair;
238 std::list<URLPair> icon_urls_; 238 std::list<URLPair> icon_urls_;
239 239
240 // Id of last favicon task. It's used to cancel current task if a new one 240 // Id of last favicon task. It's used to cancel current task if a new one
241 // comes in before it finishes. 241 // comes in before it finishes.
242 CancelableTaskTracker::TaskId task_id_; 242 CancelableTaskTracker::TaskId task_id_;
243 243
244 // Lock for most_visited_pages_, recently_closed_pages_, icon_urls_ 244 // Lock for most_visited_pages_, recently_closed_pages_, icon_urls_
245 // as they may be used by up to 3 threads. 245 // as they may be used by up to 3 threads.
246 base::Lock list_lock_; 246 base::Lock list_lock_;
247
248 // True if the initial page load is still in progress.
249 bool initial_page_load_pending_;
250
251 // True if an update has been requested before startup completed.
252 bool update_pending_;
247 }; 253 };
sky 2012/12/13 23:07:51 DISALLOW_COPY...
Cait (Slow) 2012/12/18 17:49:21 Done.
248 254
249 #endif // CHROME_BROWSER_JUMPLIST_WIN_H_ 255 #endif // CHROME_BROWSER_JUMPLIST_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/jumplist_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698