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 CHROME_BROWSER_AUTOCOMPLETE_BUILTIN_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_BUILTIN_PROVIDER_H_
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "base/strings/string16.h"
13 #include "chrome/browser/autocomplete/autocomplete_match.h"
14 #include "chrome/browser/autocomplete/autocomplete_provider.h"
16 // This is the provider for built-in URLs, such as about:settings and
18 class BuiltinProvider : public AutocompleteProvider {
20 BuiltinProvider(AutocompleteProviderListener* listener, Profile* profile);
22 // AutocompleteProvider:
23 virtual void Start(const AutocompleteInput& input,
24 bool minimal_changes) OVERRIDE;
27 virtual ~BuiltinProvider();
29 typedef std::vector<string16> Builtins;
31 static const int kRelevance;
33 void AddMatch(const string16& match_string,
34 const string16& inline_completion,
35 const ACMatchClassifications& styles);
39 DISALLOW_COPY_AND_ASSIGN(BuiltinProvider);
42 #endif // CHROME_BROWSER_AUTOCOMPLETE_BUILTIN_PROVIDER_H_