Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / components / omnibox / browser / builtin_provider.h
blob4c6a9d5c619725b5733ba37817a35e967675db45
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.
5 #ifndef COMPONENTS_OMNIBOX_BROWSER_BUILTIN_PROVIDER_H_
6 #define COMPONENTS_OMNIBOX_BROWSER_BUILTIN_PROVIDER_H_
8 #include <vector>
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "base/strings/string16.h"
13 #include "components/omnibox/browser/autocomplete_match.h"
14 #include "components/omnibox/browser/autocomplete_provider.h"
16 class AutocompleteProviderClient;
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);
24 // AutocompleteProvider:
25 void Start(const AutocompleteInput& input, bool minimal_changes) override;
27 private:
28 ~BuiltinProvider() override;
30 typedef std::vector<base::string16> Builtins;
32 static const int kRelevance;
34 void AddMatch(const base::string16& match_string,
35 const base::string16& inline_completion,
36 const ACMatchClassifications& styles);
38 AutocompleteProviderClient* client_;
39 Builtins builtins_;
41 DISALLOW_COPY_AND_ASSIGN(BuiltinProvider);
44 #endif // COMPONENTS_OMNIBOX_BROWSER_BUILTIN_PROVIDER_H_