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

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

Issue 15796004: [MediaStream API] Adding MediaStreamTrack::getSourceInfos (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed review comments and merge Created 7 years, 6 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 | Annotate | Revision Log
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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebMediaStreamCenter_h 31 #ifndef WebMediaStreamCenter_h
32 #define WebMediaStreamCenter_h 32 #define WebMediaStreamCenter_h
33 33
34 #include "WebString.h" 34 #include "WebVector.h"
35 35
36 namespace WebKit { 36 namespace WebKit {
37 class WebMediaStream; 37 class WebMediaStream;
38 class WebMediaStreamSourcesRequest; 38 class WebMediaStreamSourcesRequest;
39 class WebMediaStreamTrack; 39 class WebMediaStreamTrack;
40 class WebSourceInfo;
41 class WebString;
40 42
41 class WebMediaStreamCenter { 43 class WebMediaStreamCenter {
42 public: 44 public:
43 virtual ~WebMediaStreamCenter() { } 45 virtual ~WebMediaStreamCenter() { }
44 46
45 virtual void queryMediaStreamSources(const WebMediaStreamSourcesRequest&) = 0; 47 virtual void queryMediaStreamSources(const WebMediaStreamSourcesRequest&) = 0;
48 virtual bool getSourceInfos(const WebString& url, WebVector<WebSourceInfo>&) { return false; }
46 virtual void didEnableMediaStreamTrack(const WebMediaStream&, const WebMedia StreamTrack&) = 0; 49 virtual void didEnableMediaStreamTrack(const WebMediaStream&, const WebMedia StreamTrack&) = 0;
47 virtual void didDisableMediaStreamTrack(const WebMediaStream&, const WebMedi aStreamTrack&) = 0; 50 virtual void didDisableMediaStreamTrack(const WebMediaStream&, const WebMedi aStreamTrack&) = 0;
48 virtual bool didAddMediaStreamTrack(const WebMediaStream&, const WebMediaStr eamTrack&) { return false; }; 51 virtual bool didAddMediaStreamTrack(const WebMediaStream&, const WebMediaStr eamTrack&) { return false; };
49 virtual bool didRemoveMediaStreamTrack(const WebMediaStream&, const WebMedia StreamTrack&) { return false; }; 52 virtual bool didRemoveMediaStreamTrack(const WebMediaStream&, const WebMedia StreamTrack&) { return false; };
50 virtual void didStopLocalMediaStream(const WebMediaStream&) = 0; 53 virtual void didStopLocalMediaStream(const WebMediaStream&) = 0;
51 virtual void didCreateMediaStream(WebMediaStream&) = 0; 54 virtual void didCreateMediaStream(WebMediaStream&) = 0;
52 }; 55 };
53 56
54 } // namespace WebKit 57 } // namespace WebKit
55 58
56 #endif // WebMediaStreamCenter_h 59 #endif // WebMediaStreamCenter_h
57 60
OLDNEW
« no previous file with comments | « Tools/DumpRenderTree/chromium/TestRunner/src/MockWebMediaStreamCenter.cpp ('k') | public/platform/WebSourceInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698