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

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

Issue 1418113002: RTCPeerConnection.generateCertificate taking AlgorithmIdentifier and using WebCrypto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years, 1 month 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/rtc_certificate_generator.h" 5 #include "content/renderer/media/rtc_certificate_generator.h"
6 6
7 #include "content/renderer/media/peer_connection_identity_store.h" 7 #include "content/renderer/media/peer_connection_identity_store.h"
8 #include "content/renderer/media/rtc_certificate.h" 8 #include "content/renderer/media/rtc_certificate.h"
9 #include "third_party/webrtc/base/rtccertificate.h" 9 #include "third_party/webrtc/base/rtccertificate.h"
10 #include "third_party/webrtc/base/scoped_ref_ptr.h" 10 #include "third_party/webrtc/base/scoped_ref_ptr.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 const blink::WebURL& first_party_for_cookies, 105 const blink::WebURL& first_party_for_cookies,
106 blink::WebCallbacks<blink::WebRTCCertificate*, void>* observer) { 106 blink::WebCallbacks<blink::WebRTCCertificate*, void>* observer) {
107 rtc::scoped_ptr<PeerConnectionIdentityStore> store( 107 rtc::scoped_ptr<PeerConnectionIdentityStore> store(
108 new PeerConnectionIdentityStore(url, first_party_for_cookies)); 108 new PeerConnectionIdentityStore(url, first_party_for_cookies));
109 rtc::scoped_refptr<RTCCertificateIdentityObserver> identity_observer( 109 rtc::scoped_refptr<RTCCertificateIdentityObserver> identity_observer(
110 new rtc::RefCountedObject<RTCCertificateIdentityObserver>()); 110 new rtc::RefCountedObject<RTCCertificateIdentityObserver>());
111 // |identity_observer| lives until request has completed. 111 // |identity_observer| lives until request has completed.
112 identity_observer->RequestIdentity(store.get(), key_params, observer); 112 identity_observer->RequestIdentity(store.get(), key_params, observer);
113 } 113 }
114 114
115 bool RTCCertificateGenerator::isValidKeyParams( 115 bool RTCCertificateGenerator::isSupportedKeyParams(
116 const blink::WebRTCKeyParams& key_params) { 116 const blink::WebRTCKeyParams& key_params) {
117 return WebRTCKeyParamsToKeyParams(key_params).IsValid(); 117 return WebRTCKeyParamsToKeyParams(key_params).IsValid();
118 } 118 }
119 119
120 } // namespace content 120 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698