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

Side by Side Diff: content/common/quota_messages.h

Issue 7438001: Cleanup: Make quota dispatcher code independent from WebKit types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 5 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 // Multiply-included message file, hence no include guard. 5 // Multiply-included message file, hence no include guard.
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaError. h" 9 #include "webkit/quota/quota_types.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaType.h "
11 10
12 #define IPC_MESSAGE_START QuotaMsgStart 11 #define IPC_MESSAGE_START QuotaMsgStart
13 12
14 IPC_ENUM_TRAITS(WebKit::WebStorageQuotaType) 13 IPC_ENUM_TRAITS(quota::StorageType)
15 IPC_ENUM_TRAITS(WebKit::WebStorageQuotaError) 14 IPC_ENUM_TRAITS(quota::QuotaStatusCode)
16 15
17 // Quota messages sent from the browser to the child process. 16 // Quota messages sent from the browser to the child process.
18 17
19 IPC_MESSAGE_CONTROL2(QuotaMsg_DidGrantStorageQuota, 18 IPC_MESSAGE_CONTROL2(QuotaMsg_DidGrantStorageQuota,
20 int /* request_id */, 19 int /* request_id */,
21 int64 /* granted_quota */) 20 int64 /* granted_quota */)
22 21
23 IPC_MESSAGE_CONTROL3(QuotaMsg_DidQueryStorageUsageAndQuota, 22 IPC_MESSAGE_CONTROL3(QuotaMsg_DidQueryStorageUsageAndQuota,
24 int /* request_id */, 23 int /* request_id */,
25 int64 /* current_usage */, 24 int64 /* current_usage */,
26 int64 /* current_quota */) 25 int64 /* current_quota */)
27 26
28 IPC_MESSAGE_CONTROL2(QuotaMsg_DidFail, 27 IPC_MESSAGE_CONTROL2(QuotaMsg_DidFail,
29 int /* request_id */, 28 int /* request_id */,
30 WebKit::WebStorageQuotaError /* error */) 29 quota::QuotaStatusCode /* error */)
31 30
32 // Quota messages sent from the child process to the browser. 31 // Quota messages sent from the child process to the browser.
33 32
34 IPC_MESSAGE_CONTROL3(QuotaHostMsg_QueryStorageUsageAndQuota, 33 IPC_MESSAGE_CONTROL3(QuotaHostMsg_QueryStorageUsageAndQuota,
35 int /* request_id */, 34 int /* request_id */,
36 GURL /* origin_url */, 35 GURL /* origin_url */,
37 WebKit::WebStorageQuotaType /* type */) 36 quota::StorageType /* type */)
38 37
39 IPC_MESSAGE_CONTROL5(QuotaHostMsg_RequestStorageQuota, 38 IPC_MESSAGE_CONTROL5(QuotaHostMsg_RequestStorageQuota,
40 int /* render_view_id */, 39 int /* render_view_id */,
41 int /* request_id */, 40 int /* request_id */,
42 GURL /* origin_url */, 41 GURL /* origin_url */,
43 WebKit::WebStorageQuotaType /* type */, 42 quota::StorageType /* type */,
44 int64 /* requested_size */) 43 int64 /* requested_size */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698