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

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

Issue 2791303002: Clone MediaStream video tracks correctly with spec-compliant constraints. (Closed)
Patch Set: rebase Created 3 years, 8 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 2014 Google Inc. All rights reserved. 2 * Copyright 2014 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 : public WebMediaStreamCenterClient { 51 : public WebMediaStreamCenterClient {
52 USING_FAST_MALLOC(MediaStreamCenter); 52 USING_FAST_MALLOC(MediaStreamCenter);
53 WTF_MAKE_NONCOPYABLE(MediaStreamCenter); 53 WTF_MAKE_NONCOPYABLE(MediaStreamCenter);
54 54
55 public: 55 public:
56 ~MediaStreamCenter() override; 56 ~MediaStreamCenter() override;
57 57
58 static MediaStreamCenter& instance(); 58 static MediaStreamCenter& instance();
59 59
60 void didCreateMediaStreamTrack(MediaStreamComponent*); 60 void didCreateMediaStreamTrack(MediaStreamComponent*);
61 void didCloneMediaStreamTrack(MediaStreamComponent* original,
62 MediaStreamComponent* clone);
61 void didSetMediaStreamTrackEnabled(MediaStreamComponent*); 63 void didSetMediaStreamTrackEnabled(MediaStreamComponent*);
62 void didSetContentHint(MediaStreamComponent*); 64 void didSetContentHint(MediaStreamComponent*);
63 bool didStopMediaStreamTrack(MediaStreamComponent*); 65 bool didStopMediaStreamTrack(MediaStreamComponent*);
64 std::unique_ptr<AudioSourceProvider> createWebAudioSourceFromMediaStreamTrack( 66 std::unique_ptr<AudioSourceProvider> createWebAudioSourceFromMediaStreamTrack(
65 MediaStreamComponent*); 67 MediaStreamComponent*);
66 68
67 void didCreateMediaStream(MediaStreamDescriptor*); 69 void didCreateMediaStream(MediaStreamDescriptor*);
68 void didCreateMediaStreamAndTracks(MediaStreamDescriptor*); 70 void didCreateMediaStreamAndTracks(MediaStreamDescriptor*);
69 bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*); 71 bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*);
70 bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*); 72 bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*);
71 void didStopLocalMediaStream(MediaStreamDescriptor*); 73 void didStopLocalMediaStream(MediaStreamDescriptor*);
72 74
73 // blink::WebMediaStreamCenterClient 75 // blink::WebMediaStreamCenterClient
74 void stopLocalMediaStream(const WebMediaStream&) override; 76 void stopLocalMediaStream(const WebMediaStream&) override;
75 77
76 private: 78 private:
77 MediaStreamCenter(); 79 MediaStreamCenter();
78 80
79 std::unique_ptr<WebMediaStreamCenter> m_private; 81 std::unique_ptr<WebMediaStreamCenter> m_private;
80 }; 82 };
81 83
82 } // namespace blink 84 } // namespace blink
83 85
84 #endif // MediaStreamCenter_h 86 #endif // MediaStreamCenter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698