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

Side by Side Diff: third_party/WebKit/Source/platform/mediastream/MediaStreamDescriptor.h

Issue 2727583007: HTMLMediaElement capture: teach the captured MStream to follow up source events (Closed)
Patch Set: Made the media element and the MediaStream Members of MediaElementEventListener Created 3 years, 9 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 /* 1 /*
2 * Copyright (C) 2011 Ericsson AB. All rights reserved. 2 * Copyright (C) 2011 Ericsson AB. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 29 matching lines...) Expand all
40 #include <memory> 40 #include <memory>
41 41
42 namespace blink { 42 namespace blink {
43 43
44 class PLATFORM_EXPORT MediaStreamDescriptorClient 44 class PLATFORM_EXPORT MediaStreamDescriptorClient
45 : public GarbageCollectedMixin { 45 : public GarbageCollectedMixin {
46 public: 46 public:
47 virtual ~MediaStreamDescriptorClient() {} 47 virtual ~MediaStreamDescriptorClient() {}
48 48
49 virtual void streamEnded() = 0; 49 virtual void streamEnded() = 0;
50 virtual void addRemoteTrack(MediaStreamComponent*) = 0; 50 virtual void addTrackByComponent(MediaStreamComponent*) = 0;
51 virtual void removeRemoteTrack(MediaStreamComponent*) = 0; 51 virtual void removeTrackByComponent(MediaStreamComponent*) = 0;
52 DEFINE_INLINE_VIRTUAL_TRACE() {} 52 DEFINE_INLINE_VIRTUAL_TRACE() {}
53 }; 53 };
54 54
55 class PLATFORM_EXPORT MediaStreamDescriptor final 55 class PLATFORM_EXPORT MediaStreamDescriptor final
56 : public GarbageCollectedFinalized<MediaStreamDescriptor> { 56 : public GarbageCollectedFinalized<MediaStreamDescriptor> {
57 public: 57 public:
58 class ExtraData { 58 class ExtraData {
59 USING_FAST_MALLOC(ExtraData); 59 USING_FAST_MALLOC(ExtraData);
60 60
61 public: 61 public:
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 bool m_active; 126 bool m_active;
127 127
128 std::unique_ptr<ExtraData> m_extraData; 128 std::unique_ptr<ExtraData> m_extraData;
129 }; 129 };
130 130
131 typedef HeapVector<Member<MediaStreamDescriptor>> MediaStreamDescriptorVector; 131 typedef HeapVector<Member<MediaStreamDescriptor>> MediaStreamDescriptorVector;
132 132
133 } // namespace blink 133 } // namespace blink
134 134
135 #endif // MediaStreamDescriptor_h 135 #endif // MediaStreamDescriptor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698