OLD | NEW |
---|---|
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 #ifndef CHROME_BROWSER_HISTORY_STARRED_URL_DATABASE_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_STARRED_URL_DATABASE_H_ |
6 #define CHROME_BROWSER_HISTORY_STARRED_URL_DATABASE_H_ | 6 #define CHROME_BROWSER_HISTORY_STARRED_URL_DATABASE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "chrome/browser/history/history_types.h" | 14 #include "chrome/browser/history/history_types.h" |
15 #include "chrome/browser/history/url_database.h" | 15 #include "chrome/browser/history/url_database.h" |
16 #include "ui/base/models/tree_node_model.h" | 16 #include "ui/base/models/tree_node_model.h" |
17 | 17 |
18 class FilePath; | 18 class FilePath; |
19 | 19 |
20 namespace sql { | 20 namespace sql { |
21 class Connection; | 21 class Connection; |
22 } | 22 } |
23 | 23 |
24 namespace history { | 24 namespace history { |
25 | 25 |
26 // ID (both star_id and folder_id) of the bookmark bar. | |
27 // This entry always exists. | |
28 extern const int64 kBookmarkBarID; | |
sky
2011/07/07 15:37:02
This should be a static member of StarredURLDataba
tfarina
2011/07/07 16:19:50
Done.
| |
29 | |
26 // Bookmarks were originally part of the url database, they have since been | 30 // Bookmarks were originally part of the url database, they have since been |
27 // moved to a separate file. This file exists purely for historical reasons and | 31 // moved to a separate file. This file exists purely for historical reasons and |
28 // contains just enough to allow migration. | 32 // contains just enough to allow migration. |
29 class StarredURLDatabase : public URLDatabase { | 33 class StarredURLDatabase : public URLDatabase { |
30 public: | 34 public: |
31 // Must call InitStarTable() AND any additional init functions provided by | 35 // Must call InitStarTable() AND any additional init functions provided by |
32 // URLDatabase before using this class' functions. | 36 // URLDatabase before using this class' functions. |
33 StarredURLDatabase(); | 37 StarredURLDatabase(); |
34 virtual ~StarredURLDatabase(); | 38 virtual ~StarredURLDatabase(); |
35 | 39 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
177 // Does the work of migrating bookmarks to a temporary file that | 181 // Does the work of migrating bookmarks to a temporary file that |
178 // BookmarkStorage will read from. | 182 // BookmarkStorage will read from. |
179 bool MigrateBookmarksToFileImpl(const FilePath& path); | 183 bool MigrateBookmarksToFileImpl(const FilePath& path); |
180 | 184 |
181 DISALLOW_COPY_AND_ASSIGN(StarredURLDatabase); | 185 DISALLOW_COPY_AND_ASSIGN(StarredURLDatabase); |
182 }; | 186 }; |
183 | 187 |
184 } // namespace history | 188 } // namespace history |
185 | 189 |
186 #endif // CHROME_BROWSER_HISTORY_STARRED_URL_DATABASE_H_ | 190 #endif // CHROME_BROWSER_HISTORY_STARRED_URL_DATABASE_H_ |
OLD | NEW |