| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|