OLD | NEW |
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 <string> | 5 #include <string> |
6 #include "base/logging.h" | 6 #include "base/logging.h" |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
9 #include "chrome/browser/extensions/activity_database.h" | 9 #include "chrome/browser/extensions/activity_database.h" |
10 #include "chrome/browser/history/url_database.h" | |
11 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
12 #include "sql/transaction.h" | 11 #include "sql/transaction.h" |
13 | 12 |
14 #if defined(OS_MACOSX) | 13 #if defined(OS_MACOSX) |
15 #include "base/mac/mac_util.h" | 14 #include "base/mac/mac_util.h" |
16 #endif | 15 #endif |
17 | 16 |
18 using content::BrowserThread; | 17 using content::BrowserThread; |
19 | 18 |
20 namespace { | 19 namespace { |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 174 |
176 void ActivityDatabase::Close() { | 175 void ActivityDatabase::Close() { |
177 db_.Close(); | 176 db_.Close(); |
178 } | 177 } |
179 | 178 |
180 void ActivityDatabase::KillDatabase() { | 179 void ActivityDatabase::KillDatabase() { |
181 db_.RazeAndClose(); | 180 db_.RazeAndClose(); |
182 } | 181 } |
183 | 182 |
184 } // namespace extensions | 183 } // namespace extensions |
OLD | NEW |