| 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 27 matching lines...) Expand all Loading... |
| 38 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class RTCPeerConnection; | 42 class RTCPeerConnection; |
| 43 class RTCPeerConnectionErrorCallback; | 43 class RTCPeerConnectionErrorCallback; |
| 44 class RTCSessionDescriptionCallback; | 44 class RTCSessionDescriptionCallback; |
| 45 class WebRTCSessionDescription; | 45 class WebRTCSessionDescription; |
| 46 | 46 |
| 47 class RTCSessionDescriptionRequestImpl final : public RTCSessionDescriptionReque
st, public ActiveDOMObject { | 47 class RTCSessionDescriptionRequestImpl final : public RTCSessionDescriptionReque
st, public ActiveDOMObject { |
| 48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(RTCSessionDescriptionRequestImpl); | 48 USING_GARBAGE_COLLECTED_MIXIN(RTCSessionDescriptionRequestImpl); |
| 49 public: | 49 public: |
| 50 static RTCSessionDescriptionRequestImpl* create(ExecutionContext*, RTCPeerCo
nnection*, RTCSessionDescriptionCallback*, RTCPeerConnectionErrorCallback*); | 50 static RTCSessionDescriptionRequestImpl* create(ExecutionContext*, RTCPeerCo
nnection*, RTCSessionDescriptionCallback*, RTCPeerConnectionErrorCallback*); |
| 51 ~RTCSessionDescriptionRequestImpl() override; | 51 ~RTCSessionDescriptionRequestImpl() override; |
| 52 | 52 |
| 53 void requestSucceeded(const WebRTCSessionDescription&) override; | 53 void requestSucceeded(const WebRTCSessionDescription&) override; |
| 54 void requestFailed(const String& error) override; | 54 void requestFailed(const String& error) override; |
| 55 | 55 |
| 56 // ActiveDOMObject | 56 // ActiveDOMObject |
| 57 void stop() override; | 57 void stop() override; |
| 58 | 58 |
| 59 DECLARE_VIRTUAL_TRACE(); | 59 DECLARE_VIRTUAL_TRACE(); |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 RTCSessionDescriptionRequestImpl(ExecutionContext*, RTCPeerConnection*, RTCS
essionDescriptionCallback*, RTCPeerConnectionErrorCallback*); | 62 RTCSessionDescriptionRequestImpl(ExecutionContext*, RTCPeerConnection*, RTCS
essionDescriptionCallback*, RTCPeerConnectionErrorCallback*); |
| 63 | 63 |
| 64 void clear(); | 64 void clear(); |
| 65 | 65 |
| 66 Member<RTCSessionDescriptionCallback> m_successCallback; | 66 Member<RTCSessionDescriptionCallback> m_successCallback; |
| 67 Member<RTCPeerConnectionErrorCallback> m_errorCallback; | 67 Member<RTCPeerConnectionErrorCallback> m_errorCallback; |
| 68 Member<RTCPeerConnection> m_requester; | 68 Member<RTCPeerConnection> m_requester; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace blink | 71 } // namespace blink |
| 72 | 72 |
| 73 #endif // RTCSessionDescriptionRequestImpl_h | 73 #endif // RTCSessionDescriptionRequestImpl_h |
| OLD | NEW |