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

Side by Side Diff: chrome/browser/history/history_service.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
« no previous file with comments | « chrome/browser/history/DEPS ('k') | chrome/browser/history/in_memory_url_index.h » ('j') | 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 // The history system runs on a background thread so that potentially slow 5 // The history system runs on a background thread so that potentially slow
6 // database operations don't delay the browser. This backend processing is 6 // database operations don't delay the browser. This backend processing is
7 // represented by HistoryBackend. The HistoryService's job is to dispatch to 7 // represented by HistoryBackend. The HistoryService's job is to dispatch to
8 // that thread. 8 // that thread.
9 // 9 //
10 // Main thread History thread 10 // Main thread History thread
(...skipping 10 matching lines...) Expand all
21 #include "base/bind_helpers.h" 21 #include "base/bind_helpers.h"
22 #include "base/callback.h" 22 #include "base/callback.h"
23 #include "base/command_line.h" 23 #include "base/command_line.h"
24 #include "base/compiler_specific.h" 24 #include "base/compiler_specific.h"
25 #include "base/location.h" 25 #include "base/location.h"
26 #include "base/memory/ref_counted.h" 26 #include "base/memory/ref_counted.h"
27 #include "base/message_loop/message_loop.h" 27 #include "base/message_loop/message_loop.h"
28 #include "base/thread_task_runner_handle.h" 28 #include "base/thread_task_runner_handle.h"
29 #include "base/threading/thread.h" 29 #include "base/threading/thread.h"
30 #include "base/time/time.h" 30 #include "base/time/time.h"
31 #include "chrome/browser/autocomplete/in_memory_url_index.h"
31 #include "chrome/browser/history/history_backend.h" 32 #include "chrome/browser/history/history_backend.h"
32 #include "chrome/browser/history/in_memory_history_backend.h" 33 #include "chrome/browser/history/in_memory_history_backend.h"
33 #include "chrome/browser/history/in_memory_url_index.h"
34 #include "components/history/core/browser/download_row.h" 34 #include "components/history/core/browser/download_row.h"
35 #include "components/history/core/browser/history_client.h" 35 #include "components/history/core/browser/history_client.h"
36 #include "components/history/core/browser/history_database_params.h" 36 #include "components/history/core/browser/history_database_params.h"
37 #include "components/history/core/browser/history_service_observer.h" 37 #include "components/history/core/browser/history_service_observer.h"
38 #include "components/history/core/browser/history_types.h" 38 #include "components/history/core/browser/history_types.h"
39 #include "components/history/core/browser/in_memory_database.h" 39 #include "components/history/core/browser/in_memory_database.h"
40 #include "components/history/core/browser/keyword_search_term.h" 40 #include "components/history/core/browser/keyword_search_term.h"
41 #include "components/history/core/browser/visit_database.h" 41 #include "components/history/core/browser/visit_database.h"
42 #include "components/history/core/browser/visit_delegate.h" 42 #include "components/history/core/browser/visit_delegate.h"
43 #include "components/history/core/browser/visit_filter.h" 43 #include "components/history/core/browser/visit_filter.h"
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 const HistoryService::OnFaviconChangedCallback& callback) { 1212 const HistoryService::OnFaviconChangedCallback& callback) {
1213 DCHECK(thread_checker_.CalledOnValidThread()); 1213 DCHECK(thread_checker_.CalledOnValidThread());
1214 return favicon_changed_callback_list_.Add(callback); 1214 return favicon_changed_callback_list_.Add(callback);
1215 } 1215 }
1216 1216
1217 void HistoryService::NotifyFaviconChanged( 1217 void HistoryService::NotifyFaviconChanged(
1218 const std::set<GURL>& changed_favicons) { 1218 const std::set<GURL>& changed_favicons) {
1219 DCHECK(thread_checker_.CalledOnValidThread()); 1219 DCHECK(thread_checker_.CalledOnValidThread());
1220 favicon_changed_callback_list_.Notify(changed_favicons); 1220 favicon_changed_callback_list_.Notify(changed_favicons);
1221 } 1221 }
OLDNEW
« no previous file with comments | « chrome/browser/history/DEPS ('k') | chrome/browser/history/in_memory_url_index.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698