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 CHROME_BROWSER_HISTORY_HISTORY_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_H_ |
6 #define CHROME_BROWSER_HISTORY_HISTORY_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 } | 154 } |
155 | 155 |
156 // Navigation ---------------------------------------------------------------- | 156 // Navigation ---------------------------------------------------------------- |
157 | 157 |
158 // Adds the given canonical URL to history with the current time as the visit | 158 // Adds the given canonical URL to history with the current time as the visit |
159 // time. Referrer may be the empty string. | 159 // time. Referrer may be the empty string. |
160 // | 160 // |
161 // The supplied render process host is used to scope the given page ID. Page | 161 // The supplied render process host is used to scope the given page ID. Page |
162 // IDs are only unique inside a given render process, so we need that to | 162 // IDs are only unique inside a given render process, so we need that to |
163 // differentiate them. This pointer should not be dereferenced by the history | 163 // differentiate them. This pointer should not be dereferenced by the history |
164 // system. Since render view host pointers may be reused (if one gets deleted | 164 // system. |
165 // and a new one created at the same address), TabContents should notify | |
166 // us when they are being destroyed through NotifyTabContentsDestruction. | |
167 // | 165 // |
168 // The scope/ids can be NULL if there is no meaningful tracking information | 166 // The scope/ids can be NULL if there is no meaningful tracking information |
169 // that can be performed on the given URL. The 'page_id' should be the ID of | 167 // that can be performed on the given URL. The 'page_id' should be the ID of |
170 // the current session history entry in the given process. | 168 // the current session history entry in the given process. |
171 // | 169 // |
172 // 'redirects' is an array of redirect URLs leading to this page, with the | 170 // 'redirects' is an array of redirect URLs leading to this page, with the |
173 // page itself as the last item (so when there is no redirect, it will have | 171 // page itself as the last item (so when there is no redirect, it will have |
174 // one entry). If there are no redirects, this array may also be empty for | 172 // one entry). If there are no redirects, this array may also be empty for |
175 // the convenience of callers. | 173 // the convenience of callers. |
176 // | 174 // |
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 // True if needs top site migration. | 895 // True if needs top site migration. |
898 bool needs_top_sites_migration_; | 896 bool needs_top_sites_migration_; |
899 | 897 |
900 // The index used for quick history lookups. | 898 // The index used for quick history lookups. |
901 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; | 899 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; |
902 | 900 |
903 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 901 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
904 }; | 902 }; |
905 | 903 |
906 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ | 904 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ |
OLD | NEW |