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

Side by Side Diff: chrome/browser/history/history_backend.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/history/history_backend.h" 5 #include "chrome/browser/history/history_backend.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/histogram.h" 10 #include "base/histogram.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "chrome/browser/autocomplete/history_url_provider.h" 15 #include "chrome/browser/autocomplete/history_url_provider.h"
16 #include "chrome/browser/bookmarks/bookmark_service.h" 16 #include "chrome/browser/bookmarks/bookmark_service.h"
17 #include "chrome/browser/history/download_types.h" 17 #include "chrome/browser/history/download_types.h"
18 #include "chrome/browser/history/in_memory_history_backend.h" 18 #include "chrome/browser/history/in_memory_history_backend.h"
19 #include "chrome/browser/history/page_usage_data.h" 19 #include "chrome/browser/history/page_usage_data.h"
20 #include "chrome/common/chrome_constants.h" 20 #include "chrome/common/chrome_constants.h"
21 #include "chrome/common/notification_types.h" 21 #include "chrome/common/notification_types.h"
22 #include "chrome/common/sqlite_utils.h" 22 #include "chrome/common/sqlite_utils.h"
23 #include "googleurl/src/gurl.h" 23 #include "googleurl/src/gurl.h"
24 #include "net/base/registry_controlled_domain.h" 24 #include "net/base/registry_controlled_domain.h"
25 25
26 using base::Time;
27 using base::TimeDelta;
28 using base::TimeTicks;
29
26 /* The HistoryBackend consists of a number of components: 30 /* The HistoryBackend consists of a number of components:
27 31
28 HistoryDatabase (stores past 3 months of history) 32 HistoryDatabase (stores past 3 months of history)
29 URLDatabase (stores a list of URLs) 33 URLDatabase (stores a list of URLs)
30 DownloadDatabase (stores a list of downloads) 34 DownloadDatabase (stores a list of downloads)
31 VisitDatabase (stores a list of visits for the URLs) 35 VisitDatabase (stores a list of visits for the URLs)
32 VisitSegmentDatabase (stores groups of URLs for the most visited view). 36 VisitSegmentDatabase (stores groups of URLs for the most visited view).
33 37
34 ArchivedDatabase (stores history older than 3 months) 38 ArchivedDatabase (stores history older than 3 months)
35 URLDatabase (stores a list of URLs) 39 URLDatabase (stores a list of URLs)
(...skipping 1790 matching lines...) Expand 10 before | Expand all | Expand 10 after
1826 } 1830 }
1827 1831
1828 BookmarkService* HistoryBackend::GetBookmarkService() { 1832 BookmarkService* HistoryBackend::GetBookmarkService() {
1829 if (bookmark_service_) 1833 if (bookmark_service_)
1830 bookmark_service_->BlockTillLoaded(); 1834 bookmark_service_->BlockTillLoaded();
1831 return bookmark_service_; 1835 return bookmark_service_;
1832 } 1836 }
1833 1837
1834 } // namespace history 1838 } // namespace history
1835 1839
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698