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

Side by Side Diff: chrome/browser/history/visit_database.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 <algorithm> 5 #include <algorithm>
6 #include <limits> 6 #include <limits>
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 9
10 #include "chrome/browser/history/visit_database.h" 10 #include "chrome/browser/history/visit_database.h"
11 11
12 #include "chrome/browser/history/url_database.h" 12 #include "chrome/browser/history/url_database.h"
13 #include "chrome/common/page_transition_types.h" 13 #include "chrome/common/page_transition_types.h"
14 14
15 using base::Time;
16
15 // Rows, in order, of the visit table. 17 // Rows, in order, of the visit table.
16 #define HISTORY_VISIT_ROW_FIELDS \ 18 #define HISTORY_VISIT_ROW_FIELDS \
17 " id,url,visit_time,from_visit,transition,segment_id,is_indexed " 19 " id,url,visit_time,from_visit,transition,segment_id,is_indexed "
18 20
19 namespace history { 21 namespace history {
20 22
21 VisitDatabase::VisitDatabase() { 23 VisitDatabase::VisitDatabase() {
22 } 24 }
23 25
24 VisitDatabase::~VisitDatabase() { 26 VisitDatabase::~VisitDatabase() {
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 *count = 0; 360 *count = 0;
359 return true; 361 return true;
360 } 362 }
361 363
362 *first_visit = Time::FromInternalValue(statement->column_int64(0)); 364 *first_visit = Time::FromInternalValue(statement->column_int64(0));
363 *count = statement->column_int(1); 365 *count = statement->column_int(1);
364 return true; 366 return true;
365 } 367 }
366 368
367 } // namespace history 369 } // namespace history
368
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698