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 26 matching lines...) Expand all Loading... |
37 #include "wtf/PassOwnPtr.h" | 37 #include "wtf/PassOwnPtr.h" |
38 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class RTCErrorCallback; | 42 class RTCErrorCallback; |
43 class RTCPeerConnection; | 43 class RTCPeerConnection; |
44 class RTCSessionDescriptionCallback; | 44 class RTCSessionDescriptionCallback; |
45 class WebRTCSessionDescription; | 45 class WebRTCSessionDescription; |
46 | 46 |
47 class RTCSessionDescriptionRequestImpl FINAL : public RTCSessionDescriptionReque
st, public ActiveDOMObject { | 47 class RTCSessionDescriptionRequestImpl final : public RTCSessionDescriptionReque
st, public ActiveDOMObject { |
48 public: | 48 public: |
49 static RTCSessionDescriptionRequestImpl* create(ExecutionContext*, RTCPeerCo
nnection*, RTCSessionDescriptionCallback*, RTCErrorCallback*); | 49 static RTCSessionDescriptionRequestImpl* create(ExecutionContext*, RTCPeerCo
nnection*, RTCSessionDescriptionCallback*, RTCErrorCallback*); |
50 virtual ~RTCSessionDescriptionRequestImpl(); | 50 virtual ~RTCSessionDescriptionRequestImpl(); |
51 | 51 |
52 virtual void requestSucceeded(const WebRTCSessionDescription&) OVERRIDE; | 52 virtual void requestSucceeded(const WebRTCSessionDescription&) override; |
53 virtual void requestFailed(const String& error) OVERRIDE; | 53 virtual void requestFailed(const String& error) override; |
54 | 54 |
55 // ActiveDOMObject | 55 // ActiveDOMObject |
56 virtual void stop() OVERRIDE; | 56 virtual void stop() override; |
57 | 57 |
58 virtual void trace(Visitor*) OVERRIDE; | 58 virtual void trace(Visitor*) override; |
59 | 59 |
60 private: | 60 private: |
61 RTCSessionDescriptionRequestImpl(ExecutionContext*, RTCPeerConnection*, RTCS
essionDescriptionCallback*, RTCErrorCallback*); | 61 RTCSessionDescriptionRequestImpl(ExecutionContext*, RTCPeerConnection*, RTCS
essionDescriptionCallback*, RTCErrorCallback*); |
62 | 62 |
63 void clear(); | 63 void clear(); |
64 | 64 |
65 Member<RTCSessionDescriptionCallback> m_successCallback; | 65 Member<RTCSessionDescriptionCallback> m_successCallback; |
66 Member<RTCErrorCallback> m_errorCallback; | 66 Member<RTCErrorCallback> m_errorCallback; |
67 Member<RTCPeerConnection> m_requester; | 67 Member<RTCPeerConnection> m_requester; |
68 }; | 68 }; |
69 | 69 |
70 } // namespace blink | 70 } // namespace blink |
71 | 71 |
72 #endif // RTCSessionDescriptionRequestImpl_h | 72 #endif // RTCSessionDescriptionRequestImpl_h |
OLD | NEW |