OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_TEXT_DATABASE_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_TEXT_DATABASE_H_ |
6 #define CHROME_BROWSER_HISTORY_TEXT_DATABASE_H_ | 6 #define CHROME_BROWSER_HISTORY_TEXT_DATABASE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 // Encapsulation of a full-text indexed database file. | 22 // Encapsulation of a full-text indexed database file. |
23 class TextDatabase { | 23 class TextDatabase { |
24 public: | 24 public: |
25 typedef int DBIdent; | 25 typedef int DBIdent; |
26 | 26 |
27 typedef std::set<GURL> URLSet; | 27 typedef std::set<GURL> URLSet; |
28 | 28 |
29 // Returned from the search function. | 29 // Returned from the search function. |
30 struct Match { | 30 struct Match { |
| 31 Match(); |
| 32 ~Match(); |
| 33 |
31 // URL of the match. | 34 // URL of the match. |
32 GURL url; | 35 GURL url; |
33 | 36 |
34 // The title is returned because the title in the text database and the URL | 37 // The title is returned because the title in the text database and the URL |
35 // database may differ. This happens because we capture the title when the | 38 // database may differ. This happens because we capture the title when the |
36 // body is captured, and don't update it later. | 39 // body is captured, and don't update it later. |
37 string16 title; | 40 string16 title; |
38 | 41 |
39 // Time the page that was returned was visited. | 42 // Time the page that was returned was visited. |
40 base::Time time; | 43 base::Time time; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 FilePath file_name_; | 157 FilePath file_name_; |
155 | 158 |
156 sql::MetaTable meta_table_; | 159 sql::MetaTable meta_table_; |
157 | 160 |
158 DISALLOW_COPY_AND_ASSIGN(TextDatabase); | 161 DISALLOW_COPY_AND_ASSIGN(TextDatabase); |
159 }; | 162 }; |
160 | 163 |
161 } // namespace history | 164 } // namespace history |
162 | 165 |
163 #endif // CHROME_BROWSER_HISTORY_TEXT_DATABASE_H_ | 166 #endif // CHROME_BROWSER_HISTORY_TEXT_DATABASE_H_ |
OLD | NEW |