result_codes.h 635 B

1234567891011121314151617181920212223
  1. // Copyright 2021 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 PDF_LOADER_RESULT_CODES_H_
  5. #define PDF_LOADER_RESULT_CODES_H_
  6. namespace chrome_pdf {
  7. // TODO(crbug.com/702993): After migrating away from PPAPI, re-evaluate where
  8. // this enum should live, whether it should become an enum class, and what
  9. // values it should contain.
  10. enum Result {
  11. kSuccess = 0,
  12. kErrorFailed = -2,
  13. kErrorAborted = -3,
  14. kErrorBadArgument = -4,
  15. kErrorNoAccess = -7,
  16. };
  17. } // namespace chrome_pdf
  18. #endif // PDF_LOADER_RESULT_CODES_H_