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

Side by Side Diff: chrome/common/db_message_filter.cc

Issue 174232: Chromium side patch for DB support on Linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Final version, including changes to the DEPS file. Created 11 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/database_dispatcher_host.cc ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698