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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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"
11 #include "modules/EventTargetModules.h" 11 #include "modules/EventTargetModules.h"
12 #include "modules/ModulesExport.h" 12 #include "modules/ModulesExport.h"
13 #include "modules/mediarecorder/MediaRecorderOptions.h" 13 #include "modules/mediarecorder/MediaRecorderOptions.h"
14 #include "modules/mediastream/MediaStream.h" 14 #include "modules/mediastream/MediaStream.h"
15 #include "platform/AsyncMethodRunner.h" 15 #include "platform/AsyncMethodRunner.h"
16 #include "public/platform/WebMediaRecorderHandler.h" 16 #include "public/platform/WebMediaRecorderHandler.h"
17 #include "public/platform/WebMediaRecorderHandlerClient.h" 17 #include "public/platform/WebMediaRecorderHandlerClient.h"
18 #include <memory>
18 19
19 namespace blink { 20 namespace blink {
20 21
21 class Blob; 22 class Blob;
22 class BlobData; 23 class BlobData;
23 class ExceptionState; 24 class ExceptionState;
24 25
25 class MODULES_EXPORT MediaRecorder final 26 class MODULES_EXPORT MediaRecorder final
26 : public EventTargetWithInlineData 27 : public EventTargetWithInlineData
27 , public WebMediaRecorderHandlerClient 28 , public WebMediaRecorderHandlerClient
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 Member<MediaStream> m_stream; 96 Member<MediaStream> m_stream;
96 size_t m_streamAmountOfTracks; 97 size_t m_streamAmountOfTracks;
97 String m_mimeType; 98 String m_mimeType;
98 bool m_stopped; 99 bool m_stopped;
99 bool m_ignoreMutedMedia; 100 bool m_ignoreMutedMedia;
100 int m_audioBitsPerSecond; 101 int m_audioBitsPerSecond;
101 int m_videoBitsPerSecond; 102 int m_videoBitsPerSecond;
102 103
103 State m_state; 104 State m_state;
104 105
105 OwnPtr<BlobData> m_blobData; 106 std::unique_ptr<BlobData> m_blobData;
106 107
107 OwnPtr<WebMediaRecorderHandler> m_recorderHandler; 108 std::unique_ptr<WebMediaRecorderHandler> m_recorderHandler;
108 109
109 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner; 110 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner;
110 HeapVector<Member<Event>> m_scheduledEvents; 111 HeapVector<Member<Event>> m_scheduledEvents;
111 }; 112 };
112 113
113 } // namespace blink 114 } // namespace blink
114 115
115 #endif // MediaRecorder_h 116 #endif // MediaRecorder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698