blob: e9af4cc40c75ff8241ee106196be54096c8d4f93 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This file contains the autocomplete provider for built-in URLs,
// such as about:settings and chrome://version.
//
// For more information on the autocomplete system in general, including how
// the autocomplete controller and autocomplete providers work, see
// chrome/browser/autocomplete.h.
#ifndef CHROME_BROWSER_AUTOCOMPLETE_BUILTIN_PROVIDER_H_
#define CHROME_BROWSER_AUTOCOMPLETE_BUILTIN_PROVIDER_H_
#pragma once
#include <vector>
#include "base/string16.h"
#include "chrome/browser/autocomplete/autocomplete.h"
#include "chrome/browser/autocomplete/autocomplete_match.h"
class BuiltinProvider : public AutocompleteProvider {
public:
BuiltinProvider(ACProviderListener* listener, Profile* profile);
// AutocompleteProvider:
virtual void Start(const AutocompleteInput& input,
bool minimal_changes) OVERRIDE;
private:
virtual ~BuiltinProvider();
typedef std::vector<string16> Builtins;
static const int kRelevance;
void AddMatch(const string16& match_string,
const ACMatchClassifications& styles);
Builtins builtins_;
DISALLOW_IMPLICIT_CONSTRUCTORS(BuiltinProvider);
};
#endif // CHROME_BROWSER_AUTOCOMPLETE_BUILTIN_PROVIDER_H_