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

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: comments reflected 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
« no previous file with comments | « content/browser/renderer_host/quota_dispatcher_host.h ('k') | content/common/child_thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 OnQueryStorageUsageAndQuota)
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::OnQueryStorageUsageAndQuota(
28 int request_id,
29 const GURL& origin,
30 WebKit::WebStorageQuotaType type) {
31 // TODO(kinuko): not implemented yet.
32 Send(new QuotaMsg_DidFail(
33 request_id,
34 WebKit::WebStorageQuotaErrorNotSupported));
35 }
36
37 void QuotaDispatcherHost::OnRequestStorageQuota(
38 int request_id,
39 const GURL& origin,
40 WebKit::WebStorageQuotaType type,
41 int64 requested_size) {
42 // TODO(kinuko): not implemented yet.
43 Send(new QuotaMsg_DidFail(
44 request_id,
45 WebKit::WebStorageQuotaErrorNotSupported));
46 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/quota_dispatcher_host.h ('k') | content/common/child_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698