| 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 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 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 RTCVoidRequest_h | 31 #ifndef RTCVoidRequest_h |
| 32 #define RTCVoidRequest_h | 32 #define RTCVoidRequest_h |
| 33 | 33 |
| 34 #include <wtf/PassRefPtr.h> | 34 #include "wtf/PassRefPtr.h" |
| 35 #include <wtf/RefCounted.h> | 35 #include "wtf/RefCounted.h" |
| 36 #include <wtf/RefPtr.h> | 36 #include "wtf/RefPtr.h" |
| 37 #include <wtf/text/WTFString.h> | 37 #include "wtf/text/WTFString.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 40 | 40 |
| 41 class RTCVoidRequest : public RefCounted<RTCVoidRequest> { | 41 class RTCVoidRequest : public RefCounted<RTCVoidRequest> { |
| 42 public: | 42 public: |
| 43 class ExtraData : public RefCounted<ExtraData> { | 43 class ExtraData : public RefCounted<ExtraData> { |
| 44 public: | 44 public: |
| 45 virtual ~ExtraData() { } | 45 virtual ~ExtraData() { } |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 virtual ~RTCVoidRequest() { } | 48 virtual ~RTCVoidRequest() { } |
| 49 | 49 |
| 50 virtual void requestSucceeded() = 0; | 50 virtual void requestSucceeded() = 0; |
| 51 virtual void requestFailed(const String& error) = 0; | 51 virtual void requestFailed(const String& error) = 0; |
| 52 | 52 |
| 53 PassRefPtr<ExtraData> extraData() const { return m_extraData; } | 53 PassRefPtr<ExtraData> extraData() const { return m_extraData; } |
| 54 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData
; } | 54 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData
; } |
| 55 | 55 |
| 56 protected: | 56 protected: |
| 57 RTCVoidRequest() { } | 57 RTCVoidRequest() { } |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 RefPtr<ExtraData> m_extraData; | 60 RefPtr<ExtraData> m_extraData; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace WebCore | 63 } // namespace WebCore |
| 64 | 64 |
| 65 #endif // RTCVoidRequest_h | 65 #endif // RTCVoidRequest_h |
| OLD | NEW |