| 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_IN_MEMORY_URL_INDEX_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ |
| 6 #define CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ | 6 #define CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ |
| 7 | 7 |
| 8 #include <functional> | 8 #include <functional> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 // Set to true once the shutdown process has begun. | 290 // Set to true once the shutdown process has begun. |
| 291 bool shutdown_; | 291 bool shutdown_; |
| 292 | 292 |
| 293 // Set to true once the index restoration is complete. | 293 // Set to true once the index restoration is complete. |
| 294 bool restored_; | 294 bool restored_; |
| 295 | 295 |
| 296 // Set to true when changes to the index have been made and the index needs | 296 // Set to true when changes to the index have been made and the index needs |
| 297 // to be cached. Set to false when the index has been cached. Used as a | 297 // to be cached. Set to false when the index has been cached. Used as a |
| 298 // temporary safety check to insure that the cache is saved before the | 298 // temporary safety check to insure that the cache is saved before the |
| 299 // index has been destructed. | 299 // index has been destructed. |
| 300 // TODO(mrossetti): Eliminate once the transition to SQLite has been done. | |
| 301 // http://crbug.com/83659 | |
| 302 bool needs_to_be_cached_; | 300 bool needs_to_be_cached_; |
| 303 | 301 |
| 304 DISALLOW_COPY_AND_ASSIGN(InMemoryURLIndex); | 302 DISALLOW_COPY_AND_ASSIGN(InMemoryURLIndex); |
| 305 }; | 303 }; |
| 306 | 304 |
| 307 } // namespace history | 305 } // namespace history |
| 308 | 306 |
| 309 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ | 307 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ |
| OLD | NEW |