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

Side by Side Diff: third_party/WebKit/public/platform/WebMediaStreamCenter.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
« no previous file with comments | « third_party/WebKit/Source/platform/mediastream/MediaStreamCenter.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // Stream functionality. 46 // Stream functionality.
47 virtual void didCreateMediaStream(WebMediaStream&) = 0; 47 virtual void didCreateMediaStream(WebMediaStream&) = 0;
48 virtual bool didAddMediaStreamTrack(const WebMediaStream&, 48 virtual bool didAddMediaStreamTrack(const WebMediaStream&,
49 const WebMediaStreamTrack&) = 0; 49 const WebMediaStreamTrack&) = 0;
50 virtual bool didRemoveMediaStreamTrack(const WebMediaStream&, 50 virtual bool didRemoveMediaStreamTrack(const WebMediaStream&,
51 const WebMediaStreamTrack&) = 0; 51 const WebMediaStreamTrack&) = 0;
52 virtual void didStopLocalMediaStream(const WebMediaStream&) = 0; 52 virtual void didStopLocalMediaStream(const WebMediaStream&) = 0;
53 53
54 // Track functionality. 54 // Track functionality.
55 virtual void didCreateMediaStreamTrack(const WebMediaStreamTrack&) {} 55 virtual void didCreateMediaStreamTrack(const WebMediaStreamTrack&) {}
56 virtual void didCloneMediaStreamTrack(const WebMediaStreamTrack& original,
57 const WebMediaStreamTrack& clone) {}
56 virtual void didSetContentHint(const WebMediaStreamTrack&) {} 58 virtual void didSetContentHint(const WebMediaStreamTrack&) {}
57 virtual void didEnableMediaStreamTrack(const WebMediaStreamTrack&) {} 59 virtual void didEnableMediaStreamTrack(const WebMediaStreamTrack&) {}
58 virtual void didDisableMediaStreamTrack(const WebMediaStreamTrack&) {} 60 virtual void didDisableMediaStreamTrack(const WebMediaStreamTrack&) {}
59 virtual bool didStopMediaStreamTrack(const WebMediaStreamTrack&) { 61 virtual bool didStopMediaStreamTrack(const WebMediaStreamTrack&) {
60 return false; 62 return false;
61 } 63 }
62 64
63 // Caller must take the ownership of the returned |WebAudioSourceProvider| 65 // Caller must take the ownership of the returned |WebAudioSourceProvider|
64 // object. 66 // object.
65 virtual WebAudioSourceProvider* createWebAudioSourceFromMediaStreamTrack( 67 virtual WebAudioSourceProvider* createWebAudioSourceFromMediaStreamTrack(
66 const WebMediaStreamTrack&) { 68 const WebMediaStreamTrack&) {
67 return nullptr; 69 return nullptr;
68 } 70 }
69 }; 71 };
70 72
71 } // namespace blink 73 } // namespace blink
72 74
73 #endif // WebMediaStreamCenter_h 75 #endif // WebMediaStreamCenter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/mediastream/MediaStreamCenter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698