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

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

Issue 1540303003: MediaRecorder: update to spec (3/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reverted DEPS to master Created 4 years, 11 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 "core/dom/ActiveDOMObject.h" 8 #include "core/dom/ActiveDOMObject.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "modules/EventTargetModules.h" 10 #include "modules/EventTargetModules.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void start(ExceptionState&); 56 void start(ExceptionState&);
57 void start(int timeSlice, ExceptionState&); 57 void start(int timeSlice, ExceptionState&);
58 void stop(ExceptionState&); 58 void stop(ExceptionState&);
59 void pause(ExceptionState&); 59 void pause(ExceptionState&);
60 void resume(ExceptionState&); 60 void resume(ExceptionState&);
61 void requestData(ExceptionState&); 61 void requestData(ExceptionState&);
62 62
63 static bool isTypeSupported(const String& type); 63 static bool isTypeSupported(const String& type);
64 64
65 // EventTarget 65 // EventTarget
66 virtual const AtomicString& interfaceName() const override; 66 const AtomicString& interfaceName() const override;
67 virtual ExecutionContext* executionContext() const override; 67 ExecutionContext* executionContext() const override;
68 68
69 // ActiveDOMObject 69 // ActiveDOMObject
70 virtual void suspend() override; 70 void suspend() override;
71 virtual void resume() override; 71 void resume() override;
72 virtual void stop() override; 72 void stop() override;
73 virtual bool hasPendingActivity() const override { return !m_stopped; } 73 bool hasPendingActivity() const override { return !m_stopped; }
74 74
75 // WebMediaRecorderHandlerClient 75 // WebMediaRecorderHandlerClient
76 virtual void writeData(const char* data, size_t length, bool lastInSlice) ov erride; 76 void writeData(const char* data, size_t length, bool lastInSlice) override;
77 virtual void failOutOfMemory(const WebString& message) override; 77 void onError(const WebString& message) override;
78 virtual void failIllegalStreamModification(const WebString& message) overrid e;
79 virtual void failOtherRecordingError(const WebString& message) override;
80 78
81 DECLARE_VIRTUAL_TRACE(); 79 DECLARE_VIRTUAL_TRACE();
82 80
83 private: 81 private:
84 MediaRecorder(ExecutionContext*, MediaStream*, const MediaRecorderOptions&, ExceptionState&); 82 MediaRecorder(ExecutionContext*, MediaStream*, const MediaRecorderOptions&, ExceptionState&);
85 83
86 void createBlobEvent(Blob*); 84 void createBlobEvent(Blob*);
87 85
88 void stopRecording(); 86 void stopRecording();
89 void scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event>); 87 void scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event>);
(...skipping 10 matching lines...) Expand all
100 98
101 OwnPtr<WebMediaRecorderHandler> m_recorderHandler; 99 OwnPtr<WebMediaRecorderHandler> m_recorderHandler;
102 100
103 AsyncMethodRunner<MediaRecorder> m_dispatchScheduledEventRunner; 101 AsyncMethodRunner<MediaRecorder> m_dispatchScheduledEventRunner;
104 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; 102 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents;
105 }; 103 };
106 104
107 } // namespace blink 105 } // namespace blink
108 106
109 #endif // MediaRecorder_h 107 #endif // MediaRecorder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698