| 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 23 matching lines...) Expand all Loading... |
| 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 : public RTCVoidRequest, public ActiveDOMObject { |
| 43 public: | 43 public: |
| 44 static PassRefPtr<RTCVoidRequestImpl> create(ExecutionContext*, PassRefPtr<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 virtual void requestSucceeded(); |
| 48 virtual void requestFailed(const String& error); | 48 virtual void requestFailed(const String& error); |
| 49 | 49 |
| 50 // ActiveDOMObject | 50 // ActiveDOMObject |
| 51 virtual void stop() OVERRIDE; | 51 virtual void stop() OVERRIDE; |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 RTCVoidRequestImpl(ExecutionContext*, PassRefPtr<VoidCallback>, PassOwnPtr<R
TCErrorCallback>); | 54 RTCVoidRequestImpl(ExecutionContext*, PassOwnPtr<VoidCallback>, PassOwnPtr<R
TCErrorCallback>); |
| 55 | 55 |
| 56 void clear(); | 56 void clear(); |
| 57 | 57 |
| 58 RefPtr<VoidCallback> m_successCallback; | 58 OwnPtr<VoidCallback> m_successCallback; |
| 59 OwnPtr<RTCErrorCallback> m_errorCallback; | 59 OwnPtr<RTCErrorCallback> m_errorCallback; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace WebCore | 62 } // namespace WebCore |
| 63 | 63 |
| 64 #endif // RTCVoidRequestImpl_h | 64 #endif // RTCVoidRequestImpl_h |
| 65 | 65 |
| 66 | 66 |
| OLD | NEW |