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

Side by Side Diff: content/renderer/media/media_stream_dependency_factory.cc

Issue 29253003: Enable DTLS caching for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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 (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/media/media_stream_dependency_factory.h" 5 #include "content/renderer/media/media_stream_dependency_factory.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 CHECK(observer); 568 CHECK(observer);
569 569
570 scoped_refptr<P2PPortAllocatorFactory> pa_factory = 570 scoped_refptr<P2PPortAllocatorFactory> pa_factory =
571 new talk_base::RefCountedObject<P2PPortAllocatorFactory>( 571 new talk_base::RefCountedObject<P2PPortAllocatorFactory>(
572 p2p_socket_dispatcher_.get(), 572 p2p_socket_dispatcher_.get(),
573 network_manager_, 573 network_manager_,
574 socket_factory_.get(), 574 socket_factory_.get(),
575 web_frame); 575 web_frame);
576 576
577 PeerConnectionIdentityService* identity_service = 577 PeerConnectionIdentityService* identity_service =
578 PeerConnectionIdentityService::Create( 578 new PeerConnectionIdentityService(
579 GURL(web_frame->document().url().spec()).GetOrigin()); 579 GURL(web_frame->document().url().spec()).GetOrigin());
580 580
581 return pc_factory_->CreatePeerConnection(ice_servers, 581 return pc_factory_->CreatePeerConnection(ice_servers,
582 constraints, 582 constraints,
583 pa_factory.get(), 583 pa_factory.get(),
584 identity_service, 584 identity_service,
585 observer).get(); 585 observer).get();
586 } 586 }
587 587
588 scoped_refptr<webrtc::MediaStreamInterface> 588 scoped_refptr<webrtc::MediaStreamInterface>
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 } 837 }
838 838
839 // Add the capturer to the WebRtcAudioDeviceImpl if it is a new capturer. 839 // Add the capturer to the WebRtcAudioDeviceImpl if it is a new capturer.
840 if (is_new_capturer) 840 if (is_new_capturer)
841 GetWebRtcAudioDevice()->AddAudioCapturer(capturer); 841 GetWebRtcAudioDevice()->AddAudioCapturer(capturer);
842 842
843 return capturer; 843 return capturer;
844 } 844 }
845 845
846 } // namespace content 846 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698