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

Unified Diff: chrome/common/db_message_filter.cc

Issue 6683034: Move database files from chrome\commmon to content\common, in preparation for... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 | « chrome/common/db_message_filter.h ('k') | chrome/common/web_database_observer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/db_message_filter.cc
===================================================================
--- chrome/common/db_message_filter.cc (revision 77970)
+++ chrome/common/db_message_filter.cc (working copy)
@@ -1,38 +0,0 @@
-// Copyright (c) 2010 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 "chrome/common/db_message_filter.h"
-
-#include "chrome/common/database_messages.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
-
-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_CloseImmediately,
- OnDatabaseCloseImmediately)
- IPC_MESSAGE_UNHANDLED(handled = false)
- IPC_END_MESSAGE_MAP()
- return handled;
-}
-
-void DBMessageFilter::OnDatabaseUpdateSize(const string16& origin_identifier,
- const string16& database_name,
- int64 database_size,
- int64 space_available) {
- WebKit::WebDatabase::updateDatabaseSize(
- origin_identifier, database_name, database_size, space_available);
-}
-
-void DBMessageFilter::OnDatabaseCloseImmediately(
- const string16& origin_identifier,
- const string16& database_name) {
- WebKit::WebDatabase::closeDatabaseImmediately(
- origin_identifier, database_name);
-}
« no previous file with comments | « chrome/common/db_message_filter.h ('k') | chrome/common/web_database_observer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698