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

Side by Side Diff: content/child/child_thread.cc

Issue 408143013: Remove unused ServiceWorkerDispatcher instance (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
« no previous file with comments | « content/child/child_thread.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/child/child_thread.h" 5 #include "content/child/child_thread.h"
6 6
7 #include <signal.h> 7 #include <signal.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 19 matching lines...) Expand all
30 #include "content/child/child_process.h" 30 #include "content/child/child_process.h"
31 #include "content/child/child_resource_message_filter.h" 31 #include "content/child/child_resource_message_filter.h"
32 #include "content/child/child_shared_bitmap_manager.h" 32 #include "content/child/child_shared_bitmap_manager.h"
33 #include "content/child/fileapi/file_system_dispatcher.h" 33 #include "content/child/fileapi/file_system_dispatcher.h"
34 #include "content/child/fileapi/webfilesystem_impl.h" 34 #include "content/child/fileapi/webfilesystem_impl.h"
35 #include "content/child/mojo/mojo_application.h" 35 #include "content/child/mojo/mojo_application.h"
36 #include "content/child/power_monitor_broadcast_source.h" 36 #include "content/child/power_monitor_broadcast_source.h"
37 #include "content/child/quota_dispatcher.h" 37 #include "content/child/quota_dispatcher.h"
38 #include "content/child/quota_message_filter.h" 38 #include "content/child/quota_message_filter.h"
39 #include "content/child/resource_dispatcher.h" 39 #include "content/child/resource_dispatcher.h"
40 #include "content/child/service_worker/service_worker_dispatcher.h"
41 #include "content/child/service_worker/service_worker_message_filter.h" 40 #include "content/child/service_worker/service_worker_message_filter.h"
42 #include "content/child/socket_stream_dispatcher.h" 41 #include "content/child/socket_stream_dispatcher.h"
43 #include "content/child/thread_safe_sender.h" 42 #include "content/child/thread_safe_sender.h"
44 #include "content/child/websocket_dispatcher.h" 43 #include "content/child/websocket_dispatcher.h"
45 #include "content/common/child_process_messages.h" 44 #include "content/common/child_process_messages.h"
46 #include "content/public/common/content_switches.h" 45 #include "content/public/common/content_switches.h"
47 #include "ipc/ipc_logging.h" 46 #include "ipc/ipc_logging.h"
48 #include "ipc/ipc_switches.h" 47 #include "ipc/ipc_switches.h"
49 #include "ipc/ipc_sync_channel.h" 48 #include "ipc/ipc_sync_channel.h"
50 #include "ipc/ipc_sync_message_filter.h" 49 #include "ipc/ipc_sync_message_filter.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 socket_stream_dispatcher_.reset(new SocketStreamDispatcher()); 249 socket_stream_dispatcher_.reset(new SocketStreamDispatcher());
251 websocket_dispatcher_.reset(new WebSocketDispatcher); 250 websocket_dispatcher_.reset(new WebSocketDispatcher);
252 file_system_dispatcher_.reset(new FileSystemDispatcher()); 251 file_system_dispatcher_.reset(new FileSystemDispatcher());
253 252
254 histogram_message_filter_ = new ChildHistogramMessageFilter(); 253 histogram_message_filter_ = new ChildHistogramMessageFilter();
255 resource_message_filter_ = 254 resource_message_filter_ =
256 new ChildResourceMessageFilter(resource_dispatcher()); 255 new ChildResourceMessageFilter(resource_dispatcher());
257 256
258 service_worker_message_filter_ = 257 service_worker_message_filter_ =
259 new ServiceWorkerMessageFilter(thread_safe_sender_.get()); 258 new ServiceWorkerMessageFilter(thread_safe_sender_.get());
260 service_worker_dispatcher_.reset(
261 new ServiceWorkerDispatcher(thread_safe_sender_.get()));
262 259
263 quota_message_filter_ = 260 quota_message_filter_ =
264 new QuotaMessageFilter(thread_safe_sender_.get()); 261 new QuotaMessageFilter(thread_safe_sender_.get());
265 quota_dispatcher_.reset(new QuotaDispatcher(thread_safe_sender_.get(), 262 quota_dispatcher_.reset(new QuotaDispatcher(thread_safe_sender_.get(),
266 quota_message_filter_.get())); 263 quota_message_filter_.get()));
267 264
268 channel_->AddFilter(histogram_message_filter_.get()); 265 channel_->AddFilter(histogram_message_filter_.get());
269 channel_->AddFilter(sync_message_filter_.get()); 266 channel_->AddFilter(sync_message_filter_.get());
270 channel_->AddFilter(resource_message_filter_.get()); 267 channel_->AddFilter(resource_message_filter_.get());
271 channel_->AddFilter(quota_message_filter_->GetFilter()); 268 channel_->AddFilter(quota_message_filter_->GetFilter());
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 base::MessageLoop::current()->SetTimerSlack(timer_slack); 565 base::MessageLoop::current()->SetTimerSlack(timer_slack);
569 566
570 #ifdef OS_WIN 567 #ifdef OS_WIN
571 // Windows Vista+ has a fancy process backgrounding mode that can only be set 568 // Windows Vista+ has a fancy process backgrounding mode that can only be set
572 // from within the process. 569 // from within the process.
573 base::Process::Current().SetProcessBackgrounded(background); 570 base::Process::Current().SetProcessBackgrounded(background);
574 #endif // OS_WIN 571 #endif // OS_WIN
575 } 572 }
576 573
577 } // namespace content 574 } // namespace content
OLDNEW
« no previous file with comments | « content/child/child_thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698