Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
|
Aaron Boodman
2011/10/12 08:26:08
The separate constants files are no longer needed.
benjhayden
2011/10/13 14:07:34
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_CONSTANTS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_CONSTANTS_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_CONSTANTS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_CONSTANTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/browser/download/download_item.h" | 9 #include "content/browser/download/download_item.h" |
| 10 | 10 |
| 11 namespace extension_downloads_api_constants { | 11 namespace extension_downloads_api_constants { |
| 12 | 12 |
| 13 // Error messages | 13 // Error messages |
| 14 extern const char kNotImplemented[]; | 14 extern const char kNotImplemented[]; |
| 15 extern const char kGenericError[]; | 15 extern const char kGenericError[]; |
| 16 extern const char kInvalidURL[]; | 16 extern const char kInvalidURL[]; |
| 17 | 17 |
| 18 // Parameter keys | 18 // Parameter keys |
| 19 extern const char kBodyKey[]; | 19 extern const char kBodyKey[]; |
| 20 extern const char kBytesReceivedKey[]; | 20 extern const char kBytesReceivedKey[]; |
| 21 extern const char kDangerAcceptedKey[]; | 21 extern const char kDangerAcceptedKey[]; |
| 22 extern const char kDangerFile[]; | 22 extern const char kDangerFile[]; |
| 23 extern const char kDangerKey[]; | 23 extern const char kDangerKey[]; |
| 24 extern const char kDangerSafe[]; | 24 extern const char kDangerSafe[]; |
| 25 extern const char kDangerUrl[]; | 25 extern const char kDangerUrl[]; |
| 26 extern const char kEndTimeKey[]; | 26 extern const char kEndTimeKey[]; |
| 27 extern const char kEndedAfterKey[]; | |
| 28 extern const char kEndedBeforeKey[]; | |
| 27 extern const char kErrorKey[]; | 29 extern const char kErrorKey[]; |
| 28 extern const char kFileSizeKey[]; | 30 extern const char kFileSizeKey[]; |
| 29 extern const char kFilenameKey[]; | 31 extern const char kFilenameKey[]; |
| 32 extern const char kFilenameRegexKey[]; | |
| 30 extern const char kHeaderNameKey[]; | 33 extern const char kHeaderNameKey[]; |
| 31 extern const char kHeaderValueKey[]; | 34 extern const char kHeaderValueKey[]; |
| 32 extern const char kHeadersKey[]; | 35 extern const char kHeadersKey[]; |
| 33 extern const char kIdKey[]; | 36 extern const char kIdKey[]; |
| 37 extern const char kLimitKey[]; | |
| 34 extern const char kMethodKey[]; | 38 extern const char kMethodKey[]; |
| 35 extern const char kMimeKey[]; | 39 extern const char kMimeKey[]; |
| 40 extern const char kOrderByKey[]; | |
| 36 extern const char kPausedKey[]; | 41 extern const char kPausedKey[]; |
| 42 extern const char kQueryKey[]; | |
| 37 extern const char kSaveAsKey[]; | 43 extern const char kSaveAsKey[]; |
| 38 extern const char kStartTimeKey[]; | 44 extern const char kStartTimeKey[]; |
| 45 extern const char kStartedAfterKey[]; | |
| 46 extern const char kStartedBeforeKey[]; | |
| 39 extern const char kStateComplete[]; | 47 extern const char kStateComplete[]; |
| 40 extern const char kStateInProgress[]; | 48 extern const char kStateInProgress[]; |
| 41 extern const char kStateInterrupted[]; | 49 extern const char kStateInterrupted[]; |
| 42 extern const char kStateKey[]; | 50 extern const char kStateKey[]; |
| 51 extern const char kTotalBytesGreaterKey[]; | |
| 43 extern const char kTotalBytesKey[]; | 52 extern const char kTotalBytesKey[]; |
| 53 extern const char kTotalBytesLessKey[]; | |
| 44 extern const char kUrlKey[]; | 54 extern const char kUrlKey[]; |
| 55 extern const char kUrlRegexKey[]; | |
| 45 | 56 |
| 46 const char* DangerString(DownloadItem::DangerType danger); | 57 const char* DangerString(DownloadItem::DangerType danger); |
| 47 | 58 |
| 48 const char* StateString(DownloadItem::DownloadState state); | 59 const char* StateString(DownloadItem::DownloadState state); |
| 49 | 60 |
| 50 } // namespace extension_downloads_api_constants | 61 } // namespace extension_downloads_api_constants |
| 51 | 62 |
| 52 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_CONSTANTS_H_ | 63 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_CONSTANTS_H_ |
| OLD | NEW |