| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 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 | |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_CONSTANTS_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_CONSTANTS_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "content/browser/download/download_item.h" | |
| 10 | |
| 11 namespace extension_downloads_api_constants { | |
| 12 | |
| 13 // Error messages | |
| 14 extern const char kNotImplemented[]; | |
| 15 extern const char kGenericError[]; | |
| 16 extern const char kInvalidURL[]; | |
| 17 | |
| 18 // Parameter keys | |
| 19 extern const char kBodyKey[]; | |
| 20 extern const char kBytesReceivedKey[]; | |
| 21 extern const char kDangerAcceptedKey[]; | |
| 22 extern const char kDangerFile[]; | |
| 23 extern const char kDangerKey[]; | |
| 24 extern const char kDangerSafe[]; | |
| 25 extern const char kDangerUrl[]; | |
| 26 extern const char kEndTimeKey[]; | |
| 27 extern const char kErrorKey[]; | |
| 28 extern const char kFileSizeKey[]; | |
| 29 extern const char kFilenameKey[]; | |
| 30 extern const char kHeaderNameKey[]; | |
| 31 extern const char kHeaderValueKey[]; | |
| 32 extern const char kHeadersKey[]; | |
| 33 extern const char kIdKey[]; | |
| 34 extern const char kMethodKey[]; | |
| 35 extern const char kMimeKey[]; | |
| 36 extern const char kPausedKey[]; | |
| 37 extern const char kSaveAsKey[]; | |
| 38 extern const char kStartTimeKey[]; | |
| 39 extern const char kStateComplete[]; | |
| 40 extern const char kStateInProgress[]; | |
| 41 extern const char kStateInterrupted[]; | |
| 42 extern const char kStateKey[]; | |
| 43 extern const char kTotalBytesKey[]; | |
| 44 extern const char kUrlKey[]; | |
| 45 | |
| 46 const char* DangerString(DownloadItem::DangerType danger); | |
| 47 | |
| 48 const char* StateString(DownloadItem::DownloadState state); | |
| 49 | |
| 50 } // namespace extension_downloads_api_constants | |
| 51 | |
| 52 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_CONSTANTS_H_ | |
| OLD | NEW |