| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 #endif | 70 #endif |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 WebPrivatePtr<RTCIceServer> m_private; | 73 WebPrivatePtr<RTCIceServer> m_private; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 class WebRTCICEServerArray { | 76 class WebRTCICEServerArray { |
| 77 public: | 77 public: |
| 78 WebRTCICEServerArray() {} | 78 WebRTCICEServerArray() {} |
| 79 WebRTCICEServerArray(const WebRTCICEServerArray& other) { assign(other); } | 79 WebRTCICEServerArray(const WebRTCICEServerArray& other) { assign(other); } |
| 80 ~WebRTCICEServerArray() { reset(); } |
| 80 WebRTCICEServerArray& operator=(const WebRTCICEServerArray& other) | 81 WebRTCICEServerArray& operator=(const WebRTCICEServerArray& other) |
| 81 { | 82 { |
| 82 assign(other); | 83 assign(other); |
| 83 return *this; | 84 return *this; |
| 84 } | 85 } |
| 85 | 86 |
| 86 BLINK_PLATFORM_EXPORT void assign(const WebRTCICEServerArray&); | 87 BLINK_PLATFORM_EXPORT void assign(const WebRTCICEServerArray&); |
| 87 | 88 |
| 88 BLINK_PLATFORM_EXPORT void reset(); | 89 BLINK_PLATFORM_EXPORT void reset(); |
| 89 bool isNull() const { return m_private.isNull(); } | 90 bool isNull() const { return m_private.isNull(); } |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 BLINK_PLATFORM_EXPORT WebRTCConfiguration(RTCConfiguration*); | 149 BLINK_PLATFORM_EXPORT WebRTCConfiguration(RTCConfiguration*); |
| 149 #endif | 150 #endif |
| 150 | 151 |
| 151 private: | 152 private: |
| 152 WebPrivatePtr<RTCConfiguration> m_private; | 153 WebPrivatePtr<RTCConfiguration> m_private; |
| 153 }; | 154 }; |
| 154 | 155 |
| 155 } // namespace blink | 156 } // namespace blink |
| 156 | 157 |
| 157 #endif // WebRTCConfiguration_h | 158 #endif // WebRTCConfiguration_h |
| OLD | NEW |