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

Side by Side Diff: chrome/browser/history/top_sites.h

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 years, 11 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
« no previous file with comments | « chrome/browser/hang_monitor/hung_window_detector.h ('k') | chrome/browser/history/top_sites.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_HISTORY_TOP_SITES_H_ 5 #ifndef CHROME_BROWSER_HISTORY_TOP_SITES_H_
6 #define CHROME_BROWSER_HISTORY_TOP_SITES_H_ 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <utility> 12 #include <utility>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/lock.h"
17 #include "base/ref_counted.h" 16 #include "base/ref_counted.h"
18 #include "base/ref_counted_memory.h" 17 #include "base/ref_counted_memory.h"
18 #include "base/synchronization/lock.h"
19 #include "base/time.h" 19 #include "base/time.h"
20 #include "base/timer.h" 20 #include "base/timer.h"
21 #include "chrome/browser/cancelable_request.h" 21 #include "chrome/browser/cancelable_request.h"
22 #include "chrome/browser/history/history_types.h" 22 #include "chrome/browser/history/history_types.h"
23 #include "chrome/browser/history/history.h" 23 #include "chrome/browser/history/history.h"
24 #include "chrome/browser/history/page_usage_data.h" 24 #include "chrome/browser/history/page_usage_data.h"
25 #include "chrome/common/thumbnail_score.h" 25 #include "chrome/common/thumbnail_score.h"
26 #include "googleurl/src/gurl.h" 26 #include "googleurl/src/gurl.h"
27 27
28 class DictionaryValue; 28 class DictionaryValue;
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 scoped_ptr<TopSitesCache> cache_; 293 scoped_ptr<TopSitesCache> cache_;
294 294
295 // Copy of the top sites data that may be accessed on any thread (assuming 295 // Copy of the top sites data that may be accessed on any thread (assuming
296 // you hold |lock_|). The data in |thread_safe_cache_| has blacklisted and 296 // you hold |lock_|). The data in |thread_safe_cache_| has blacklisted and
297 // pinned urls applied (|cache_| does not). 297 // pinned urls applied (|cache_| does not).
298 scoped_ptr<TopSitesCache> thread_safe_cache_; 298 scoped_ptr<TopSitesCache> thread_safe_cache_;
299 299
300 Profile* profile_; 300 Profile* profile_;
301 301
302 // Lock used to access |thread_safe_cache_|. 302 // Lock used to access |thread_safe_cache_|.
303 mutable Lock lock_; 303 mutable base::Lock lock_;
304 304
305 CancelableRequestConsumer cancelable_consumer_; 305 CancelableRequestConsumer cancelable_consumer_;
306 306
307 // Timer that asks history for the top sites. This is used to make sure our 307 // Timer that asks history for the top sites. This is used to make sure our
308 // data stays in sync with history. 308 // data stays in sync with history.
309 base::OneShotTimer<TopSites> timer_; 309 base::OneShotTimer<TopSites> timer_;
310 310
311 // The time we started |timer_| at. Only valid if |timer_| is running. 311 // The time we started |timer_| at. Only valid if |timer_| is running.
312 base::TimeTicks timer_start_time_; 312 base::TimeTicks timer_start_time_;
313 313
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 349
350 // Are we loaded? 350 // Are we loaded?
351 bool loaded_; 351 bool loaded_;
352 352
353 DISALLOW_COPY_AND_ASSIGN(TopSites); 353 DISALLOW_COPY_AND_ASSIGN(TopSites);
354 }; 354 };
355 355
356 } // namespace history 356 } // namespace history
357 357
358 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_ 358 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_
OLDNEW
« no previous file with comments | « chrome/browser/hang_monitor/hung_window_detector.h ('k') | chrome/browser/history/top_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698