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

Side by Side Diff: third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.h

Issue 2265873003: binding: Moves hasPendingActivity from ActiveScriptWrappable to ScriptWrappable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments. Created 4 years, 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MediaRecorder_h 5 #ifndef MediaRecorder_h
6 #define MediaRecorder_h 6 #define MediaRecorder_h
7 7
8 #include "bindings/core/v8/ActiveScriptWrappable.h" 8 #include "bindings/core/v8/ActiveScriptWrappable.h"
9 #include "core/dom/ActiveDOMObject.h" 9 #include "core/dom/ActiveDOMObject.h"
10 #include "core/events/EventTarget.h" 10 #include "core/events/EventTarget.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // EventTarget 69 // EventTarget
70 const AtomicString& interfaceName() const override; 70 const AtomicString& interfaceName() const override;
71 ExecutionContext* getExecutionContext() const override; 71 ExecutionContext* getExecutionContext() const override;
72 72
73 // ActiveDOMObject 73 // ActiveDOMObject
74 void suspend() override; 74 void suspend() override;
75 void resume() override; 75 void resume() override;
76 void stop() override; 76 void stop() override;
77 77
78 // ActiveScriptWrappable 78 // ScriptWrappable
79 bool hasPendingActivity() const final { return !m_stopped; } 79 bool hasPendingActivity() const final { return !m_stopped; }
80 80
81 // WebMediaRecorderHandlerClient 81 // WebMediaRecorderHandlerClient
82 void writeData(const char* data, size_t length, bool lastInSlice) override; 82 void writeData(const char* data, size_t length, bool lastInSlice) override;
83 void onError(const WebString& message) override; 83 void onError(const WebString& message) override;
84 84
85 DECLARE_VIRTUAL_TRACE(); 85 DECLARE_VIRTUAL_TRACE();
86 86
87 private: 87 private:
88 MediaRecorder(ExecutionContext*, MediaStream*, const MediaRecorderOptions&, ExceptionState&); 88 MediaRecorder(ExecutionContext*, MediaStream*, const MediaRecorderOptions&, ExceptionState&);
(...skipping 18 matching lines...) Expand all
107 107
108 std::unique_ptr<WebMediaRecorderHandler> m_recorderHandler; 108 std::unique_ptr<WebMediaRecorderHandler> m_recorderHandler;
109 109
110 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner; 110 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner;
111 HeapVector<Member<Event>> m_scheduledEvents; 111 HeapVector<Member<Event>> m_scheduledEvents;
112 }; 112 };
113 113
114 } // namespace blink 114 } // namespace blink
115 115
116 #endif // MediaRecorder_h 116 #endif // MediaRecorder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698