| Index: content/browser/renderer_host/quota_dispatcher_host.cc
|
| diff --git a/content/browser/renderer_host/quota_dispatcher_host.cc b/content/browser/renderer_host/quota_dispatcher_host.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9b38ad7cd98925fdff15bf79dfd000bfa805a8c5
|
| --- /dev/null
|
| +++ b/content/browser/renderer_host/quota_dispatcher_host.cc
|
| @@ -0,0 +1,48 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/browser/renderer_host/quota_dispatcher_host.h"
|
| +
|
| +#include "content/common/quota_messages.h"
|
| +#include "googleurl/src/gurl.h"
|
| +
|
| +QuotaDispatcherHost::~QuotaDispatcherHost() {
|
| +}
|
| +
|
| +bool QuotaDispatcherHost::OnMessageReceived(
|
| + const IPC::Message& message, bool* message_was_ok) {
|
| + *message_was_ok = true;
|
| + bool handled = true;
|
| + IPC_BEGIN_MESSAGE_MAP_EX(QuotaDispatcherHost, message, *message_was_ok)
|
| + IPC_MESSAGE_HANDLER(QuotaHostMsg_QueryStorageUsageAndQuota,
|
| + OnQueryUsageAndQuota)
|
| + IPC_MESSAGE_HANDLER(QuotaHostMsg_RequestStorageQuota,
|
| + OnRequestStorageQuota)
|
| + IPC_MESSAGE_UNHANDLED(handled = false)
|
| + IPC_END_MESSAGE_MAP_EX()
|
| + return handled;
|
| +}
|
| +
|
| +void QuotaDispatcherHost::OnQueryUsageAndQuota(
|
| + int request_id,
|
| + const GURL& gurl,
|
| + WebKit::WebStorageQuotaType type) {
|
| + // TODO(kinuko): not implemented yet.
|
| + Send(new QuotaMsg_DidHandleQueryUsageAndQuotaQuery(
|
| + request_id,
|
| + WebKit::WebStorageQuotaErrorNotSupported,
|
| + 0, 0));
|
| +}
|
| +
|
| +void QuotaDispatcherHost::OnRequestStorageQuota(
|
| + int request_id,
|
| + const GURL& gurl,
|
| + WebKit::WebStorageQuotaType type,
|
| + int requested_size) {
|
| + // TODO(kinuko): not implemented yet.
|
| + Send(new QuotaMsg_DidHandleRequestStorageQuota(
|
| + request_id,
|
| + WebKit::WebStorageQuotaErrorNotSupported,
|
| + 0));
|
| +}
|
|
|