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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/i18n/break_iterator.h" 10 #include "base/i18n/break_iterator.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/metrics/histogram.h" 12 #include "base/metrics/histogram.h"
13 #include "base/string_number_conversions.h" 13 #include "base/string_number_conversions.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
17 #include "chrome/browser/history/history.h" 17 #include "chrome/browser/history/history.h"
18 #include "chrome/browser/history/in_memory_url_index.h" 18 #include "chrome/browser/history/in_memory_url_index.h"
19 #include "chrome/browser/net/url_fixer_upper.h" 19 #include "chrome/browser/net/url_fixer_upper.h"
20 #include "chrome/browser/prefs/pref_service.h" 20 #include "chrome/browser/prefs/pref_service.h"
21 #include "chrome/browser/profiles/profile.h" 21 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/common/pref_names.h" 22 #include "chrome/common/pref_names.h"
23 #include "chrome/common/url_constants.h" 23 #include "chrome/common/url_constants.h"
24 #include "googleurl/src/url_parse.h" 24 #include "googleurl/src/url_parse.h"
25 #include "content/common/content_notification_types.h"
25 #include "content/common/notification_source.h" 26 #include "content/common/notification_source.h"
26 #include "content/common/notification_type.h"
27 #include "googleurl/src/url_util.h" 27 #include "googleurl/src/url_util.h"
28 #include "net/base/escape.h" 28 #include "net/base/escape.h"
29 #include "net/base/net_util.h" 29 #include "net/base/net_util.h"
30 30
31 using history::InMemoryURLIndex; 31 using history::InMemoryURLIndex;
32 using history::ScoredHistoryMatch; 32 using history::ScoredHistoryMatch;
33 using history::ScoredHistoryMatches; 33 using history::ScoredHistoryMatches;
34 34
35 // The initial maximum allowable score for a match which cannot be inlined. 35 // The initial maximum allowable score for a match which cannot be inlined.
36 const int kMaxNonInliningScore = 1199; 36 const int kMaxNonInliningScore = 1199;
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 do { 223 do {
224 offset += matches[i].length; 224 offset += matches[i].length;
225 ++i; 225 ++i;
226 } while ((i < match_count) && (offset == matches[i].offset)); 226 } while ((i < match_count) && (offset == matches[i].offset));
227 if (offset < text_length) 227 if (offset < text_length)
228 spans.push_back(ACMatchClassification(offset, url_style)); 228 spans.push_back(ACMatchClassification(offset, url_style));
229 } 229 }
230 230
231 return spans; 231 return spans;
232 } 232 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/extension_app_provider.cc ('k') | chrome/browser/autocomplete/keyword_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698