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

Side by Side Diff: webrtc/p2p/base/faketransportcontroller.h

Issue 1844803002: Modify PeerConnection for end-to-end QuicDataChannel usage (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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 /* 1 /*
2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2009 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 SetChannelDestination(kv.first, kv.second); 366 SetChannelDestination(kv.first, kv.second);
367 } 367 }
368 } 368 }
369 369
370 void SetWritable(bool writable) { 370 void SetWritable(bool writable) {
371 for (const auto& kv : channels_) { 371 for (const auto& kv : channels_) {
372 kv.second->SetWritable(writable); 372 kv.second->SetWritable(writable);
373 } 373 }
374 } 374 }
375 375
376 void SetLocalCertificate( 376 bool SetLocalCertificate(
377 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) override { 377 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) override {
378 certificate_ = certificate; 378 certificate_ = certificate;
379 return true;
379 } 380 }
380 bool GetLocalCertificate( 381 bool GetLocalCertificate(
381 rtc::scoped_refptr<rtc::RTCCertificate>* certificate) override { 382 rtc::scoped_refptr<rtc::RTCCertificate>* certificate) override {
382 if (!certificate_) 383 if (!certificate_)
383 return false; 384 return false;
384 385
385 *certificate = certificate_; 386 *certificate = certificate_;
386 return true; 387 return true;
387 } 388 }
388 389
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 } 562 }
562 } 563 }
563 564
564 private: 565 private:
565 bool fail_create_channel_; 566 bool fail_create_channel_;
566 }; 567 };
567 568
568 } // namespace cricket 569 } // namespace cricket
569 570
570 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ 571 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698