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 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef RTCVoidRequestImpl_h | 31 #ifndef RTCVoidRequestImpl_h |
32 #define RTCVoidRequestImpl_h | 32 #define RTCVoidRequestImpl_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/RTCVoidRequest.h" | 36 #include "platform/mediastream/RTCVoidRequest.h" |
37 | 37 |
38 namespace WebCore { | 38 namespace blink { |
39 | 39 |
40 class RTCErrorCallback; | 40 class RTCErrorCallback; |
41 class RTCPeerConnection; | 41 class RTCPeerConnection; |
42 class VoidCallback; | 42 class VoidCallback; |
43 | 43 |
44 class RTCVoidRequestImpl FINAL : public RTCVoidRequest, public ActiveDOMObject { | 44 class RTCVoidRequestImpl FINAL : public RTCVoidRequest, public ActiveDOMObject { |
45 public: | 45 public: |
46 static PassRefPtr<RTCVoidRequestImpl> create(ExecutionContext*, RTCPeerConne
ction*, PassOwnPtr<VoidCallback>, PassOwnPtr<RTCErrorCallback>); | 46 static PassRefPtr<RTCVoidRequestImpl> create(ExecutionContext*, RTCPeerConne
ction*, PassOwnPtr<VoidCallback>, PassOwnPtr<RTCErrorCallback>); |
47 virtual ~RTCVoidRequestImpl(); | 47 virtual ~RTCVoidRequestImpl(); |
48 | 48 |
49 // RTCVoidRequest | 49 // RTCVoidRequest |
50 virtual void requestSucceeded() OVERRIDE; | 50 virtual void requestSucceeded() OVERRIDE; |
51 virtual void requestFailed(const String& error) OVERRIDE; | 51 virtual void requestFailed(const String& error) OVERRIDE; |
52 | 52 |
53 // ActiveDOMObject | 53 // ActiveDOMObject |
54 virtual void stop() OVERRIDE; | 54 virtual void stop() OVERRIDE; |
55 | 55 |
56 private: | 56 private: |
57 RTCVoidRequestImpl(ExecutionContext*, RTCPeerConnection*, PassOwnPtr<VoidCal
lback>, PassOwnPtr<RTCErrorCallback>); | 57 RTCVoidRequestImpl(ExecutionContext*, RTCPeerConnection*, PassOwnPtr<VoidCal
lback>, PassOwnPtr<RTCErrorCallback>); |
58 | 58 |
59 void clear(); | 59 void clear(); |
60 | 60 |
61 OwnPtr<VoidCallback> m_successCallback; | 61 OwnPtr<VoidCallback> m_successCallback; |
62 OwnPtr<RTCErrorCallback> m_errorCallback; | 62 OwnPtr<RTCErrorCallback> m_errorCallback; |
63 | 63 |
64 Persistent<RTCPeerConnection> m_requester; | 64 Persistent<RTCPeerConnection> m_requester; |
65 }; | 65 }; |
66 | 66 |
67 } // namespace WebCore | 67 } // namespace blink |
68 | 68 |
69 #endif // RTCVoidRequestImpl_h | 69 #endif // RTCVoidRequestImpl_h |
OLD | NEW |