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

Side by Side Diff: content/browser/indexed_db/indexed_db_dispatcher_host.cc

Issue 405433007: IndexedDB: Fix coding style issues c/o cpplint.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/indexed_db/indexed_db_dispatcher_host.h" 5 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 } 204 }
205 205
206 // static 206 // static
207 uint32 IndexedDBDispatcherHost::TransactionIdToProcessId( 207 uint32 IndexedDBDispatcherHost::TransactionIdToProcessId(
208 int64 host_transaction_id) { 208 int64 host_transaction_id) {
209 return (host_transaction_id >> 32) & 0xffffffff; 209 return (host_transaction_id >> 32) & 0xffffffff;
210 } 210 }
211 211
212 void IndexedDBDispatcherHost::HoldBlobDataHandle( 212 void IndexedDBDispatcherHost::HoldBlobDataHandle(
213 const std::string& uuid, 213 const std::string& uuid,
214 scoped_ptr<webkit_blob::BlobDataHandle>& blob_data_handle) { 214 scoped_ptr<webkit_blob::BlobDataHandle> blob_data_handle) {
215 DCHECK(!ContainsKey(blob_data_handle_map_, uuid)); 215 DCHECK(!ContainsKey(blob_data_handle_map_, uuid));
216 blob_data_handle_map_[uuid] = blob_data_handle.release(); 216 blob_data_handle_map_[uuid] = blob_data_handle.release();
217 } 217 }
218 218
219 void IndexedDBDispatcherHost::DropBlobDataHandle(const std::string& uuid) { 219 void IndexedDBDispatcherHost::DropBlobDataHandle(const std::string& uuid) {
220 BlobDataHandleMap::iterator iter = blob_data_handle_map_.find(uuid); 220 BlobDataHandleMap::iterator iter = blob_data_handle_map_.find(uuid);
221 if (iter != blob_data_handle_map_.end()) { 221 if (iter != blob_data_handle_map_.end()) {
222 delete iter->second; 222 delete iter->second;
223 blob_data_handle_map_.erase(iter); 223 blob_data_handle_map_.erase(iter);
224 } else { 224 } else {
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 } 991 }
992 992
993 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( 993 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed(
994 int32 ipc_object_id) { 994 int32 ipc_object_id) {
995 DCHECK( 995 DCHECK(
996 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); 996 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread());
997 parent_->DestroyObject(&map_, ipc_object_id); 997 parent_->DestroyObject(&map_, ipc_object_id);
998 } 998 }
999 999
1000 } // namespace content 1000 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_dispatcher_host.h ('k') | content/browser/indexed_db/indexed_db_fake_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698