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.
5 #include "athena/extensions/shell/athena_shell_scheme_classifier.h"
7 #include "components/metrics/proto/omnibox_input_type.pb.h"
8 #include "net/url_request/url_request.h"
10 using metrics::OmniboxInputType::Type;
14 AthenaShellSchemeClassifier::AthenaShellSchemeClassifier() {
17 AthenaShellSchemeClassifier::~AthenaShellSchemeClassifier() {
20 Type AthenaShellSchemeClassifier::GetInputTypeForScheme(
21 const std::string& scheme) const {
22 if (net::URLRequest::IsHandledProtocol(scheme))
23 return metrics::OmniboxInputType::URL;
24 return metrics::OmniboxInputType::INVALID;