| 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 20 matching lines...) Expand all Loading... |
| 31 #ifndef RTCSessionDescriptionRequestImpl_h | 31 #ifndef RTCSessionDescriptionRequestImpl_h |
| 32 #define RTCSessionDescriptionRequestImpl_h | 32 #define RTCSessionDescriptionRequestImpl_h |
| 33 | 33 |
| 34 #include "core/dom/ActiveDOMObject.h" | 34 #include "core/dom/ActiveDOMObject.h" |
| 35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
| 36 #include "platform/mediastream/RTCSessionDescriptionRequest.h" | 36 #include "platform/mediastream/RTCSessionDescriptionRequest.h" |
| 37 #include "wtf/PassOwnPtr.h" | 37 #include "wtf/PassOwnPtr.h" |
| 38 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 class WebRTCSessionDescription; | |
| 42 } | |
| 43 | |
| 44 namespace blink { | |
| 45 | 41 |
| 46 class RTCErrorCallback; | 42 class RTCErrorCallback; |
| 47 class RTCPeerConnection; | 43 class RTCPeerConnection; |
| 48 class RTCSessionDescriptionCallback; | 44 class RTCSessionDescriptionCallback; |
| 45 class WebRTCSessionDescription; |
| 49 | 46 |
| 50 class RTCSessionDescriptionRequestImpl FINAL : public RTCSessionDescriptionReque
st, public ActiveDOMObject { | 47 class RTCSessionDescriptionRequestImpl FINAL : public RTCSessionDescriptionReque
st, public ActiveDOMObject { |
| 51 public: | 48 public: |
| 52 static PassRefPtr<RTCSessionDescriptionRequestImpl> create(ExecutionContext*
, RTCPeerConnection*, PassOwnPtr<RTCSessionDescriptionCallback>, PassOwnPtr<RTCE
rrorCallback>); | 49 static PassRefPtr<RTCSessionDescriptionRequestImpl> create(ExecutionContext*
, RTCPeerConnection*, PassOwnPtr<RTCSessionDescriptionCallback>, PassOwnPtr<RTCE
rrorCallback>); |
| 53 virtual ~RTCSessionDescriptionRequestImpl(); | 50 virtual ~RTCSessionDescriptionRequestImpl(); |
| 54 | 51 |
| 55 virtual void requestSucceeded(const blink::WebRTCSessionDescription&) OVERRI
DE; | 52 virtual void requestSucceeded(const WebRTCSessionDescription&) OVERRIDE; |
| 56 virtual void requestFailed(const String& error) OVERRIDE; | 53 virtual void requestFailed(const String& error) OVERRIDE; |
| 57 | 54 |
| 58 // ActiveDOMObject | 55 // ActiveDOMObject |
| 59 virtual void stop() OVERRIDE; | 56 virtual void stop() OVERRIDE; |
| 60 | 57 |
| 61 private: | 58 private: |
| 62 RTCSessionDescriptionRequestImpl(ExecutionContext*, RTCPeerConnection*, Pass
OwnPtr<RTCSessionDescriptionCallback>, PassOwnPtr<RTCErrorCallback>); | 59 RTCSessionDescriptionRequestImpl(ExecutionContext*, RTCPeerConnection*, Pass
OwnPtr<RTCSessionDescriptionCallback>, PassOwnPtr<RTCErrorCallback>); |
| 63 | 60 |
| 64 void clear(); | 61 void clear(); |
| 65 | 62 |
| 66 OwnPtr<RTCSessionDescriptionCallback> m_successCallback; | 63 OwnPtr<RTCSessionDescriptionCallback> m_successCallback; |
| 67 OwnPtr<RTCErrorCallback> m_errorCallback; | 64 OwnPtr<RTCErrorCallback> m_errorCallback; |
| 68 | 65 |
| 69 Persistent<RTCPeerConnection> m_requester; | 66 Persistent<RTCPeerConnection> m_requester; |
| 70 }; | 67 }; |
| 71 | 68 |
| 72 } // namespace blink | 69 } // namespace blink |
| 73 | 70 |
| 74 #endif // RTCSessionDescriptionRequestImpl_h | 71 #endif // RTCSessionDescriptionRequestImpl_h |
| OLD | NEW |