| 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 28 matching lines...) Expand all Loading... |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace WebCore { | 41 namespace WebCore { |
| 42 | 42 |
| 43 class RTCErrorCallback; | 43 class RTCErrorCallback; |
| 44 class RTCPeerConnection; | 44 class RTCPeerConnection; |
| 45 class RTCSessionDescriptionCallback; | 45 class RTCSessionDescriptionCallback; |
| 46 | 46 |
| 47 class RTCSessionDescriptionRequestImpl : public RTCSessionDescriptionRequest, pu
blic ActiveDOMObject { | 47 class RTCSessionDescriptionRequestImpl : public RTCSessionDescriptionRequest, pu
blic ActiveDOMObject { |
| 48 public: | 48 public: |
| 49 static PassRefPtr<RTCSessionDescriptionRequestImpl> create(ExecutionContext*
, PassRefPtr<RTCSessionDescriptionCallback>, PassRefPtr<RTCErrorCallback>); | 49 static PassRefPtr<RTCSessionDescriptionRequestImpl> create(ExecutionContext*
, PassOwnPtr<RTCSessionDescriptionCallback>, PassOwnPtr<RTCErrorCallback>); |
| 50 virtual ~RTCSessionDescriptionRequestImpl(); | 50 virtual ~RTCSessionDescriptionRequestImpl(); |
| 51 | 51 |
| 52 virtual void requestSucceeded(const blink::WebRTCSessionDescription&) OVERRI
DE; | 52 virtual void requestSucceeded(const blink::WebRTCSessionDescription&) OVERRI
DE; |
| 53 virtual void requestFailed(const String& error) OVERRIDE; | 53 virtual void requestFailed(const String& error) OVERRIDE; |
| 54 | 54 |
| 55 // ActiveDOMObject | 55 // ActiveDOMObject |
| 56 virtual void stop() OVERRIDE; | 56 virtual void stop() OVERRIDE; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 RTCSessionDescriptionRequestImpl(ExecutionContext*, PassRefPtr<RTCSessionDes
criptionCallback>, PassRefPtr<RTCErrorCallback>); | 59 RTCSessionDescriptionRequestImpl(ExecutionContext*, PassOwnPtr<RTCSessionDes
criptionCallback>, PassOwnPtr<RTCErrorCallback>); |
| 60 | 60 |
| 61 void clear(); | 61 void clear(); |
| 62 | 62 |
| 63 RefPtr<RTCSessionDescriptionCallback> m_successCallback; | 63 OwnPtr<RTCSessionDescriptionCallback> m_successCallback; |
| 64 RefPtr<RTCErrorCallback> m_errorCallback; | 64 OwnPtr<RTCErrorCallback> m_errorCallback; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace WebCore | 67 } // namespace WebCore |
| 68 | 68 |
| 69 #endif // RTCSessionDescriptionRequestImpl_h | 69 #endif // RTCSessionDescriptionRequestImpl_h |
| 70 | 70 |
| 71 | 71 |
| OLD | NEW |