Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(476)

Side by Side Diff: chrome/browser/extensions/extension_downloads_api_constants.cc

Issue 8203005: Implement chrome.experimental.downloads.onChanged (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: on_changed_stats_,OnChangedStat Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698