| 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 // Set to true once the shutdown process has begun. | 283 // Set to true once the shutdown process has begun. |
| 284 bool shutdown_; | 284 bool shutdown_; |
| 285 | 285 |
| 286 // Set to true once the index restoration is complete. | 286 // Set to true once the index restoration is complete. |
| 287 bool restored_; | 287 bool restored_; |
| 288 | 288 |
| 289 // Set to true when changes to the index have been made and the index needs | 289 // Set to true when changes to the index have been made and the index needs |
| 290 // to be cached. Set to false when the index has been cached. Used as a | 290 // to be cached. Set to false when the index has been cached. Used as a |
| 291 // temporary safety check to insure that the cache is saved before the | 291 // temporary safety check to insure that the cache is saved before the |
| 292 // index has been destructed. | 292 // index has been destructed. |
| 293 // TODO(mrossetti): Eliminate once the transition to SQLite has been done. | |
| 294 // http://crbug.com/83659 | |
| 295 bool needs_to_be_cached_; | 293 bool needs_to_be_cached_; |
| 296 | 294 |
| 297 DISALLOW_COPY_AND_ASSIGN(InMemoryURLIndex); | 295 DISALLOW_COPY_AND_ASSIGN(InMemoryURLIndex); |
| 298 }; | 296 }; |
| 299 | 297 |
| 300 } // namespace history | 298 } // namespace history |
| 301 | 299 |
| 302 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ | 300 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ |
| OLD | NEW |