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

Side by Side Diff: content/browser/shared_worker/shared_worker_message_filter.cc

Issue 182693002: Implement some mothods in SharedWorkerHost and SharedWorkerServiceImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added null check of instance in SharedWorkerHost 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/shared_worker/shared_worker_message_filter.h" 5 #include "content/browser/shared_worker/shared_worker_message_filter.h"
6 6
7 #include "content/browser/devtools/worker_devtools_manager.h" 7 #include "content/browser/devtools/worker_devtools_manager.h"
8 #include "content/browser/message_port_message_filter.h" 8 #include "content/browser/message_port_message_filter.h"
9 #include "content/browser/shared_worker/shared_worker_service_impl.h" 9 #include "content/browser/shared_worker/shared_worker_service_impl.h"
10 #include "content/common/devtools_messages.h" 10 #include "content/common/devtools_messages.h"
(...skipping 12 matching lines...) Expand all
23 int render_process_id, 23 int render_process_id,
24 ResourceContext* resource_context, 24 ResourceContext* resource_context,
25 const WorkerStoragePartition& partition, 25 const WorkerStoragePartition& partition,
26 MessagePortMessageFilter* message_port_message_filter) 26 MessagePortMessageFilter* message_port_message_filter)
27 : BrowserMessageFilter( 27 : BrowserMessageFilter(
28 kFilteredMessageClasses, arraysize(kFilteredMessageClasses)), 28 kFilteredMessageClasses, arraysize(kFilteredMessageClasses)),
29 render_process_id_(render_process_id), 29 render_process_id_(render_process_id),
30 resource_context_(resource_context), 30 resource_context_(resource_context),
31 partition_(partition), 31 partition_(partition),
32 message_port_message_filter_(message_port_message_filter) { 32 message_port_message_filter_(message_port_message_filter) {
33 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
34 } 33 }
35 34
36 SharedWorkerMessageFilter::~SharedWorkerMessageFilter() { 35 SharedWorkerMessageFilter::~SharedWorkerMessageFilter() {
37 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 36 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
38 } 37 }
39 38
40 void SharedWorkerMessageFilter::OnChannelClosing() { 39 void SharedWorkerMessageFilter::OnChannelClosing() {
41 SharedWorkerServiceImpl::GetInstance()->OnSharedWorkerMessageFilterClosing( 40 SharedWorkerServiceImpl::GetInstance()->OnSharedWorkerMessageFilterClosing(
42 this); 41 this);
43 } 42 }
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 const base::string16& name, 153 const base::string16& name,
155 bool* result) { 154 bool* result) {
156 SharedWorkerServiceImpl::GetInstance()->AllowIndexedDB(worker_route_id, 155 SharedWorkerServiceImpl::GetInstance()->AllowIndexedDB(worker_route_id,
157 url, 156 url,
158 name, 157 name,
159 result, 158 result,
160 this); 159 this);
161 } 160 }
162 161
163 } // namespace content 162 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/shared_worker/shared_worker_host.cc ('k') | content/browser/shared_worker/shared_worker_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698