1 // Copyright 2013 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 "chrome/browser/extensions/api/image_writer_private/error_messages.h"
8 namespace image_writer
{
11 // General operation messages.
12 const char kAborted
[] = "ABORTED";
13 const char kNoOperationInProgress
[] = "NO_OPERATION_IN_PROGRESS";
14 const char kOperationAlreadyInProgress
[] = "OPERATION_ALREADY_IN_PROGRESS";
15 const char kUnsupportedOperation
[] = "UNSUPPORTED_OPERATION";
17 // Device listing errors
18 const char kDeviceListError
[] = "DEVICE_LIST_ERROR";
21 const char kInvalidFileEntry
[] = "FILE_INVALID";
24 const char kDownloadCancelled
[] = "DOWNLOAD_CANCELLED";
25 const char kDownloadHashError
[] = "DOWNLOAD_HASH_MISMATCH";
26 const char kDownloadInterrupted
[] = "DOWNLOAD_INTERRUPTED";
27 const char kTempDirError
[] = "TEMP_DIR_CREATION_ERROR";
28 const char kTempFileError
[] = "TEMP_FILE_CREATION_ERROR";
29 const char kUrlInvalid
[] = "URL_INVALID";
32 const char kUnzipGenericError
[] = "UNZIP_ERROR";
33 const char kUnzipInvalidArchive
[] = "UNZIP_INVALID_ARCHIVE";
36 const char kDeviceCloseError
[] = "DEVICE_CLOSE_FAILED";
37 const char kDeviceInvalid
[] = "DEVICE_INVALID";
38 const char kDeviceHashError
[] = "DEVICE_HASH_ERROR";
39 const char kDeviceOpenError
[] = "DEVICE_OPEN_ERROR";
40 const char kDeviceWriteError
[] = "DEVICE_WRITE_ERROR";
41 const char kImageCloseError
[] = "IMAGE_CLOSE_FAILED";
42 const char kImageInvalid
[] = "IMAGE_INVALID";
43 const char kImageHashError
[] = "IMAGE_HASH_ERROR";
44 const char kImageNotFound
[] = "IMAGE_NOT_FOUND";
45 const char kImageOpenError
[] = "IMAGE_OPEN_ERROR";
46 const char kImageReadError
[] = "IMAGE_READ_ERROR";
47 const char kImageSizeError
[] = "IMAGE_STAT_ERROR";
48 const char kUnmountVolumesError
[] = "UNMOUNT_VOLUMES_ERROR";
50 // Verification Errors
51 const char kHashReadError
[] = "HASH_READ_ERROR";
52 const char kVerificationFailed
[] = "VERIFICATION_FAILED";
54 // Image burner catchall
55 const char kChromeOSImageBurnerError
[] = "CHROMEOS_IMAGE_BURNER_ERROR";
58 } // namespace image_writer
59 } // namespace extensions