| 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/history/in_memory_url_index.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | |
| 8 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "base/trace_event/trace_event.h" |
| 10 #include "chrome/browser/history/history_service.h" | 10 #include "chrome/browser/history/history_service.h" |
| 11 #include "chrome/browser/history/history_service_factory.h" | 11 #include "chrome/browser/history/history_service_factory.h" |
| 12 #include "chrome/browser/history/url_index_private_data.h" | 12 #include "chrome/browser/history/url_index_private_data.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
| 15 #include "components/history/core/browser/url_database.h" | 15 #include "components/history/core/browser/url_database.h" |
| 16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
| 17 | 17 |
| 18 using in_memory_url_index::InMemoryURLIndexCacheItem; | 18 using in_memory_url_index::InMemoryURLIndexCacheItem; |
| 19 | 19 |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 base::Bind(DeleteCacheFile, path)); | 347 base::Bind(DeleteCacheFile, path)); |
| 348 } | 348 } |
| 349 } | 349 } |
| 350 | 350 |
| 351 void InMemoryURLIndex::OnCacheSaveDone(bool succeeded) { | 351 void InMemoryURLIndex::OnCacheSaveDone(bool succeeded) { |
| 352 if (save_cache_observer_) | 352 if (save_cache_observer_) |
| 353 save_cache_observer_->OnCacheSaveFinished(succeeded); | 353 save_cache_observer_->OnCacheSaveFinished(succeeded); |
| 354 } | 354 } |
| 355 | 355 |
| 356 } // namespace history | 356 } // namespace history |
| OLD | NEW |