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

Side by Side Diff: webkit/quota/quota_types.h

Issue 7438001: Cleanup: Make quota dispatcher code independent from WebKit types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix Created 9 years, 4 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
« no previous file with comments | « content/renderer/render_view.cc ('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 (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 #ifndef WEBKIT_QUOTA_QUOTA_TYPES_H_ 5 #ifndef WEBKIT_QUOTA_QUOTA_TYPES_H_
6 #define WEBKIT_QUOTA_QUOTA_TYPES_H_ 6 #define WEBKIT_QUOTA_QUOTA_TYPES_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/callback_old.h" 15 #include "base/callback_old.h"
16 #include "base/stl_util.h" 16 #include "base/stl_util.h"
17 17
18 class GURL; 18 class GURL;
19 19
20 namespace quota { 20 namespace quota {
21 21
22 enum StorageType { 22 enum StorageType {
23 kStorageTypeTemporary, 23 kStorageTypeTemporary,
24 kStorageTypePersistent, 24 kStorageTypePersistent,
25 kStorageTypeUnknown, 25 kStorageTypeUnknown,
26 }; 26 };
27 27
28 // TODO(tzik): Add assertions to 28 // The numbers should match with the error code defined in
29 // content/browser/renderer_host/quota_dispatcher_host.cc 29 // third_party/WebKit/Source/WebCore/dom/ExceptionCode.h.
30 // ref) third_party/WebKit/Source/WebCore/dom/ExceptionCode.h,
31 enum QuotaStatusCode { 30 enum QuotaStatusCode {
32 kQuotaStatusOk = 0, 31 kQuotaStatusOk = 0,
33 kQuotaErrorNotSupported = 9, // NOT_SUPPORTED_ERR 32 kQuotaErrorNotSupported = 9, // NOT_SUPPORTED_ERR
34 kQuotaErrorInvalidModification = 13, // INVALID_MODIFICATION_ERR 33 kQuotaErrorInvalidModification = 13, // INVALID_MODIFICATION_ERR
35 kQuotaErrorInvalidAccess = 15, // INVALID_ACCESS_ERR 34 kQuotaErrorInvalidAccess = 15, // INVALID_ACCESS_ERR
36 kQuotaErrorAbort = 20, // ABORT_ERR 35 kQuotaErrorAbort = 20, // ABORT_ERR
37 kQuotaStatusUnknown = -1, 36 kQuotaStatusUnknown = -1,
38 }; 37 };
39 38
40 // Common callback types that are used throughout in the quota module. 39 // Common callback types that are used throughout in the quota module.
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 const std::string&, 272 const std::string&,
274 StorageType, int64> HostUsageCallbackMap; 273 StorageType, int64> HostUsageCallbackMap;
275 typedef CallbackQueueMap4<HostQuotaCallback*, std::string, 274 typedef CallbackQueueMap4<HostQuotaCallback*, std::string,
276 QuotaStatusCode, 275 QuotaStatusCode,
277 const std::string&, 276 const std::string&,
278 StorageType, int64> HostQuotaCallbackMap; 277 StorageType, int64> HostQuotaCallbackMap;
279 278
280 } // namespace quota 279 } // namespace quota
281 280
282 #endif // WEBKIT_QUOTA_QUOTA_TYPES_H_ 281 #endif // WEBKIT_QUOTA_QUOTA_TYPES_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698