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

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

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_url_provider.h" 5 #include "chrome/browser/autocomplete/history_url_provider.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/histogram.h" 9 #include "base/histogram.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "chrome/browser/history/history.h" 12 #include "chrome/browser/history/history.h"
13 #include "chrome/browser/history/history_backend.h" 13 #include "chrome/browser/history/history_backend.h"
14 #include "chrome/browser/history/history_database.h" 14 #include "chrome/browser/history/history_database.h"
15 #include "chrome/browser/profile.h" 15 #include "chrome/browser/profile.h"
16 #include "chrome/browser/url_fixer_upper.h" 16 #include "chrome/browser/url_fixer_upper.h"
17 #include "chrome/common/gfx/url_elider.h" 17 #include "chrome/common/gfx/url_elider.h"
18 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
19 #include "chrome/common/pref_service.h" 19 #include "chrome/common/pref_service.h"
20 #include "chrome/common/sqlite_utils.h" 20 #include "chrome/common/sqlite_utils.h"
21 #include "googleurl/src/gurl.h" 21 #include "googleurl/src/gurl.h"
22 #include "googleurl/src/url_parse.h" 22 #include "googleurl/src/url_parse.h"
23 #include "googleurl/src/url_util.h" 23 #include "googleurl/src/url_util.h"
24 #include "net/base/net_util.h" 24 #include "net/base/net_util.h"
25 25
26 using base::Time;
27 using base::TimeDelta;
28 using base::TimeTicks;
29
26 HistoryURLProviderParams::HistoryURLProviderParams( 30 HistoryURLProviderParams::HistoryURLProviderParams(
27 const AutocompleteInput& input, 31 const AutocompleteInput& input,
28 bool trim_http, 32 bool trim_http,
29 const ACMatches& matches, 33 const ACMatches& matches,
30 const std::wstring& languages) 34 const std::wstring& languages)
31 : message_loop(MessageLoop::current()), 35 : message_loop(MessageLoop::current()),
32 input(input), 36 input(input),
33 trim_http(trim_http), 37 trim_http(trim_http),
34 cancel(false), 38 cancel(false),
35 matches(matches), 39 matches(matches),
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 match.contents.length(), ACMatchClassification::URL, 821 match.contents.length(), ACMatchClassification::URL,
818 &match.contents_class); 822 &match.contents_class);
819 match.description = info.title(); 823 match.description = info.title();
820 AutocompleteMatch::ClassifyMatchInString(params->input.text(), info.title(), 824 AutocompleteMatch::ClassifyMatchInString(params->input.text(), info.title(),
821 ACMatchClassification::NONE, 825 ACMatchClassification::NONE,
822 &match.description_class); 826 &match.description_class);
823 827
824 return match; 828 return match;
825 } 829 }
826 830
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698