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

Side by Side Diff: storage/common/quota/quota_status_code.cc

Issue 524983002: Move fileapi-related files from webkit/common/ to storage/common/ and set up redirect headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit Created 6 years, 3 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
« no previous file with comments | « storage/common/quota/quota_status_code.h ('k') | storage/common/quota/quota_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/logging.h" 5 #include "base/logging.h"
6 #include "webkit/common/quota/quota_status_code.h" 6 #include "storage/common/quota/quota_status_code.h"
7 7
8 namespace storage { 8 namespace storage {
9 9
10 const char* QuotaStatusCodeToString(QuotaStatusCode status) { 10 const char* QuotaStatusCodeToString(QuotaStatusCode status) {
11 switch (status) { 11 switch (status) {
12 case kQuotaStatusOk: 12 case kQuotaStatusOk:
13 return "OK."; 13 return "OK.";
14 case kQuotaErrorNotSupported: 14 case kQuotaErrorNotSupported:
15 return "Operation not supported."; 15 return "Operation not supported.";
16 case kQuotaErrorInvalidModification: 16 case kQuotaErrorInvalidModification:
17 return "Invalid modification."; 17 return "Invalid modification.";
18 case kQuotaErrorInvalidAccess: 18 case kQuotaErrorInvalidAccess:
19 return "Invalid access."; 19 return "Invalid access.";
20 case kQuotaErrorAbort: 20 case kQuotaErrorAbort:
21 return "Quota operation aborted."; 21 return "Quota operation aborted.";
22 case kQuotaStatusUnknown: 22 case kQuotaStatusUnknown:
23 return "Unknown error."; 23 return "Unknown error.";
24 } 24 }
25 NOTREACHED(); 25 NOTREACHED();
26 return "Unknown error."; 26 return "Unknown error.";
27 } 27 }
28 28
29 } // namespace storage 29 } // namespace storage
OLDNEW
« no previous file with comments | « storage/common/quota/quota_status_code.h ('k') | storage/common/quota/quota_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698