| 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 "db_message_filter.h" | 5 #include "db_message_filter.h" |
| 6 | 6 |
| 7 #include "base/atomic_sequence_num.h" | 7 #include "base/atomic_sequence_num.h" |
| 8 #include "base/id_map.h" |
| 8 #include "base/lock.h" | 9 #include "base/lock.h" |
| 9 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 10 #include "base/platform_file.h" | 11 #include "base/platform_file.h" |
| 11 #include "base/task.h" | 12 #include "base/task.h" |
| 12 #include "chrome/common/child_process.h" | 13 #include "chrome/common/child_process.h" |
| 13 #include "chrome/common/id_map.h" | |
| 14 #include "chrome/common/render_messages.h" | 14 #include "chrome/common/render_messages.h" |
| 15 #include "ipc/ipc_channel.h" | 15 #include "ipc/ipc_channel.h" |
| 16 #include "ipc/ipc_message.h" | 16 #include "ipc/ipc_message.h" |
| 17 | 17 |
| 18 DBMessageFilter* DBMessageFilter::instance_ = NULL; | 18 DBMessageFilter* DBMessageFilter::instance_ = NULL; |
| 19 | 19 |
| 20 DBMessageFilter::DBMessageFilter() | 20 DBMessageFilter::DBMessageFilter() |
| 21 : io_thread_message_loop_(ChildProcess::current()->io_message_loop()), | 21 : io_thread_message_loop_(ChildProcess::current()->io_message_loop()), |
| 22 channel_(NULL), channel_lock_(new Lock()), | 22 channel_(NULL), channel_lock_(new Lock()), |
| 23 shutdown_event_(ChildProcess::current()->GetShutDownEvent()), | 23 shutdown_event_(ChildProcess::current()->GetShutDownEvent()), |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 IPC_MESSAGE_HANDLER(ViewMsg_DatabaseDeleteFileResponse, | 79 IPC_MESSAGE_HANDLER(ViewMsg_DatabaseDeleteFileResponse, |
| 80 OnResponse<bool>) | 80 OnResponse<bool>) |
| 81 IPC_MESSAGE_HANDLER(ViewMsg_DatabaseGetFileAttributesResponse, | 81 IPC_MESSAGE_HANDLER(ViewMsg_DatabaseGetFileAttributesResponse, |
| 82 OnResponse<uint32>) | 82 OnResponse<uint32>) |
| 83 IPC_MESSAGE_HANDLER(ViewMsg_DatabaseGetFileSizeResponse, | 83 IPC_MESSAGE_HANDLER(ViewMsg_DatabaseGetFileSizeResponse, |
| 84 OnResponse<int64>) | 84 OnResponse<int64>) |
| 85 IPC_MESSAGE_UNHANDLED(handled = false) | 85 IPC_MESSAGE_UNHANDLED(handled = false) |
| 86 IPC_END_MESSAGE_MAP() | 86 IPC_END_MESSAGE_MAP() |
| 87 return handled; | 87 return handled; |
| 88 } | 88 } |
| OLD | NEW |