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

Side by Side Diff: chrome/browser/autocomplete/builtin_provider.h

Issue 1191373002: Componentize AutocompleteController and its supporting cast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prep_builtin_provider_for_c14n
Patch Set: Rebase Created 5 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_BUILTIN_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_BUILTIN_PROVIDER_H_
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "base/strings/string16.h"
13 #include "components/omnibox/autocomplete_match.h"
14 #include "components/omnibox/autocomplete_provider.h"
15
16 class AutocompleteProviderClient;
17
18 // This is the provider for built-in URLs, such as about:settings and
19 // chrome://version.
20 class BuiltinProvider : public AutocompleteProvider {
21 public:
22 explicit BuiltinProvider(AutocompleteProviderClient* client);
23
24 // AutocompleteProvider:
25 void Start(const AutocompleteInput& input, bool minimal_changes) override;
26
27 private:
28 ~BuiltinProvider() override;
29
30 typedef std::vector<base::string16> Builtins;
31
32 static const int kRelevance;
33
34 void AddMatch(const base::string16& match_string,
35 const base::string16& inline_completion,
36 const ACMatchClassifications& styles);
37
38 AutocompleteProviderClient* client_;
39 Builtins builtins_;
40
41 DISALLOW_COPY_AND_ASSIGN(BuiltinProvider);
42 };
43
44 #endif // CHROME_BROWSER_AUTOCOMPLETE_BUILTIN_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_provider_unittest.cc ('k') | chrome/browser/autocomplete/builtin_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698