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 #ifndef CHROME_BROWSER_HISTORY_ANDROID_ANDROID_CACHE_DATABASE_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_ANDROID_ANDROID_CACHE_DATABASE_H_ |
6 #define CHROME_BROWSER_HISTORY_ANDROID_ANDROID_CACHE_DATABASE_H_ | 6 #define CHROME_BROWSER_HISTORY_ANDROID_ANDROID_CACHE_DATABASE_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "chrome/browser/history/android/android_history_types.h" | 11 #include "components/history/core/android/android_history_types.h" |
12 #include "sql/connection.h" | 12 #include "sql/connection.h" |
13 #include "sql/init_status.h" | 13 #include "sql/init_status.h" |
14 | 14 |
15 namespace history { | 15 namespace history { |
16 | 16 |
17 // This database is used to support Android ContentProvider APIs. | 17 // This database is used to support Android ContentProvider APIs. |
18 // It will be created only when it used, and deleted by HistoryBackend when | 18 // It will be created only when it used, and deleted by HistoryBackend when |
19 // history system shutdown. | 19 // history system shutdown. |
20 class AndroidCacheDatabase { | 20 class AndroidCacheDatabase { |
21 public: | 21 public: |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 bool DoAttach(); | 111 bool DoAttach(); |
112 | 112 |
113 base::FilePath db_name_; | 113 base::FilePath db_name_; |
114 | 114 |
115 DISALLOW_COPY_AND_ASSIGN(AndroidCacheDatabase); | 115 DISALLOW_COPY_AND_ASSIGN(AndroidCacheDatabase); |
116 }; | 116 }; |
117 | 117 |
118 } // namespace history | 118 } // namespace history |
119 | 119 |
120 #endif // CHROME_BROWSER_HISTORY_ANDROID_ANDROID_CACHE_DATABASE_H_ | 120 #endif // CHROME_BROWSER_HISTORY_ANDROID_ANDROID_CACHE_DATABASE_H_ |
OLD | NEW |