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 25 matching lines...) Expand all Loading... |
36 #include "platform/mediastream/RTCVoidRequest.h" | 36 #include "platform/mediastream/RTCVoidRequest.h" |
37 | 37 |
38 namespace blink { | 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 RTCVoidRequestImpl* create(ExecutionContext*, RTCPeerConnection*, Pas
sOwnPtrWillBeRawPtr<VoidCallback>, PassOwnPtrWillBeRawPtr<RTCErrorCallback>); | 46 static RTCVoidRequestImpl* create(ExecutionContext*, RTCPeerConnection*, Voi
dCallback*, 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 virtual void trace(Visitor*) OVERRIDE; | 56 virtual void trace(Visitor*) OVERRIDE; |
57 | 57 |
58 private: | 58 private: |
59 RTCVoidRequestImpl(ExecutionContext*, RTCPeerConnection*, PassOwnPtrWillBeRa
wPtr<VoidCallback>, PassOwnPtrWillBeRawPtr<RTCErrorCallback>); | 59 RTCVoidRequestImpl(ExecutionContext*, RTCPeerConnection*, VoidCallback*, RTC
ErrorCallback*); |
60 | 60 |
61 void clear(); | 61 void clear(); |
62 | 62 |
63 OwnPtrWillBeMember<VoidCallback> m_successCallback; | 63 Member<VoidCallback> m_successCallback; |
64 OwnPtrWillBeMember<RTCErrorCallback> m_errorCallback; | 64 Member<RTCErrorCallback> m_errorCallback; |
65 Member<RTCPeerConnection> m_requester; | 65 Member<RTCPeerConnection> m_requester; |
66 }; | 66 }; |
67 | 67 |
68 } // namespace blink | 68 } // namespace blink |
69 | 69 |
70 #endif // RTCVoidRequestImpl_h | 70 #endif // RTCVoidRequestImpl_h |
OLD | NEW |