| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_SCHEME_CLASSIFIER_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_SCHEME_CLASSIFIER_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_SCHEME_CLASSIFIER_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_SCHEME_CLASSIFIER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/omnibox/autocomplete_scheme_classifier.h" | 9 #include "components/omnibox/autocomplete_scheme_classifier.h" |
| 10 | 10 |
| 11 class Profile; | 11 class Profile; |
| 12 | 12 |
| 13 // The subclass to provide chrome-specific scheme handling. | 13 // The subclass to provide chrome-specific scheme handling. |
| 14 class ChromeAutocompleteSchemeClassifier : public AutocompleteSchemeClassifier { | 14 class ChromeAutocompleteSchemeClassifier : public AutocompleteSchemeClassifier { |
| 15 public: | 15 public: |
| 16 explicit ChromeAutocompleteSchemeClassifier(Profile* profile); | 16 explicit ChromeAutocompleteSchemeClassifier(Profile* profile); |
| 17 virtual ~ChromeAutocompleteSchemeClassifier(); | 17 virtual ~ChromeAutocompleteSchemeClassifier(); |
| 18 | 18 |
| 19 // AutocompleteInputSchemeChecker: | 19 // AutocompleteInputSchemeChecker: |
| 20 virtual metrics::OmniboxInputType::Type GetInputTypeForScheme( | 20 virtual metrics::OmniboxInputType::Type GetInputTypeForScheme( |
| 21 const std::string& scheme) const OVERRIDE; | 21 const std::string& scheme) const override; |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 Profile* profile_; | 24 Profile* profile_; |
| 25 | 25 |
| 26 DISALLOW_COPY_AND_ASSIGN(ChromeAutocompleteSchemeClassifier); | 26 DISALLOW_COPY_AND_ASSIGN(ChromeAutocompleteSchemeClassifier); |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 #endif // CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_SCHEME_CLASSIFIER_H_ | 29 #endif // CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_SCHEME_CLASSIFIER_H_ |
| OLD | NEW |