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

Side by Side Diff: content/browser/renderer_host/quota_dispatcher_host.cc

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 #include "content/browser/renderer_host/quota_dispatcher_host.h"
6
7 #include "content/common/quota_messages.h"
8 #include "googleurl/src/gurl.h"
9
10 QuotaDispatcherHost::~QuotaDispatcherHost() {
11 }
12
13 bool QuotaDispatcherHost::OnMessageReceived(
14 const IPC::Message& message, bool* message_was_ok) {
15 *message_was_ok = true;
16 bool handled = true;
17 IPC_BEGIN_MESSAGE_MAP_EX(QuotaDispatcherHost, message, *message_was_ok)
18 IPC_MESSAGE_HANDLER(QuotaHostMsg_QueryStorageUsageAndQuota,
19 OnQueryUsageAndQuota)
20 IPC_MESSAGE_HANDLER(QuotaHostMsg_RequestStorageQuota,
21 OnRequestStorageQuota)
22 IPC_MESSAGE_UNHANDLED(handled = false)
23 IPC_END_MESSAGE_MAP_EX()
24 return handled;
25 }
26
27 void QuotaDispatcherHost::OnQueryUsageAndQuota(
28 int request_id,
29 const GURL& gurl,
30 WebKit::WebStorageQuotaType type) {
31 // TODO(kinuko): not implemented yet.
32 Send(new QuotaMsg_DidHandleQueryUsageAndQuotaQuery(
33 request_id,
34 WebKit::WebStorageQuotaErrorNotSupported,
35 0, 0));
36 }
37
38 void QuotaDispatcherHost::OnRequestStorageQuota(
39 int request_id,
40 const GURL& gurl,
41 WebKit::WebStorageQuotaType type,
42 int requested_size) {
43 // TODO(kinuko): not implemented yet.
44 Send(new QuotaMsg_DidHandleRequestStorageQuota(
45 request_id,
46 WebKit::WebStorageQuotaErrorNotSupported,
47 0));
48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698