OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/common/db_message_filter.h" | 5 #include "content/common/db_message_filter.h" |
6 | 6 |
7 #include "content/common/database_messages.h" | 7 #include "content/common/database_messages.h" |
| 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 DBMessageFilter::DBMessageFilter() { | 13 DBMessageFilter::DBMessageFilter() { |
14 } | 14 } |
15 | 15 |
16 bool DBMessageFilter::OnMessageReceived(const IPC::Message& message) { | 16 bool DBMessageFilter::OnMessageReceived(const IPC::Message& message) { |
17 bool handled = true; | 17 bool handled = true; |
18 IPC_BEGIN_MESSAGE_MAP(DBMessageFilter, message) | 18 IPC_BEGIN_MESSAGE_MAP(DBMessageFilter, message) |
19 IPC_MESSAGE_HANDLER(DatabaseMsg_UpdateSize, OnDatabaseUpdateSize) | 19 IPC_MESSAGE_HANDLER(DatabaseMsg_UpdateSize, OnDatabaseUpdateSize) |
(...skipping 28 matching lines...) Expand all Loading... |
48 } | 48 } |
49 | 49 |
50 void DBMessageFilter::OnDatabaseCloseImmediately( | 50 void DBMessageFilter::OnDatabaseCloseImmediately( |
51 const string16& origin_identifier, | 51 const string16& origin_identifier, |
52 const string16& database_name) { | 52 const string16& database_name) { |
53 WebKit::WebDatabase::closeDatabaseImmediately( | 53 WebKit::WebDatabase::closeDatabaseImmediately( |
54 origin_identifier, database_name); | 54 origin_identifier, database_name); |
55 } | 55 } |
56 | 56 |
57 } // namespace content | 57 } // namespace content |
OLD | NEW |