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

Side by Side Diff: third_party/WebKit/public/platform/WebMediaStreamCenter.h

Issue 2501623003: Implement MediaStreamTrack contentHint skeleton. (Closed)
Patch Set: ContentHint -> ContentHintType Created 4 years 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) 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 didSetContentHint(const WebMediaStreamTrack&) {}
56 virtual void didEnableMediaStreamTrack(const WebMediaStreamTrack&) {} 57 virtual void didEnableMediaStreamTrack(const WebMediaStreamTrack&) {}
57 virtual void didDisableMediaStreamTrack(const WebMediaStreamTrack&) {} 58 virtual void didDisableMediaStreamTrack(const WebMediaStreamTrack&) {}
58 virtual bool didStopMediaStreamTrack(const WebMediaStreamTrack&) { 59 virtual bool didStopMediaStreamTrack(const WebMediaStreamTrack&) {
59 return false; 60 return false;
60 } 61 }
61 62
62 // Caller must take the ownership of the returned |WebAudioSourceProvider| 63 // Caller must take the ownership of the returned |WebAudioSourceProvider|
63 // object. 64 // object.
64 virtual WebAudioSourceProvider* createWebAudioSourceFromMediaStreamTrack( 65 virtual WebAudioSourceProvider* createWebAudioSourceFromMediaStreamTrack(
65 const WebMediaStreamTrack&) { 66 const WebMediaStreamTrack&) {
66 return nullptr; 67 return nullptr;
67 } 68 }
68 }; 69 };
69 70
70 } // namespace blink 71 } // namespace blink
71 72
72 #endif // WebMediaStreamCenter_h 73 #endif // WebMediaStreamCenter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698