Upstream version 11.40.277.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / autocomplete / builtin_provider.h
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 // This is the provider for built-in URLs, such as about:settings and
17 // chrome://version.
18 class BuiltinProvider : public AutocompleteProvider {
19  public:
20   BuiltinProvider();
21
22   // AutocompleteProvider:
23   void Start(const AutocompleteInput& input, bool minimal_changes) override;
24
25  private:
26   ~BuiltinProvider() override;
27
28   typedef std::vector<base::string16> Builtins;
29
30   static const int kRelevance;
31
32   void AddMatch(const base::string16& match_string,
33                 const base::string16& inline_completion,
34                 const ACMatchClassifications& styles);
35
36   Builtins builtins_;
37
38   DISALLOW_COPY_AND_ASSIGN(BuiltinProvider);
39 };
40
41 #endif  // CHROME_BROWSER_AUTOCOMPLETE_BUILTIN_PROVIDER_H_