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

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

Issue 18147009: IndexedDB: Remove unnecessary scoped_refptr<T>::get() calls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang-format Created 7 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 <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 23 matching lines...) Expand all
34 34
35 namespace content { 35 namespace content {
36 36
37 IndexedDBDispatcherHost::IndexedDBDispatcherHost( 37 IndexedDBDispatcherHost::IndexedDBDispatcherHost(
38 int ipc_process_id, 38 int ipc_process_id,
39 IndexedDBContextImpl* indexed_db_context) 39 IndexedDBContextImpl* indexed_db_context)
40 : indexed_db_context_(indexed_db_context), 40 : indexed_db_context_(indexed_db_context),
41 database_dispatcher_host_(new DatabaseDispatcherHost(this)), 41 database_dispatcher_host_(new DatabaseDispatcherHost(this)),
42 cursor_dispatcher_host_(new CursorDispatcherHost(this)), 42 cursor_dispatcher_host_(new CursorDispatcherHost(this)),
43 ipc_process_id_(ipc_process_id) { 43 ipc_process_id_(ipc_process_id) {
44 DCHECK(indexed_db_context_.get()); 44 DCHECK(indexed_db_context_);
45 } 45 }
46 46
47 IndexedDBDispatcherHost::~IndexedDBDispatcherHost() {} 47 IndexedDBDispatcherHost::~IndexedDBDispatcherHost() {}
48 48
49 void IndexedDBDispatcherHost::OnChannelClosing() { 49 void IndexedDBDispatcherHost::OnChannelClosing() {
50 BrowserMessageFilter::OnChannelClosing(); 50 BrowserMessageFilter::OnChannelClosing();
51 51
52 bool success = indexed_db_context_->TaskRunner()->PostTask( 52 bool success = indexed_db_context_->TaskRunner()->PostTask(
53 FROM_HERE, 53 FROM_HERE,
54 base::Bind(&IndexedDBDispatcherHost::ResetDispatcherHosts, this)); 54 base::Bind(&IndexedDBDispatcherHost::ResetDispatcherHosts, this));
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 } 851 }
852 852
853 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( 853 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed(
854 int32 ipc_object_id) { 854 int32 ipc_object_id) {
855 DCHECK( 855 DCHECK(
856 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); 856 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread());
857 parent_->DestroyObject(&map_, ipc_object_id); 857 parent_->DestroyObject(&map_, ipc_object_id);
858 } 858 }
859 859
860 } // namespace content 860 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_dispatcher_host.h ('k') | content/browser/indexed_db/indexed_db_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698