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

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

Issue 6811022: Add IPC plumbing code for Quota API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // Multiply-included message file, hence no include guard.
6
7 #include "ipc/ipc_message_macros.h"
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaError. h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaType.h "
10
11 #define IPC_MESSAGE_START QuotaMsgStart
12
13 IPC_ENUM_TRAITS(WebKit::WebStorageQuotaType)
14 IPC_ENUM_TRAITS(WebKit::WebStorageQuotaError)
15
16 // Quota messages sent from the browser to the child process.
17
18 IPC_MESSAGE_CONTROL2(QuotaMsg_DidGrantStorageQuota,
19 int /* request_id */,
20 int64 /* granted_quota */);
21
22 IPC_MESSAGE_CONTROL3(QuotaMsg_DidQueryStorageUsageAndQuota,
23 int /* request_id */,
24 int64 /* current_usage */,
25 int64 /* current_quota */);
26
27 IPC_MESSAGE_CONTROL2(QuotaMsg_DidFail,
28 int /* request_id */,
29 WebKit::WebStorageQuotaError /* error */);
30
31 // Quota messages sent from the child process to the browser.
32
33 IPC_MESSAGE_CONTROL3(QuotaHostMsg_QueryStorageUsageAndQuota,
34 int /* request_id */,
35 GURL /* origin_url */,
36 WebKit::WebStorageQuotaType /* type */);
37
38 IPC_MESSAGE_CONTROL4(QuotaHostMsg_RequestStorageQuota,
39 int /* request_id */,
40 GURL /* origin_url */,
41 WebKit::WebStorageQuotaType /* type */,
42 int64 /* requested_size */);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698