| 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef RTCConfiguration_h | 31 #ifndef RTCConfiguration_h |
| 32 #define RTCConfiguration_h | 32 #define RTCConfiguration_h |
| 33 | 33 |
| 34 #include "platform/weborigin/KURL.h" | 34 #include "platform/weborigin/KURL.h" |
| 35 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
| 36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
| 37 #include "wtf/Vector.h" | 37 #include "wtf/Vector.h" |
| 38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace blink { |
| 41 | 41 |
| 42 class RTCIceServer FINAL : public RefCounted<RTCIceServer> { | 42 class RTCIceServer FINAL : public RefCounted<RTCIceServer> { |
| 43 public: | 43 public: |
| 44 static PassRefPtr<RTCIceServer> create(const KURL& uri, const String& userna
me, const String& credential) | 44 static PassRefPtr<RTCIceServer> create(const KURL& uri, const String& userna
me, const String& credential) |
| 45 { | 45 { |
| 46 return adoptRef(new RTCIceServer(uri, username, credential)); | 46 return adoptRef(new RTCIceServer(uri, username, credential)); |
| 47 } | 47 } |
| 48 | 48 |
| 49 const KURL& uri() { return m_uri; } | 49 const KURL& uri() { return m_uri; } |
| 50 const String& username() { return m_username; } | 50 const String& username() { return m_username; } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 79 void setIceTransports(RTCIceTransports iceTransports) { m_iceTransports = ic
eTransports; } | 79 void setIceTransports(RTCIceTransports iceTransports) { m_iceTransports = ic
eTransports; } |
| 80 RTCIceTransports iceTransports() { return m_iceTransports; } | 80 RTCIceTransports iceTransports() { return m_iceTransports; } |
| 81 | 81 |
| 82 private: | 82 private: |
| 83 RTCConfiguration() : m_iceTransports(RTCIceTransportsAll) { } | 83 RTCConfiguration() : m_iceTransports(RTCIceTransportsAll) { } |
| 84 | 84 |
| 85 Vector<RefPtr<RTCIceServer> > m_servers; | 85 Vector<RefPtr<RTCIceServer> > m_servers; |
| 86 RTCIceTransports m_iceTransports; | 86 RTCIceTransports m_iceTransports; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace WebCore | 89 } // namespace blink |
| 90 | 90 |
| 91 #endif // RTCConfiguration_h | 91 #endif // RTCConfiguration_h |
| OLD | NEW |