| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_HISTORY_TYPES_H__ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_TYPES_H__ |
| 6 #define CHROME_BROWSER_HISTORY_HISTORY_TYPES_H__ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_TYPES_H__ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 } | 88 } |
| 89 } | 89 } |
| 90 | 90 |
| 91 int visit_count() const { | 91 int visit_count() const { |
| 92 return visit_count_; | 92 return visit_count_; |
| 93 } | 93 } |
| 94 void set_visit_count(int visit_count) { | 94 void set_visit_count(int visit_count) { |
| 95 visit_count_ = visit_count; | 95 visit_count_ = visit_count; |
| 96 } | 96 } |
| 97 | 97 |
| 98 // Number of times the URL was typed in the Omnibox. |
| 98 int typed_count() const { | 99 int typed_count() const { |
| 99 return typed_count_; | 100 return typed_count_; |
| 100 } | 101 } |
| 101 void set_typed_count(int typed_count) { | 102 void set_typed_count(int typed_count) { |
| 102 typed_count_ = typed_count; | 103 typed_count_ = typed_count; |
| 103 } | 104 } |
| 104 | 105 |
| 105 base::Time last_visit() const { | 106 base::Time last_visit() const { |
| 106 return last_visit_; | 107 return last_visit_; |
| 107 } | 108 } |
| 108 void set_last_visit(base::Time last_visit) { | 109 void set_last_visit(base::Time last_visit) { |
| 109 last_visit_ = last_visit; | 110 last_visit_ = last_visit; |
| 110 } | 111 } |
| 111 | 112 |
| 113 // If this is set, we won't autocomplete this URL. |
| 112 bool hidden() const { | 114 bool hidden() const { |
| 113 return hidden_; | 115 return hidden_; |
| 114 } | 116 } |
| 115 void set_hidden(bool hidden) { | 117 void set_hidden(bool hidden) { |
| 116 hidden_ = hidden; | 118 hidden_ = hidden; |
| 117 } | 119 } |
| 118 | 120 |
| 119 // ID of the favicon. A value of 0 means the favicon isn't known yet. | 121 // ID of the favicon. A value of 0 means the favicon isn't known yet. |
| 120 FavIconID favicon_id() const { return favicon_id_; } | 122 FavIconID favicon_id() const { return favicon_id_; } |
| 121 void set_favicon_id(FavIconID favicon_id) { | 123 void set_favicon_id(FavIconID favicon_id) { |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 // The time of the visit. | 504 // The time of the visit. |
| 503 base::Time time; | 505 base::Time time; |
| 504 | 506 |
| 505 // The search term that was used. | 507 // The search term that was used. |
| 506 std::wstring term; | 508 std::wstring term; |
| 507 }; | 509 }; |
| 508 | 510 |
| 509 } // history | 511 } // history |
| 510 | 512 |
| 511 #endif // CHROME_BROWSER_HISTORY_HISTORY_TYPES_H__ | 513 #endif // CHROME_BROWSER_HISTORY_HISTORY_TYPES_H__ |
| OLD | NEW |