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/autocomplete/history_quick_provider.h" | 5 #include "chrome/browser/autocomplete/history_quick_provider.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "chrome/browser/profiles/profile.h" | 29 #include "chrome/browser/profiles/profile.h" |
30 #include "chrome/browser/search/search.h" | 30 #include "chrome/browser/search/search.h" |
31 #include "chrome/browser/search_engines/template_url.h" | 31 #include "chrome/browser/search_engines/template_url.h" |
32 #include "chrome/browser/search_engines/template_url_service.h" | 32 #include "chrome/browser/search_engines/template_url_service.h" |
33 #include "chrome/browser/search_engines/template_url_service_factory.h" | 33 #include "chrome/browser/search_engines/template_url_service_factory.h" |
34 #include "chrome/common/autocomplete_match_type.h" | 34 #include "chrome/common/autocomplete_match_type.h" |
35 #include "chrome/common/chrome_switches.h" | 35 #include "chrome/common/chrome_switches.h" |
36 #include "chrome/common/net/url_fixer_upper.h" | 36 #include "chrome/common/net/url_fixer_upper.h" |
37 #include "chrome/common/pref_names.h" | 37 #include "chrome/common/pref_names.h" |
38 #include "chrome/common/url_constants.h" | 38 #include "chrome/common/url_constants.h" |
39 #include "content/public/browser/browser_thread.h" | |
40 #include "content/public/browser/notification_source.h" | 39 #include "content/public/browser/notification_source.h" |
41 #include "content/public/browser/notification_types.h" | 40 #include "content/public/browser/notification_types.h" |
42 #include "net/base/escape.h" | 41 #include "net/base/escape.h" |
43 #include "net/base/net_util.h" | 42 #include "net/base/net_util.h" |
44 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 43 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
45 #include "url/url_parse.h" | 44 #include "url/url_parse.h" |
46 #include "url/url_util.h" | 45 #include "url/url_util.h" |
47 | 46 |
48 using history::InMemoryURLIndex; | 47 using history::InMemoryURLIndex; |
49 using history::ScoredHistoryMatch; | 48 using history::ScoredHistoryMatch; |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 if (index_for_testing_.get()) | 309 if (index_for_testing_.get()) |
311 return index_for_testing_.get(); | 310 return index_for_testing_.get(); |
312 | 311 |
313 HistoryService* const history_service = | 312 HistoryService* const history_service = |
314 HistoryServiceFactory::GetForProfile(profile_, Profile::EXPLICIT_ACCESS); | 313 HistoryServiceFactory::GetForProfile(profile_, Profile::EXPLICIT_ACCESS); |
315 if (!history_service) | 314 if (!history_service) |
316 return NULL; | 315 return NULL; |
317 | 316 |
318 return history_service->InMemoryIndex(); | 317 return history_service->InMemoryIndex(); |
319 } | 318 } |
OLD | NEW |