OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/common/db_message_filter.h" | 5 #include "chrome/common/db_message_filter.h" |
6 | 6 |
7 #include "chrome/common/child_process.h" | 7 #include "chrome/common/child_process.h" |
8 #include "chrome/common/render_messages.h" | 8 #include "chrome/common/render_messages.h" |
9 #include "webkit/api/public/WebDatabase.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebDatabase.h" |
10 | 10 |
11 DBMessageFilter* DBMessageFilter::instance_ = NULL; | 11 DBMessageFilter* DBMessageFilter::instance_ = NULL; |
12 | 12 |
13 DBMessageFilter::DBMessageFilter() | 13 DBMessageFilter::DBMessageFilter() |
14 : io_thread_message_loop_(ChildProcess::current()->io_message_loop()), | 14 : io_thread_message_loop_(ChildProcess::current()->io_message_loop()), |
15 channel_(NULL), | 15 channel_(NULL), |
16 channel_lock_(new Lock()), | 16 channel_lock_(new Lock()), |
17 shutdown_event_(ChildProcess::current()->GetShutDownEvent()), | 17 shutdown_event_(ChildProcess::current()->GetShutDownEvent()), |
18 messages_awaiting_replies_(new IDMap<DBMessageState>()), | 18 messages_awaiting_replies_(new IDMap<DBMessageState>()), |
19 unique_id_generator_(new base::AtomicSequenceNumber()) { | 19 unique_id_generator_(new base::AtomicSequenceNumber()) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 return handled; | 71 return handled; |
72 } | 72 } |
73 | 73 |
74 void DBMessageFilter::OnDatabaseUpdateSize(const string16& origin_identifier, | 74 void DBMessageFilter::OnDatabaseUpdateSize(const string16& origin_identifier, |
75 const string16& database_name, | 75 const string16& database_name, |
76 int64 database_size, | 76 int64 database_size, |
77 int64 space_available) { | 77 int64 space_available) { |
78 WebKit::WebDatabase::updateDatabaseSize( | 78 WebKit::WebDatabase::updateDatabaseSize( |
79 origin_identifier, database_name, database_size, space_available); | 79 origin_identifier, database_name, database_size, space_available); |
80 } | 80 } |
OLD | NEW |