printer_query_result.h 910 B

1234567891011121314151617181920212223242526
  1. // Copyright 2019 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. #ifndef PRINTING_PRINTER_QUERY_RESULT_H_
  5. #define PRINTING_PRINTER_QUERY_RESULT_H_
  6. #include "base/component_export.h"
  7. namespace printing {
  8. // Specifies query status codes.
  9. // This enum is used to record UMA histogram values and should not be
  10. // reordered. Please keep in sync with PrinterStatusQueryResult in
  11. // src/tools/metrics/histograms/enums.xml.
  12. enum class COMPONENT_EXPORT(PRINTING_BASE) PrinterQueryResult {
  13. kUnknownFailure = 0, // catchall error
  14. kSuccess = 1, // successful
  15. kUnreachable = 2, // failed to reach the host
  16. kHostnameResolution = 3, // unable to resolve IP address from hostname
  17. kMaxValue = kHostnameResolution
  18. };
  19. } // namespace printing
  20. #endif // PRINTING_PRINTER_QUERY_RESULT_H_