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 RTCVoidRequest_h | 31 #ifndef RTCVoidRequest_h |
32 #define RTCVoidRequest_h | 32 #define RTCVoidRequest_h |
33 | 33 |
34 #include "wtf/PassOwnPtr.h" | 34 #include "wtf/PassOwnPtr.h" |
35 #include "wtf/RefCounted.h" | 35 #include "wtf/RefCounted.h" |
36 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
37 | 37 |
38 namespace WebCore { | 38 namespace blink { |
39 | 39 |
40 class RTCVoidRequest : public RefCounted<RTCVoidRequest> { | 40 class RTCVoidRequest : public RefCounted<RTCVoidRequest> { |
41 public: | 41 public: |
42 class ExtraData { | 42 class ExtraData { |
43 public: | 43 public: |
44 virtual ~ExtraData() { } | 44 virtual ~ExtraData() { } |
45 }; | 45 }; |
46 | 46 |
47 virtual ~RTCVoidRequest() { } | 47 virtual ~RTCVoidRequest() { } |
48 | 48 |
49 virtual void requestSucceeded() = 0; | 49 virtual void requestSucceeded() = 0; |
50 virtual void requestFailed(const String& error) = 0; | 50 virtual void requestFailed(const String& error) = 0; |
51 | 51 |
52 ExtraData* extraData() const { return m_extraData.get(); } | 52 ExtraData* extraData() const { return m_extraData.get(); } |
53 void setExtraData(PassOwnPtr<ExtraData> extraData) { m_extraData = extraData
; } | 53 void setExtraData(PassOwnPtr<ExtraData> extraData) { m_extraData = extraData
; } |
54 | 54 |
55 protected: | 55 protected: |
56 RTCVoidRequest() { } | 56 RTCVoidRequest() { } |
57 | 57 |
58 private: | 58 private: |
59 OwnPtr<ExtraData> m_extraData; | 59 OwnPtr<ExtraData> m_extraData; |
60 }; | 60 }; |
61 | 61 |
62 } // namespace WebCore | 62 } // namespace blink |
63 | 63 |
64 #endif // RTCVoidRequest_h | 64 #endif // RTCVoidRequest_h |
OLD | NEW |