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

Side by Side Diff: chrome/browser/autocomplete/in_memory_url_index.cc

Issue 963823003: Move InMemoryURLIndex into chrome/browser/autocomplete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shortcut-database
Patch Set: Fixing win_chromium_x64_rel_ng build Created 5 years, 9 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
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 "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
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
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/in_memory_url_index.h ('k') | chrome/browser/autocomplete/in_memory_url_index_cache.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698