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

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

Issue 292163002: Destroy all rtc peer connection handlers before shutting down blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 6 years, 7 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/renderer/media/rtc_peer_connection_handler.cc ('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/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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 #include "content/renderer/gpu/gpu_benchmarking_extension.h" 72 #include "content/renderer/gpu/gpu_benchmarking_extension.h"
73 #include "content/renderer/input/input_event_filter.h" 73 #include "content/renderer/input/input_event_filter.h"
74 #include "content/renderer/input/input_handler_manager.h" 74 #include "content/renderer/input/input_handler_manager.h"
75 #include "content/renderer/media/audio_input_message_filter.h" 75 #include "content/renderer/media/audio_input_message_filter.h"
76 #include "content/renderer/media/audio_message_filter.h" 76 #include "content/renderer/media/audio_message_filter.h"
77 #include "content/renderer/media/audio_renderer_mixer_manager.h" 77 #include "content/renderer/media/audio_renderer_mixer_manager.h"
78 #include "content/renderer/media/media_stream_center.h" 78 #include "content/renderer/media/media_stream_center.h"
79 #include "content/renderer/media/midi_message_filter.h" 79 #include "content/renderer/media/midi_message_filter.h"
80 #include "content/renderer/media/peer_connection_tracker.h" 80 #include "content/renderer/media/peer_connection_tracker.h"
81 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h" 81 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h"
82 #include "content/renderer/media/rtc_peer_connection_handler.h"
82 #include "content/renderer/media/video_capture_impl_manager.h" 83 #include "content/renderer/media/video_capture_impl_manager.h"
83 #include "content/renderer/media/video_capture_message_filter.h" 84 #include "content/renderer/media/video_capture_message_filter.h"
84 #include "content/renderer/media/webrtc/peer_connection_dependency_factory.h" 85 #include "content/renderer/media/webrtc/peer_connection_dependency_factory.h"
85 #include "content/renderer/media/webrtc_identity_service.h" 86 #include "content/renderer/media/webrtc_identity_service.h"
86 #include "content/renderer/p2p/socket_dispatcher.h" 87 #include "content/renderer/p2p/socket_dispatcher.h"
87 #include "content/renderer/render_process_impl.h" 88 #include "content/renderer/render_process_impl.h"
88 #include "content/renderer/render_view_impl.h" 89 #include "content/renderer/render_view_impl.h"
89 #include "content/renderer/renderer_webkitplatformsupport_impl.h" 90 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
90 #include "content/renderer/service_worker/embedded_worker_context_message_filter .h" 91 #include "content/renderer/service_worker/embedded_worker_context_message_filter .h"
91 #include "content/renderer/service_worker/embedded_worker_dispatcher.h" 92 #include "content/renderer/service_worker/embedded_worker_dispatcher.h"
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 input_handler_manager_.reset(); 559 input_handler_manager_.reset();
559 if (input_event_filter_.get()) { 560 if (input_event_filter_.get()) {
560 RemoveFilter(input_event_filter_.get()); 561 RemoveFilter(input_event_filter_.get());
561 input_event_filter_ = NULL; 562 input_event_filter_ = NULL;
562 } 563 }
563 564
564 // Ramp down IDB before we ramp down WebKit (and V8), since IDB classes might 565 // Ramp down IDB before we ramp down WebKit (and V8), since IDB classes might
565 // hold pointers to V8 objects (e.g., via pending requests). 566 // hold pointers to V8 objects (e.g., via pending requests).
566 main_thread_indexed_db_dispatcher_.reset(); 567 main_thread_indexed_db_dispatcher_.reset();
567 568
569 RTCPeerConnectionHandler::DestructAllHandlers();
perkj_chrome 2014/05/22 06:45:26 This should be done before |media_stream_factory_|
jochen (gone - plz use gerrit) 2014/05/22 07:53:44 Done.
570
568 if (webkit_platform_support_) 571 if (webkit_platform_support_)
569 blink::shutdown(); 572 blink::shutdown();
570 573
571 lazy_tls.Pointer()->Set(NULL); 574 lazy_tls.Pointer()->Set(NULL);
572 575
573 // TODO(port) 576 // TODO(port)
574 #if defined(OS_WIN) 577 #if defined(OS_WIN)
575 // Clean up plugin channels before this thread goes away. 578 // Clean up plugin channels before this thread goes away.
576 NPChannelBase::CleanupChannels(); 579 NPChannelBase::CleanupChannels();
577 #endif 580 #endif
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 hidden_widget_count_--; 1510 hidden_widget_count_--;
1508 1511
1509 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1512 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1510 return; 1513 return;
1511 } 1514 }
1512 1515
1513 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1516 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1514 } 1517 }
1515 1518
1516 } // namespace content 1519 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_peer_connection_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698