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 COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_DATABASE_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_DATABASE_H_ |
6 #define COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_DATABASE_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_DATABASE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
15 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
16 #include "sql/connection.h" | 17 #include "sql/connection.h" |
17 #include "sql/meta_table.h" | 18 #include "sql/meta_table.h" |
18 #include "url/gurl.h" | 19 #include "url/gurl.h" |
19 | 20 |
20 // This class manages the shortcut provider table within the SQLite database | 21 // This class manages the shortcut provider table within the SQLite database |
21 // passed to the constructor. It expects the following schema: | 22 // passed to the constructor. It expects the following schema: |
22 // | 23 // |
23 // Note: The database stores time in seconds, UTC. | 24 // Note: The database stores time in seconds, UTC. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // The sql database. Not valid until Init is called. | 125 // The sql database. Not valid until Init is called. |
125 sql::Connection db_; | 126 sql::Connection db_; |
126 base::FilePath database_path_; | 127 base::FilePath database_path_; |
127 | 128 |
128 sql::MetaTable meta_table_; | 129 sql::MetaTable meta_table_; |
129 | 130 |
130 DISALLOW_COPY_AND_ASSIGN(ShortcutsDatabase); | 131 DISALLOW_COPY_AND_ASSIGN(ShortcutsDatabase); |
131 }; | 132 }; |
132 | 133 |
133 #endif // COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_DATABASE_H_ | 134 #endif // COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_DATABASE_H_ |
OLD | NEW |