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

Unified Diff: content/common/db_message_filter.cc

Issue 19325002: Move DBMessageFilter to content/child since its only used in child ptypes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/db_message_filter.h ('k') | content/content_child.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/db_message_filter.cc
diff --git a/content/common/db_message_filter.cc b/content/common/db_message_filter.cc
deleted file mode 100644
index 0c4c8219e5b73f52fc7d0ad6992083fe0be5221d..0000000000000000000000000000000000000000
--- a/content/common/db_message_filter.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-// 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/common/db_message_filter.h"
-
-#include "content/common/database_messages.h"
-#include "third_party/WebKit/public/platform/WebString.h"
-#include "third_party/WebKit/public/web/WebDatabase.h"
-
-using WebKit::WebString;
-
-namespace content {
-
-DBMessageFilter::DBMessageFilter() {
-}
-
-bool DBMessageFilter::OnMessageReceived(const IPC::Message& message) {
- bool handled = true;
- IPC_BEGIN_MESSAGE_MAP(DBMessageFilter, message)
- IPC_MESSAGE_HANDLER(DatabaseMsg_UpdateSize, OnDatabaseUpdateSize)
- IPC_MESSAGE_HANDLER(DatabaseMsg_UpdateSpaceAvailable,
- OnDatabaseUpdateSpaceAvailable)
- IPC_MESSAGE_HANDLER(DatabaseMsg_ResetSpaceAvailable,
- OnDatabaseResetSpaceAvailable)
- IPC_MESSAGE_HANDLER(DatabaseMsg_CloseImmediately,
- OnDatabaseCloseImmediately)
- IPC_MESSAGE_UNHANDLED(handled = false)
- IPC_END_MESSAGE_MAP()
- return handled;
-}
-
-void DBMessageFilter::OnDatabaseUpdateSize(const std::string& origin_identifier,
- const string16& database_name,
- int64 database_size) {
- WebKit::WebDatabase::updateDatabaseSize(
- WebString::fromUTF8(origin_identifier), database_name, database_size);
-}
-
-void DBMessageFilter::OnDatabaseUpdateSpaceAvailable(
- const std::string& origin_identifier,
- int64 space_available) {
- WebKit::WebDatabase::updateSpaceAvailable(
- WebString::fromUTF8(origin_identifier), space_available);
-}
-
-void DBMessageFilter::OnDatabaseResetSpaceAvailable(
- const std::string& origin_identifier) {
- WebKit::WebDatabase::resetSpaceAvailable(
- WebString::fromUTF8(origin_identifier));
-}
-
-void DBMessageFilter::OnDatabaseCloseImmediately(
- const std::string& origin_identifier,
- const string16& database_name) {
- WebKit::WebDatabase::closeDatabaseImmediately(
- WebString::fromUTF8(origin_identifier), database_name);
-}
-
-} // namespace content
« no previous file with comments | « content/common/db_message_filter.h ('k') | content/content_child.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698