Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1253)

Side by Side Diff: Source/modules/mediastream/RTCDataChannel.h

Issue 173363002: Move mediastream module to oilpan transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 25 matching lines...) Expand all
36 class WebRTCDataChannelHandler; 36 class WebRTCDataChannelHandler;
37 class WebRTCPeerConnectionHandler; 37 class WebRTCPeerConnectionHandler;
38 struct WebRTCDataChannelInit; 38 struct WebRTCDataChannelInit;
39 } 39 }
40 40
41 namespace WebCore { 41 namespace WebCore {
42 42
43 class Blob; 43 class Blob;
44 class ExceptionState; 44 class ExceptionState;
45 45
46 class RTCDataChannel FINAL : public RefCounted<RTCDataChannel>, public ScriptWra ppable, public EventTargetWithInlineData, public blink::WebRTCDataChannelHandler Client { 46 class RTCDataChannel FINAL : public RefCountedWillBeRefCountedGarbageCollected<R TCDataChannel>, public ScriptWrappable, public EventTargetWithInlineData, public blink::WebRTCDataChannelHandlerClient {
47 REFCOUNTED_EVENT_TARGET(RTCDataChannel); 47 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<R TCDataChannel>);
48 public: 48 public:
49 static PassRefPtr<RTCDataChannel> create(ExecutionContext*, PassOwnPtr<blink ::WebRTCDataChannelHandler>); 49 static PassRefPtrWillBeRawPtr<RTCDataChannel> create(ExecutionContext*, Pass OwnPtr<blink::WebRTCDataChannelHandler>);
50 static PassRefPtr<RTCDataChannel> create(ExecutionContext*, blink::WebRTCPee rConnectionHandler*, const String& label, const blink::WebRTCDataChannelInit&, E xceptionState&); 50 static PassRefPtrWillBeRawPtr<RTCDataChannel> create(ExecutionContext*, blin k::WebRTCPeerConnectionHandler*, const String& label, const blink::WebRTCDataCha nnelInit&, ExceptionState&);
51 virtual ~RTCDataChannel(); 51 virtual ~RTCDataChannel();
52 52
53 String label() const; 53 String label() const;
54 54
55 // DEPRECATED 55 // DEPRECATED
56 bool reliable() const; 56 bool reliable() const;
57 57
58 bool ordered() const; 58 bool ordered() const;
59 unsigned short maxRetransmitTime() const; 59 unsigned short maxRetransmitTime() const;
60 unsigned short maxRetransmits() const; 60 unsigned short maxRetransmits() const;
(...skipping 13 matching lines...) Expand all
74 74
75 void close(); 75 void close();
76 76
77 DEFINE_ATTRIBUTE_EVENT_LISTENER(open); 77 DEFINE_ATTRIBUTE_EVENT_LISTENER(open);
78 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 78 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
79 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); 79 DEFINE_ATTRIBUTE_EVENT_LISTENER(close);
80 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); 80 DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
81 81
82 void stop(); 82 void stop();
83 83
84 void trace(Visitor*) { }
85
84 // EventTarget 86 // EventTarget
85 virtual const AtomicString& interfaceName() const OVERRIDE; 87 virtual const AtomicString& interfaceName() const OVERRIDE;
86 virtual ExecutionContext* executionContext() const OVERRIDE; 88 virtual ExecutionContext* executionContext() const OVERRIDE;
87 89
88 private: 90 private:
89 RTCDataChannel(ExecutionContext*, PassOwnPtr<blink::WebRTCDataChannelHandler >); 91 RTCDataChannel(ExecutionContext*, PassOwnPtr<blink::WebRTCDataChannelHandler >);
90 92
91 void scheduleDispatchEvent(PassRefPtr<Event>); 93 void scheduleDispatchEvent(PassRefPtr<Event>);
92 void scheduledEventTimerFired(Timer<RTCDataChannel>*); 94 void scheduledEventTimerFired(Timer<RTCDataChannel>*);
93 95
(...skipping 17 matching lines...) Expand all
111 }; 113 };
112 BinaryType m_binaryType; 114 BinaryType m_binaryType;
113 115
114 Timer<RTCDataChannel> m_scheduledEventTimer; 116 Timer<RTCDataChannel> m_scheduledEventTimer;
115 Vector<RefPtr<Event> > m_scheduledEvents; 117 Vector<RefPtr<Event> > m_scheduledEvents;
116 }; 118 };
117 119
118 } // namespace WebCore 120 } // namespace WebCore
119 121
120 #endif // RTCDataChannel_h 122 #endif // RTCDataChannel_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698