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

Side by Side Diff: components/omnibox/browser/in_memory_url_index.cc

Issue 2535843002: Move PostTaskAndReplyWithResult() adapters to a separate header. (Closed)
Patch Set: add missing header Created 4 years 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 | « components/history/core/browser/history_service.cc ('k') | no next file » | 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 #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
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 }
OLDNEW
« no previous file with comments | « components/history/core/browser/history_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698