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

Side by Side Diff: third_party/WebKit/Source/platform/mediastream/MediaStreamCenter.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 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 didSetMediaStreamTrackEnabled(MediaStreamComponent*); 61 void didSetMediaStreamTrackEnabled(MediaStreamComponent*);
62 void didSetContentHint(MediaStreamComponent*);
62 bool didStopMediaStreamTrack(MediaStreamComponent*); 63 bool didStopMediaStreamTrack(MediaStreamComponent*);
63 std::unique_ptr<AudioSourceProvider> createWebAudioSourceFromMediaStreamTrack( 64 std::unique_ptr<AudioSourceProvider> createWebAudioSourceFromMediaStreamTrack(
64 MediaStreamComponent*); 65 MediaStreamComponent*);
65 66
66 void didCreateMediaStream(MediaStreamDescriptor*); 67 void didCreateMediaStream(MediaStreamDescriptor*);
67 void didCreateMediaStreamAndTracks(MediaStreamDescriptor*); 68 void didCreateMediaStreamAndTracks(MediaStreamDescriptor*);
68 bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*); 69 bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*);
69 bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*); 70 bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*);
70 void didStopLocalMediaStream(MediaStreamDescriptor*); 71 void didStopLocalMediaStream(MediaStreamDescriptor*);
71 72
72 // blink::WebMediaStreamCenterClient 73 // blink::WebMediaStreamCenterClient
73 void stopLocalMediaStream(const WebMediaStream&) override; 74 void stopLocalMediaStream(const WebMediaStream&) override;
74 75
75 private: 76 private:
76 MediaStreamCenter(); 77 MediaStreamCenter();
77 78
78 std::unique_ptr<WebMediaStreamCenter> m_private; 79 std::unique_ptr<WebMediaStreamCenter> m_private;
79 }; 80 };
80 81
81 } // namespace blink 82 } // namespace blink
82 83
83 #endif // MediaStreamCenter_h 84 #endif // MediaStreamCenter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698