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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 118103002: Add IPC stubs between browser and ServiceWorker's worker context in the child process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 #include "content/renderer/media/peer_connection_tracker.h" 75 #include "content/renderer/media/peer_connection_tracker.h"
76 #include "content/renderer/media/video_capture_impl_manager.h" 76 #include "content/renderer/media/video_capture_impl_manager.h"
77 #include "content/renderer/media/video_capture_message_filter.h" 77 #include "content/renderer/media/video_capture_message_filter.h"
78 #include "content/renderer/media/webrtc_identity_service.h" 78 #include "content/renderer/media/webrtc_identity_service.h"
79 #include "content/renderer/memory_benchmarking_extension.h" 79 #include "content/renderer/memory_benchmarking_extension.h"
80 #include "content/renderer/p2p/socket_dispatcher.h" 80 #include "content/renderer/p2p/socket_dispatcher.h"
81 #include "content/renderer/render_process_impl.h" 81 #include "content/renderer/render_process_impl.h"
82 #include "content/renderer/render_view_impl.h" 82 #include "content/renderer/render_view_impl.h"
83 #include "content/renderer/renderer_webkitplatformsupport_impl.h" 83 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
84 #include "content/renderer/service_worker/embedded_worker_dispatcher.h" 84 #include "content/renderer/service_worker/embedded_worker_dispatcher.h"
85 #include "content/renderer/service_worker/service_worker_context_message_filter. h"
85 #include "content/renderer/skia_benchmarking_extension.h" 86 #include "content/renderer/skia_benchmarking_extension.h"
86 #include "grit/content_resources.h" 87 #include "grit/content_resources.h"
87 #include "ipc/ipc_channel_handle.h" 88 #include "ipc/ipc_channel_handle.h"
88 #include "ipc/ipc_forwarding_message_filter.h" 89 #include "ipc/ipc_forwarding_message_filter.h"
89 #include "ipc/ipc_platform_file.h" 90 #include "ipc/ipc_platform_file.h"
90 #include "media/base/audio_hardware_config.h" 91 #include "media/base/audio_hardware_config.h"
91 #include "media/base/media.h" 92 #include "media/base/media.h"
92 #include "media/filters/gpu_video_accelerator_factories.h" 93 #include "media/filters/gpu_video_accelerator_factories.h"
93 #include "net/base/net_errors.h" 94 #include "net/base/net_errors.h"
94 #include "net/base/net_util.h" 95 #include "net/base/net_util.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 AddFilter(audio_input_message_filter_.get()); 372 AddFilter(audio_input_message_filter_.get());
372 373
373 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy()); 374 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy());
374 AddFilter(audio_message_filter_.get()); 375 AddFilter(audio_message_filter_.get());
375 376
376 midi_message_filter_ = new MIDIMessageFilter(GetIOMessageLoopProxy()); 377 midi_message_filter_ = new MIDIMessageFilter(GetIOMessageLoopProxy());
377 AddFilter(midi_message_filter_.get()); 378 AddFilter(midi_message_filter_.get());
378 379
379 AddFilter((new IndexedDBMessageFilter(thread_safe_sender()))->GetFilter()); 380 AddFilter((new IndexedDBMessageFilter(thread_safe_sender()))->GetFilter());
380 381
382 AddFilter((new ServiceWorkerContextMessageFilter())->GetFilter());
383
381 GetContentClient()->renderer()->RenderThreadStarted(); 384 GetContentClient()->renderer()->RenderThreadStarted();
382 385
383 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 386 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
384 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking)) 387 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking))
385 RegisterExtension(GpuBenchmarkingExtension::Get()); 388 RegisterExtension(GpuBenchmarkingExtension::Get());
386 389
387 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 390 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
388 if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) 391 if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking))
389 RegisterExtension(MemoryBenchmarkingExtension::Get()); 392 RegisterExtension(MemoryBenchmarkingExtension::Get());
390 #endif // USE_TCMALLOC 393 #endif // USE_TCMALLOC
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 if (!gamepad_shared_memory_reader_) 1363 if (!gamepad_shared_memory_reader_)
1361 gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader); 1364 gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader);
1362 gamepad_shared_memory_reader_->SampleGamepads(*data); 1365 gamepad_shared_memory_reader_->SampleGamepads(*data);
1363 } 1366 }
1364 1367
1365 base::ProcessId RenderThreadImpl::renderer_process_id() const { 1368 base::ProcessId RenderThreadImpl::renderer_process_id() const {
1366 return renderer_process_id_; 1369 return renderer_process_id_;
1367 } 1370 }
1368 1371
1369 } // namespace content 1372 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698