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

Side by Side Diff: content/child/indexed_db/webidbdatabase_impl.cc

Issue 196473018: Add safe blob-over-IPC transfer from browser->renderer for IDB. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style tweaks Created 6 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/child/indexed_db/webidbdatabase_impl.h" 5 #include "content/child/indexed_db/webidbdatabase_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "content/child/indexed_db/indexed_db_dispatcher.h" 9 #include "content/child/indexed_db/indexed_db_dispatcher.h"
10 #include "content/child/indexed_db/indexed_db_key_builders.h" 10 #include "content/child/indexed_db/indexed_db_key_builders.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 void WebIDBDatabaseImpl::abort(long long transaction_id) { 254 void WebIDBDatabaseImpl::abort(long long transaction_id) {
255 thread_safe_sender_->Send( 255 thread_safe_sender_->Send(
256 new IndexedDBHostMsg_DatabaseAbort(ipc_database_id_, transaction_id)); 256 new IndexedDBHostMsg_DatabaseAbort(ipc_database_id_, transaction_id));
257 } 257 }
258 258
259 void WebIDBDatabaseImpl::commit(long long transaction_id) { 259 void WebIDBDatabaseImpl::commit(long long transaction_id) {
260 thread_safe_sender_->Send( 260 thread_safe_sender_->Send(
261 new IndexedDBHostMsg_DatabaseCommit(ipc_database_id_, transaction_id)); 261 new IndexedDBHostMsg_DatabaseCommit(ipc_database_id_, transaction_id));
262 } 262 }
263 263
264 void WebIDBDatabaseImpl::ackReceivedBlobs(const WebVector<WebString>& uuids) {
265 DCHECK(uuids.size());
266 std::vector<std::string> param(uuids.size());
267 for (size_t i = 0; i < uuids.size(); ++i)
268 param[i] = uuids[i].latin1().data();
269 thread_safe_sender_->Send(new IndexedDBHostMsg_AckReceivedBlobs(param));
270 }
271
264 } // namespace content 272 } // namespace content
OLDNEW
« no previous file with comments | « content/child/indexed_db/webidbdatabase_impl.h ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698