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

Side by Side Diff: chrome/browser/diagnostics/sqlite_diagnostics.cc

Issue 12770011: Remove a few chrome dependencies of c/b/webdata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win compiling Created 7 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/webdata/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/diagnostics/sqlite_diagnostics.h" 5 #include "chrome/browser/diagnostics/sqlite_diagnostics.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/webdata/webdata_constants.h"
14 #include "chrome/common/chrome_constants.h" 15 #include "chrome/common/chrome_constants.h"
15 #include "chrome/common/chrome_paths.h" 16 #include "chrome/common/chrome_paths.h"
16 #include "content/public/common/content_constants.h" 17 #include "content/public/common/content_constants.h"
17 #include "sql/connection.h" 18 #include "sql/connection.h"
18 #include "sql/statement.h" 19 #include "sql/statement.h"
19 #include "third_party/sqlite/sqlite3.h" 20 #include "third_party/sqlite/sqlite3.h"
20 #include "webkit/appcache/appcache_interfaces.h" 21 #include "webkit/appcache/appcache_interfaces.h"
21 #include "webkit/database/database_tracker.h" 22 #include "webkit/database/database_tracker.h"
22 23
23 namespace { 24 namespace {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 private: 85 private:
85 bool critical_; 86 bool critical_;
86 base::FilePath db_path_; 87 base::FilePath db_path_;
87 DISALLOW_COPY_AND_ASSIGN(SqliteIntegrityTest); 88 DISALLOW_COPY_AND_ASSIGN(SqliteIntegrityTest);
88 }; 89 };
89 90
90 } // namespace 91 } // namespace
91 92
92 DiagnosticTest* MakeSqliteWebDbTest() { 93 DiagnosticTest* MakeSqliteWebDbTest() {
93 return new SqliteIntegrityTest(true, ASCIIToUTF16("Web DB"), 94 return new SqliteIntegrityTest(true, ASCIIToUTF16("Web DB"),
94 base::FilePath(chrome::kWebDataFilename)); 95 base::FilePath(kWebDataFilename));
95 } 96 }
96 97
97 DiagnosticTest* MakeSqliteCookiesDbTest() { 98 DiagnosticTest* MakeSqliteCookiesDbTest() {
98 return new SqliteIntegrityTest(true, ASCIIToUTF16("Cookies DB"), 99 return new SqliteIntegrityTest(true, ASCIIToUTF16("Cookies DB"),
99 base::FilePath(chrome::kCookieFilename)); 100 base::FilePath(chrome::kCookieFilename));
100 } 101 }
101 102
102 DiagnosticTest* MakeSqliteHistoryDbTest() { 103 DiagnosticTest* MakeSqliteHistoryDbTest() {
103 return new SqliteIntegrityTest(true, ASCIIToUTF16("History DB"), 104 return new SqliteIntegrityTest(true, ASCIIToUTF16("History DB"),
104 base::FilePath(chrome::kHistoryFilename)); 105 base::FilePath(chrome::kHistoryFilename));
(...skipping 18 matching lines...) Expand all
123 appcache_db); 124 appcache_db);
124 } 125 }
125 126
126 DiagnosticTest* MakeSqliteWebDatabaseTrackerDbTest() { 127 DiagnosticTest* MakeSqliteWebDatabaseTrackerDbTest() {
127 base::FilePath databases_dir(webkit_database::kDatabaseDirectoryName); 128 base::FilePath databases_dir(webkit_database::kDatabaseDirectoryName);
128 base::FilePath tracker_db = 129 base::FilePath tracker_db =
129 databases_dir.Append(webkit_database::kTrackerDatabaseFileName); 130 databases_dir.Append(webkit_database::kTrackerDatabaseFileName);
130 return new SqliteIntegrityTest(false, ASCIIToUTF16("DatabaseTracker DB"), 131 return new SqliteIntegrityTest(false, ASCIIToUTF16("DatabaseTracker DB"),
131 tracker_db); 132 tracker_db);
132 } 133 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/webdata/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698