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 21 matching lines...) Expand all Loading... |
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/mediastream/RTCVoidRequest.h" | 35 #include "platform/mediastream/RTCVoidRequest.h" |
36 | 36 |
37 namespace WebCore { | 37 namespace WebCore { |
38 | 38 |
39 class RTCErrorCallback; | 39 class RTCErrorCallback; |
40 class VoidCallback; | 40 class VoidCallback; |
41 | 41 |
42 class RTCVoidRequestImpl : public RTCVoidRequest, public ActiveDOMObject { | 42 class RTCVoidRequestImpl FINAL : public RTCVoidRequest, public ActiveDOMObject { |
43 public: | 43 public: |
44 static PassRefPtr<RTCVoidRequestImpl> create(ExecutionContext*, PassOwnPtr<V
oidCallback>, PassOwnPtr<RTCErrorCallback>); | 44 static PassRefPtr<RTCVoidRequestImpl> create(ExecutionContext*, PassOwnPtr<V
oidCallback>, PassOwnPtr<RTCErrorCallback>); |
45 virtual ~RTCVoidRequestImpl(); | 45 virtual ~RTCVoidRequestImpl(); |
46 | 46 |
47 virtual void requestSucceeded(); | 47 // RTCVoidRequest |
48 virtual void requestFailed(const String& error); | 48 virtual void requestSucceeded() OVERRIDE; |
| 49 virtual void requestFailed(const String& error) OVERRIDE; |
49 | 50 |
50 // ActiveDOMObject | 51 // ActiveDOMObject |
51 virtual void stop() OVERRIDE; | 52 virtual void stop() OVERRIDE; |
52 | 53 |
53 private: | 54 private: |
54 RTCVoidRequestImpl(ExecutionContext*, PassOwnPtr<VoidCallback>, PassOwnPtr<R
TCErrorCallback>); | 55 RTCVoidRequestImpl(ExecutionContext*, PassOwnPtr<VoidCallback>, PassOwnPtr<R
TCErrorCallback>); |
55 | 56 |
56 void clear(); | 57 void clear(); |
57 | 58 |
58 OwnPtr<VoidCallback> m_successCallback; | 59 OwnPtr<VoidCallback> m_successCallback; |
59 OwnPtr<RTCErrorCallback> m_errorCallback; | 60 OwnPtr<RTCErrorCallback> m_errorCallback; |
60 }; | 61 }; |
61 | 62 |
62 } // namespace WebCore | 63 } // namespace WebCore |
63 | 64 |
64 #endif // RTCVoidRequestImpl_h | 65 #endif // RTCVoidRequestImpl_h |
65 | 66 |
66 | 67 |
OLD | NEW |