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/extensions/extension_downloads_api_constants.h" |
6 | 6 |
7 namespace extension_downloads_api_constants { | 7 namespace extension_downloads_api_constants { |
8 | 8 |
9 // Error messages | 9 // Error messages |
10 const char kNotImplemented[] = "NotImplemented"; | 10 const char kNotImplemented[] = "NotImplemented"; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 } | 51 } |
52 | 52 |
53 const char* StateString(DownloadItem::DownloadState state) { | 53 const char* StateString(DownloadItem::DownloadState state) { |
54 switch (state) { | 54 switch (state) { |
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() << state; |
62 return ""; | 62 return ""; |
63 } | 63 } |
64 } | 64 } |
65 } // namespace extension_downloads_api_constants | 65 } // namespace extension_downloads_api_constants |
OLD | NEW |