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

Side by Side Diff: chrome/browser/history/thumbnail_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, 2 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
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/thumbnail_database.h" 5 #include "chrome/browser/history/thumbnail_database.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "chrome/browser/history/url_database.h" 10 #include "chrome/browser/history/url_database.h"
11 #include "chrome/common/jpeg_codec.h" 11 #include "chrome/common/jpeg_codec.h"
12 #include "chrome/common/sqlite_utils.h" 12 #include "chrome/common/sqlite_utils.h"
13 #include "chrome/common/thumbnail_score.h" 13 #include "chrome/common/thumbnail_score.h"
14 #include "skia/include/SkBitmap.h" 14 #include "skia/include/SkBitmap.h"
15 15
16 using base::Time;
17
16 namespace history { 18 namespace history {
17 19
18 // Version number of the database. 20 // Version number of the database.
19 static const int kCurrentVersionNumber = 3; 21 static const int kCurrentVersionNumber = 3;
20 22
21 ThumbnailDatabase::ThumbnailDatabase() 23 ThumbnailDatabase::ThumbnailDatabase()
22 : db_(NULL), 24 : db_(NULL),
23 statement_cache_(NULL), 25 statement_cache_(NULL),
24 transaction_nesting_(0) { 26 transaction_nesting_(0) {
25 } 27 }
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 NULL, NULL, NULL) != SQLITE_OK) 444 NULL, NULL, NULL) != SQLITE_OK)
443 return false; 445 return false;
444 446
445 // The renamed table needs the index (the temporary table doesn't have one). 447 // The renamed table needs the index (the temporary table doesn't have one).
446 InitFavIconsIndex(); 448 InitFavIconsIndex();
447 return true; 449 return true;
448 } 450 }
449 451
450 } // namespace history 452 } // namespace history
451 453
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698