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/id_map.h" |
9 #include "base/lock.h" | 9 #include "base/lock.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 void DBMessageFilter::OnChannelClosing() { | 69 void DBMessageFilter::OnChannelClosing() { |
70 AutoLock channel_auto_lock(*channel_lock_); | 70 AutoLock channel_auto_lock(*channel_lock_); |
71 channel_ = NULL; | 71 channel_ = NULL; |
72 } | 72 } |
73 | 73 |
74 bool DBMessageFilter::OnMessageReceived(const IPC::Message& message) { | 74 bool DBMessageFilter::OnMessageReceived(const IPC::Message& message) { |
75 bool handled = true; | 75 bool handled = true; |
76 IPC_BEGIN_MESSAGE_MAP(DBMessageFilter, message) | 76 IPC_BEGIN_MESSAGE_MAP(DBMessageFilter, message) |
77 IPC_MESSAGE_HANDLER(ViewMsg_DatabaseOpenFileResponse, | 77 IPC_MESSAGE_HANDLER(ViewMsg_DatabaseOpenFileResponse, |
78 OnResponse<base::PlatformFile>) | 78 OnResponse<ViewMsg_DatabaseOpenFileResponse_Params>) |
79 IPC_MESSAGE_HANDLER(ViewMsg_DatabaseDeleteFileResponse, | 79 IPC_MESSAGE_HANDLER(ViewMsg_DatabaseDeleteFileResponse, |
80 OnResponse<bool>) | 80 OnResponse<int>) |
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 |