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

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

Issue 339433007: Componentize URLDatabase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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) 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 #include "chrome/browser/history/thumbnail_database.h" 5 #include "chrome/browser/history/thumbnail_database.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/debug/alias.h" 11 #include "base/debug/alias.h"
12 #include "base/debug/dump_without_crashing.h" 12 #include "base/debug/dump_without_crashing.h"
13 #include "base/file_util.h" 13 #include "base/file_util.h"
14 #include "base/format_macros.h" 14 #include "base/format_macros.h"
15 #include "base/memory/ref_counted_memory.h" 15 #include "base/memory/ref_counted_memory.h"
16 #include "base/metrics/histogram.h" 16 #include "base/metrics/histogram.h"
17 #include "base/rand_util.h" 17 #include "base/rand_util.h"
18 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
19 #include "base/strings/stringprintf.h" 19 #include "base/strings/stringprintf.h"
20 #include "base/time/time.h" 20 #include "base/time/time.h"
21 #include "chrome/browser/history/url_database.h"
22 #include "chrome/common/chrome_version_info.h" 21 #include "chrome/common/chrome_version_info.h"
22 #include "components/history/core/browser/url_database.h"
23 #include "sql/recovery.h" 23 #include "sql/recovery.h"
24 #include "sql/statement.h" 24 #include "sql/statement.h"
25 #include "sql/transaction.h" 25 #include "sql/transaction.h"
26 #include "third_party/sqlite/sqlite3.h" 26 #include "third_party/sqlite/sqlite3.h"
27 27
28 #if defined(OS_MACOSX) 28 #if defined(OS_MACOSX)
29 #include "base/mac/mac_util.h" 29 #include "base/mac/mac_util.h"
30 #endif 30 #endif
31 31
32 // Description of database tables: 32 // Description of database tables:
(...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 meta_table_.SetVersionNumber(7); 1316 meta_table_.SetVersionNumber(7);
1317 meta_table_.SetCompatibleVersionNumber(std::min(7, kCompatibleVersionNumber)); 1317 meta_table_.SetCompatibleVersionNumber(std::min(7, kCompatibleVersionNumber));
1318 return true; 1318 return true;
1319 } 1319 }
1320 1320
1321 bool ThumbnailDatabase::IsFaviconDBStructureIncorrect() { 1321 bool ThumbnailDatabase::IsFaviconDBStructureIncorrect() {
1322 return !db_.IsSQLValid("SELECT id, url, icon_type FROM favicons"); 1322 return !db_.IsSQLValid("SELECT id, url, icon_type FROM favicons");
1323 } 1323 }
1324 1324
1325 } // namespace history 1325 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/in_memory_url_index.cc ('k') | chrome/browser/history/top_sites_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698