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

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

Issue 142923005: Allow MessageFilters to restrict listening to specific message classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 10 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
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/process/process.h" 10 #include "base/process/process.h"
(...skipping 15 matching lines...) Expand all
26 #include "webkit/browser/database/database_util.h" 26 #include "webkit/browser/database/database_util.h"
27 #include "webkit/common/database/database_identifier.h" 27 #include "webkit/common/database/database_identifier.h"
28 28
29 using webkit_database::DatabaseUtil; 29 using webkit_database::DatabaseUtil;
30 using blink::WebIDBKey; 30 using blink::WebIDBKey;
31 31
32 namespace content { 32 namespace content {
33 33
34 IndexedDBDispatcherHost::IndexedDBDispatcherHost( 34 IndexedDBDispatcherHost::IndexedDBDispatcherHost(
35 IndexedDBContextImpl* indexed_db_context) 35 IndexedDBContextImpl* indexed_db_context)
36 : indexed_db_context_(indexed_db_context), 36 : BrowserMessageFilter(IndexedDBMsgStart),
37 indexed_db_context_(indexed_db_context),
37 database_dispatcher_host_(new DatabaseDispatcherHost(this)), 38 database_dispatcher_host_(new DatabaseDispatcherHost(this)),
38 cursor_dispatcher_host_(new CursorDispatcherHost(this)) { 39 cursor_dispatcher_host_(new CursorDispatcherHost(this)) {
39 DCHECK(indexed_db_context_); 40 DCHECK(indexed_db_context_);
40 } 41 }
41 42
42 IndexedDBDispatcherHost::~IndexedDBDispatcherHost() {} 43 IndexedDBDispatcherHost::~IndexedDBDispatcherHost() {}
43 44
44 void IndexedDBDispatcherHost::OnChannelClosing() { 45 void IndexedDBDispatcherHost::OnChannelClosing() {
45 bool success = indexed_db_context_->TaskRunner()->PostTask( 46 bool success = indexed_db_context_->TaskRunner()->PostTask(
46 FROM_HERE, 47 FROM_HERE,
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 } 843 }
843 844
844 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( 845 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed(
845 int32 ipc_object_id) { 846 int32 ipc_object_id) {
846 DCHECK( 847 DCHECK(
847 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); 848 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread());
848 parent_->DestroyObject(&map_, ipc_object_id); 849 parent_->DestroyObject(&map_, ipc_object_id);
849 } 850 }
850 851
851 } // namespace content 852 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/histogram_message_filter.cc ('k') | content/browser/loader/resource_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698