OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_COMMON_IMPORTER_IMPORTER_URL_ROW_H_ | 5 #ifndef CHROME_COMMON_IMPORTER_IMPORTER_URL_ROW_H_ |
6 #define CHROME_COMMON_IMPORTER_IMPORTER_URL_ROW_H_ | 6 #define CHROME_COMMON_IMPORTER_IMPORTER_URL_ROW_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
11 | 11 |
12 // Used as the target for importing history URLs from other browser's profiles | 12 // Used as the target for importing history URLs from other browser's profiles |
13 // in the utility process. Converted to history::URLRow after being passed via | 13 // in the utility process. Converted to history::URLRow after being passed via |
14 // IPC to the browser. | 14 // IPC to the browser. |
15 struct ImporterURLRow { | 15 struct ImporterURLRow { |
16 public: | 16 public: |
17 ImporterURLRow(); | 17 ImporterURLRow(); |
18 explicit ImporterURLRow(const GURL& url); | 18 explicit ImporterURLRow(const GURL& url); |
| 19 ImporterURLRow(const ImporterURLRow& other); |
19 | 20 |
20 GURL url; | 21 GURL url; |
21 base::string16 title; | 22 base::string16 title; |
22 | 23 |
23 // Total number of times this URL has been visited. | 24 // Total number of times this URL has been visited. |
24 int visit_count; | 25 int visit_count; |
25 | 26 |
26 // Number of times this URL has been manually entered in the URL bar. | 27 // Number of times this URL has been manually entered in the URL bar. |
27 int typed_count; | 28 int typed_count; |
28 | 29 |
29 // The date of the last visit of this URL, which saves us from having to | 30 // The date of the last visit of this URL, which saves us from having to |
30 // loop up in the visit table for things like autocomplete and expiration. | 31 // loop up in the visit table for things like autocomplete and expiration. |
31 base::Time last_visit; | 32 base::Time last_visit; |
32 | 33 |
33 // Indicates this entry should now be shown in typical UI or queries, this | 34 // Indicates this entry should now be shown in typical UI or queries, this |
34 // is usually for subframes. | 35 // is usually for subframes. |
35 bool hidden; | 36 bool hidden; |
36 }; | 37 }; |
37 | 38 |
38 #endif // CHROME_COMMON_IMPORTER_IMPORTER_URL_ROW_H_ | 39 #endif // CHROME_COMMON_IMPORTER_IMPORTER_URL_ROW_H_ |
OLD | NEW |