| 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 #include "chrome/browser/history/in_memory_url_index.h" | 5 #include "chrome/browser/autocomplete/in_memory_url_index.h" |
| 6 | 6 |
| 7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
| 10 #include "chrome/browser/autocomplete/url_index_private_data.h" |
| 10 #include "chrome/browser/history/history_service.h" | 11 #include "chrome/browser/history/history_service.h" |
| 11 #include "chrome/browser/history/url_index_private_data.h" | |
| 12 #include "chrome/common/url_constants.h" | 12 #include "chrome/common/url_constants.h" |
| 13 #include "components/history/core/browser/url_database.h" | 13 #include "components/history/core/browser/url_database.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 | 15 |
| 16 using in_memory_url_index::InMemoryURLIndexCacheItem; | 16 using in_memory_url_index::InMemoryURLIndexCacheItem; |
| 17 | 17 |
| 18 namespace history { | 18 namespace history { |
| 19 | 19 |
| 20 // Called by DoSaveToCacheFile to delete any old cache file at |path| when | 20 // Called by DoSaveToCacheFile to delete any old cache file at |path| when |
| 21 // there is no private data to save. Runs on the FILE thread. | 21 // there is no private data to save. Runs on the FILE thread. |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 base::Bind(DeleteCacheFile, path)); | 324 base::Bind(DeleteCacheFile, path)); |
| 325 } | 325 } |
| 326 } | 326 } |
| 327 | 327 |
| 328 void InMemoryURLIndex::OnCacheSaveDone(bool succeeded) { | 328 void InMemoryURLIndex::OnCacheSaveDone(bool succeeded) { |
| 329 if (save_cache_observer_) | 329 if (save_cache_observer_) |
| 330 save_cache_observer_->OnCacheSaveFinished(succeeded); | 330 save_cache_observer_->OnCacheSaveFinished(succeeded); |
| 331 } | 331 } |
| 332 | 332 |
| 333 } // namespace history | 333 } // namespace history |
| OLD | NEW |