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

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

Issue 1101053002: Apply automatic range checks to content enum types across IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « content/common/quota_messages.h ('k') | no next file » | 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 #ifndef STORAGE_COMMON_QUOTA_QUOTA_STATUS_CODE_H_ 5 #ifndef STORAGE_COMMON_QUOTA_QUOTA_STATUS_CODE_H_
6 #define STORAGE_COMMON_QUOTA_QUOTA_STATUS_CODE_H_ 6 #define STORAGE_COMMON_QUOTA_QUOTA_STATUS_CODE_H_
7 7
8 #include "storage/common/storage_common_export.h" 8 #include "storage/common/storage_common_export.h"
9 #include "third_party/WebKit/public/platform/WebStorageQuotaError.h" 9 #include "third_party/WebKit/public/platform/WebStorageQuotaError.h"
10 10
11 namespace storage { 11 namespace storage {
12 12
13 enum QuotaStatusCode { 13 enum QuotaStatusCode {
14 kQuotaStatusOk = 0, 14 kQuotaStatusOk = 0,
15 kQuotaErrorNotSupported = blink::WebStorageQuotaErrorNotSupported, 15 kQuotaErrorNotSupported = blink::WebStorageQuotaErrorNotSupported,
16 kQuotaErrorInvalidModification = 16 kQuotaErrorInvalidModification =
17 blink::WebStorageQuotaErrorInvalidModification, 17 blink::WebStorageQuotaErrorInvalidModification,
18 kQuotaErrorInvalidAccess = blink::WebStorageQuotaErrorInvalidAccess, 18 kQuotaErrorInvalidAccess = blink::WebStorageQuotaErrorInvalidAccess,
19 kQuotaErrorAbort = blink::WebStorageQuotaErrorAbort, 19 kQuotaErrorAbort = blink::WebStorageQuotaErrorAbort,
20 kQuotaStatusUnknown = -1, 20 kQuotaStatusUnknown = -1,
21
22 kQuotaStatusLast = kQuotaStatusUnknown,
dcheng 2015/04/23 17:40:49 This is -1. This will filter out a lot of legitima
21 }; 23 };
22 24
23 STORAGE_COMMON_EXPORT const char* QuotaStatusCodeToString( 25 STORAGE_COMMON_EXPORT const char* QuotaStatusCodeToString(
24 QuotaStatusCode status); 26 QuotaStatusCode status);
25 27
26 } // namespace storage 28 } // namespace storage
27 29
28 #endif // STORAGE_COMMON_QUOTA_QUOTA_STATUS_CODE_H_ 30 #endif // STORAGE_COMMON_QUOTA_QUOTA_STATUS_CODE_H_
OLDNEW
« no previous file with comments | « content/common/quota_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698