Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: chrome/browser/history/in_memory_url_index.h

Issue 455003002: Omnibox: Clobber HQP Cache File when user mucks with history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/history/in_memory_url_index.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/in_memory_url_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698