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

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

Issue 1855193002: Move the call to enable the WebRTC event log from PeerConnectionFactory to PeerConnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added CONTENT_EXPORT to WebRTCEventLogHost. Created 4 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
« no previous file with comments | « content/renderer/media/webrtc/peer_connection_dependency_factory.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 <utility> 10 #include <utility>
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 AddObserver(peer_connection_tracker_.get()); 685 AddObserver(peer_connection_tracker_.get());
686 686
687 p2p_socket_dispatcher_ = 687 p2p_socket_dispatcher_ =
688 new P2PSocketDispatcher(GetIOMessageLoopProxy().get()); 688 new P2PSocketDispatcher(GetIOMessageLoopProxy().get());
689 AddFilter(p2p_socket_dispatcher_.get()); 689 AddFilter(p2p_socket_dispatcher_.get());
690 690
691 peer_connection_factory_.reset( 691 peer_connection_factory_.reset(
692 new PeerConnectionDependencyFactory(p2p_socket_dispatcher_.get())); 692 new PeerConnectionDependencyFactory(p2p_socket_dispatcher_.get()));
693 693
694 aec_dump_message_filter_ = new AecDumpMessageFilter( 694 aec_dump_message_filter_ = new AecDumpMessageFilter(
695 GetIOMessageLoopProxy(), message_loop()->task_runner(), 695 GetIOMessageLoopProxy(), message_loop()->task_runner());
696 peer_connection_factory_.get());
697 696
698 AddFilter(aec_dump_message_filter_.get()); 697 AddFilter(aec_dump_message_filter_.get());
699 698
700 #endif // defined(ENABLE_WEBRTC) 699 #endif // defined(ENABLE_WEBRTC)
701 700
702 audio_input_message_filter_ = 701 audio_input_message_filter_ =
703 new AudioInputMessageFilter(GetIOMessageLoopProxy()); 702 new AudioInputMessageFilter(GetIOMessageLoopProxy());
704 AddFilter(audio_input_message_filter_.get()); 703 AddFilter(audio_input_message_filter_.get());
705 704
706 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy()); 705 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy());
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
2223 v8_memory_pressure_level == v8::MemoryPressureLevel::kCritical) 2222 v8_memory_pressure_level == v8::MemoryPressureLevel::kCritical)
2224 v8_memory_pressure_level = v8::MemoryPressureLevel::kModerate; 2223 v8_memory_pressure_level = v8::MemoryPressureLevel::kModerate;
2225 2224
2226 blink::mainThreadIsolate()->MemoryPressureNotification( 2225 blink::mainThreadIsolate()->MemoryPressureNotification(
2227 v8_memory_pressure_level); 2226 v8_memory_pressure_level);
2228 blink::MemoryPressureNotificationToWorkerThreadIsolates( 2227 blink::MemoryPressureNotificationToWorkerThreadIsolates(
2229 v8_memory_pressure_level); 2228 v8_memory_pressure_level);
2230 } 2229 }
2231 2230
2232 } // namespace content 2231 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc/peer_connection_dependency_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698