Home | History | Annotate | Download | only in autocomplete
      1 // Copyright 2014 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_CHROME_AUTOCOMPLETE_SCHEME_CLASSIFIER_H_
      6 #define CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_SCHEME_CLASSIFIER_H_
      7 
      8 #include "base/macros.h"
      9 #include "components/omnibox/autocomplete_scheme_classifier.h"
     10 
     11 class Profile;
     12 
     13 // The subclass to provide chrome-specific scheme handling.
     14 class ChromeAutocompleteSchemeClassifier : public AutocompleteSchemeClassifier {
     15  public:
     16   explicit ChromeAutocompleteSchemeClassifier(Profile* profile);
     17   virtual ~ChromeAutocompleteSchemeClassifier();
     18 
     19   // AutocompleteInputSchemeChecker:
     20   virtual metrics::OmniboxInputType::Type GetInputTypeForScheme(
     21       const std::string& scheme) const OVERRIDE;
     22 
     23  private:
     24   Profile* profile_;
     25 
     26   DISALLOW_COPY_AND_ASSIGN(ChromeAutocompleteSchemeClassifier);
     27 };
     28 
     29 #endif  // CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_SCHEME_CLASSIFIER_H_
     30