| 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 20 matching lines...) Expand all Loading... |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 | 32 |
| 33 #include "public/platform/WebRTCSessionDescription.h" | 33 #include "public/platform/WebRTCSessionDescription.h" |
| 34 | 34 |
| 35 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
| 36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
| 37 #include "public/platform/WebString.h" | 37 #include "public/platform/WebString.h" |
| 38 | 38 |
| 39 namespace WebKit { | 39 namespace WebKit { |
| 40 | 40 |
| 41 class WebRTCSessionDescriptionPrivate : public RefCounted<WebRTCSessionDescripti
onPrivate> { | 41 class WebRTCSessionDescriptionPrivate FINAL : public RefCounted<WebRTCSessionDes
criptionPrivate> { |
| 42 public: | 42 public: |
| 43 static PassRefPtr<WebRTCSessionDescriptionPrivate> create(const WebString& t
ype, const WebString& sdp); | 43 static PassRefPtr<WebRTCSessionDescriptionPrivate> create(const WebString& t
ype, const WebString& sdp); |
| 44 | 44 |
| 45 WebString type() { return m_type; } | 45 WebString type() { return m_type; } |
| 46 void setType(const WebString& type) { m_type = type; } | 46 void setType(const WebString& type) { m_type = type; } |
| 47 | 47 |
| 48 WebString sdp() { return m_sdp; } | 48 WebString sdp() { return m_sdp; } |
| 49 void setSdp(const WebString& sdp) { m_sdp = sdp; } | 49 void setSdp(const WebString& sdp) { m_sdp = sdp; } |
| 50 | 50 |
| 51 private: | 51 private: |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } | 100 } |
| 101 | 101 |
| 102 void WebRTCSessionDescription::setSDP(const WebString& sdp) | 102 void WebRTCSessionDescription::setSDP(const WebString& sdp) |
| 103 { | 103 { |
| 104 ASSERT(!m_private.isNull()); | 104 ASSERT(!m_private.isNull()); |
| 105 return m_private->setSdp(sdp); | 105 return m_private->setSdp(sdp); |
| 106 } | 106 } |
| 107 | 107 |
| 108 } // namespace WebKit | 108 } // namespace WebKit |
| 109 | 109 |
| OLD | NEW |