| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #include "chrome/browser/extensions/extension_downloads_api_constants.h" | 5 #include "chrome/browser/download/download_extension_api_constants.h" |
| 6 | 6 |
| 7 namespace extension_downloads_api_constants { | 7 namespace download_extension_api_constants { |
| 8 | 8 |
| 9 // Error messages | 9 // Error messages |
| 10 const char kNotImplemented[] = "NotImplemented"; | 10 const char kNotImplemented[] = "NotImplemented"; |
| 11 const char kGenericError[] = "I'm afraid I can't do that."; | 11 const char kGenericError[] = "I'm afraid I can't do that."; |
| 12 const char kInvalidURL[] = "Invalid URL"; | 12 const char kInvalidURL[] = "Invalid URL"; |
| 13 | 13 |
| 14 // Parameter keys | 14 // Parameter keys |
| 15 const char kBodyKey[] = "body"; | 15 const char kBodyKey[] = "body"; |
| 16 const char kBytesReceivedKey[] = "bytesReceived"; | 16 const char kBytesReceivedKey[] = "bytesReceived"; |
| 17 const char kDangerAcceptedKey[] = "dangerAccepted"; | 17 const char kDangerAcceptedKey[] = "dangerAccepted"; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 case DownloadItem::IN_PROGRESS: return kStateInProgress; | 55 case DownloadItem::IN_PROGRESS: return kStateInProgress; |
| 56 case DownloadItem::COMPLETE: return kStateComplete; | 56 case DownloadItem::COMPLETE: return kStateComplete; |
| 57 case DownloadItem::INTERRUPTED: // fall through | 57 case DownloadItem::INTERRUPTED: // fall through |
| 58 case DownloadItem::CANCELLED: return kStateInterrupted; | 58 case DownloadItem::CANCELLED: return kStateInterrupted; |
| 59 case DownloadItem::REMOVING: // fall through | 59 case DownloadItem::REMOVING: // fall through |
| 60 default: | 60 default: |
| 61 NOTREACHED(); | 61 NOTREACHED(); |
| 62 return ""; | 62 return ""; |
| 63 } | 63 } |
| 64 } | 64 } |
| 65 } // namespace extension_downloads_api_constants | 65 |
| 66 } // namespace download_extension_api_constants |
| OLD | NEW |