1 // Copyright 2019 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PRINTING_PRINTER_QUERY_RESULT_H_
6 #define PRINTING_PRINTER_QUERY_RESULT_H_
8 #include "base/component_export.h"
12 // Specifies query status codes.
13 // This enum is used to record UMA histogram values and should not be
14 // reordered. Please keep in sync with PrinterStatusQueryResult in
15 // src/tools/metrics/histograms/enums.xml.
16 enum class COMPONENT_EXPORT(PRINTING_BASE) PrinterQueryResult {
17 kUnknownFailure = 0, // catchall error
18 kSuccess = 1, // successful
19 kUnreachable = 2, // failed to reach the host
20 kHostnameResolution = 3, // unable to resolve IP address from hostname
21 kMaxValue = kHostnameResolution
24 } // namespace printing
26 #endif // PRINTING_PRINTER_QUERY_RESULT_H_