| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  *  Copyright 2012 The WebRTC Project Authors. All rights reserved. |    2  *  Copyright 2012 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 25 matching lines...) Expand all  Loading... | 
|   36 // Defines the interface for a port, which represents a local communication |   36 // Defines the interface for a port, which represents a local communication | 
|   37 // mechanism that can be used to create connections to similar mechanisms of |   37 // mechanism that can be used to create connections to similar mechanisms of | 
|   38 // the other client. Various types of ports will implement this interface. |   38 // the other client. Various types of ports will implement this interface. | 
|   39 class PortInterface { |   39 class PortInterface { | 
|   40  public: |   40  public: | 
|   41   virtual ~PortInterface() {} |   41   virtual ~PortInterface() {} | 
|   42  |   42  | 
|   43   virtual const std::string& Type() const = 0; |   43   virtual const std::string& Type() const = 0; | 
|   44   virtual rtc::Network* Network() const = 0; |   44   virtual rtc::Network* Network() const = 0; | 
|   45  |   45  | 
|   46   virtual void SetIceProtocolType(IceProtocolType protocol) = 0; |  | 
|   47   virtual IceProtocolType IceProtocol() const = 0; |  | 
|   48  |  | 
|   49   // Methods to set/get ICE role and tiebreaker values. |   46   // Methods to set/get ICE role and tiebreaker values. | 
|   50   virtual void SetIceRole(IceRole role) = 0; |   47   virtual void SetIceRole(IceRole role) = 0; | 
|   51   virtual IceRole GetIceRole() const = 0; |   48   virtual IceRole GetIceRole() const = 0; | 
|   52  |   49  | 
|   53   virtual void SetIceTiebreaker(uint64 tiebreaker) = 0; |   50   virtual void SetIceTiebreaker(uint64 tiebreaker) = 0; | 
|   54   virtual uint64 IceTiebreaker() const = 0; |   51   virtual uint64 IceTiebreaker() const = 0; | 
|   55  |   52  | 
|   56   virtual bool SharedSocket() const = 0; |   53   virtual bool SharedSocket() const = 0; | 
|   57  |   54  | 
|   58   // PrepareAddress will attempt to get an address for this port that other |   55   // PrepareAddress will attempt to get an address for this port that other | 
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  117  |  114  | 
|  118   virtual std::string ToString() const = 0; |  115   virtual std::string ToString() const = 0; | 
|  119  |  116  | 
|  120  protected: |  117  protected: | 
|  121   PortInterface() {} |  118   PortInterface() {} | 
|  122 }; |  119 }; | 
|  123  |  120  | 
|  124 }  // namespace cricket |  121 }  // namespace cricket | 
|  125  |  122  | 
|  126 #endif  // WEBRTC_P2P_BASE_PORTINTERFACE_H_ |  123 #endif  // WEBRTC_P2P_BASE_PORTINTERFACE_H_ | 
| OLD | NEW |