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 "components/omnibox/browser/in_memory_url_index.h" | 5 #include "components/omnibox/browser/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/task_runner_util.h" |
9 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
10 #include "components/history/core/browser/history_service.h" | 11 #include "components/history/core/browser/history_service.h" |
11 #include "components/history/core/browser/url_database.h" | 12 #include "components/history/core/browser/url_database.h" |
12 #include "components/omnibox/browser/url_index_private_data.h" | 13 #include "components/omnibox/browser/url_index_private_data.h" |
13 | 14 |
14 using in_memory_url_index::InMemoryURLIndexCacheItem; | 15 using in_memory_url_index::InMemoryURLIndexCacheItem; |
15 | 16 |
16 // Initializes a whitelist of URL schemes. | 17 // Initializes a whitelist of URL schemes. |
17 void InitializeSchemeWhitelist( | 18 void InitializeSchemeWhitelist( |
18 SchemeSet* whitelist, | 19 SchemeSet* whitelist, |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 task_runner_->PostTask( | 331 task_runner_->PostTask( |
331 FROM_HERE, | 332 FROM_HERE, |
332 base::Bind(base::IgnoreResult(base::DeleteFile), path, false)); | 333 base::Bind(base::IgnoreResult(base::DeleteFile), path, false)); |
333 } | 334 } |
334 } | 335 } |
335 | 336 |
336 void InMemoryURLIndex::OnCacheSaveDone(bool succeeded) { | 337 void InMemoryURLIndex::OnCacheSaveDone(bool succeeded) { |
337 if (save_cache_observer_) | 338 if (save_cache_observer_) |
338 save_cache_observer_->OnCacheSaveFinished(succeeded); | 339 save_cache_observer_->OnCacheSaveFinished(succeeded); |
339 } | 340 } |
OLD | NEW |