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

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

Issue 7353026: Move app/sql/* files to sql/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "app/sql/statement.h"
11 #include "app/sql/transaction.h"
12 #include "base/command_line.h" 10 #include "base/command_line.h"
13 #include "base/file_util.h" 11 #include "base/file_util.h"
14 #include "base/memory/ref_counted_memory.h" 12 #include "base/memory/ref_counted_memory.h"
13 #include "base/string_util.h"
15 #include "base/time.h" 14 #include "base/time.h"
16 #include "base/string_util.h"
17 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
18 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" 16 #include "chrome/browser/diagnostics/sqlite_diagnostics.h"
19 #include "chrome/browser/history/history_publisher.h" 17 #include "chrome/browser/history/history_publisher.h"
20 #include "chrome/browser/history/top_sites.h" 18 #include "chrome/browser/history/top_sites.h"
21 #include "chrome/browser/history/url_database.h" 19 #include "chrome/browser/history/url_database.h"
22 #include "chrome/common/thumbnail_score.h" 20 #include "chrome/common/thumbnail_score.h"
21 #include "sql/statement.h"
22 #include "sql/transaction.h"
23 #include "third_party/skia/include/core/SkBitmap.h" 23 #include "third_party/skia/include/core/SkBitmap.h"
24 #include "ui/gfx/codec/jpeg_codec.h" 24 #include "ui/gfx/codec/jpeg_codec.h"
25 25
26 #if defined(OS_MACOSX) 26 #if defined(OS_MACOSX)
27 #include "base/mac/mac_util.h" 27 #include "base/mac/mac_util.h"
28 #endif 28 #endif
29 29
30 static void FillIconMapping(const sql::Statement& statement, 30 static void FillIconMapping(const sql::Statement& statement,
31 const GURL& page_url, 31 const GURL& page_url,
32 history::IconMapping* icon_mapping) { 32 history::IconMapping* icon_mapping) {
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 if (!db_.Execute("ALTER TABLE favicons ADD icon_type INTEGER DEFAULT 1")) { 748 if (!db_.Execute("ALTER TABLE favicons ADD icon_type INTEGER DEFAULT 1")) {
749 NOTREACHED(); 749 NOTREACHED();
750 return false; 750 return false;
751 } 751 }
752 meta_table_.SetVersionNumber(4); 752 meta_table_.SetVersionNumber(4);
753 meta_table_.SetCompatibleVersionNumber(std::min(4, kCompatibleVersionNumber)); 753 meta_table_.SetCompatibleVersionNumber(std::min(4, kCompatibleVersionNumber));
754 return true; 754 return true;
755 } 755 }
756 756
757 } // namespace history 757 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/thumbnail_database.h ('k') | chrome/browser/history/top_sites_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698