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

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

Issue 16778002: MediaStream API: Changing the device enumeration to be async (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comment fixed 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 19 matching lines...) Expand all
30 30
31 #ifndef WebMediaStreamCenter_h 31 #ifndef WebMediaStreamCenter_h
32 #define WebMediaStreamCenter_h 32 #define WebMediaStreamCenter_h
33 33
34 #include "WebVector.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 WebMediaStreamTrackSourcesRequest;
40 class WebSourceInfo; 41 class WebSourceInfo;
41 class WebString; 42 class WebString;
42 43
43 class WebMediaStreamCenter { 44 class WebMediaStreamCenter {
44 public: 45 public:
45 virtual ~WebMediaStreamCenter() { } 46 virtual ~WebMediaStreamCenter() { }
46 47
47 // DEPRECATED 48 // DEPRECATED
48 virtual void queryMediaStreamSources(const WebMediaStreamSourcesRequest&) { } 49 virtual void queryMediaStreamSources(const WebMediaStreamSourcesRequest&) { }
49 50
50 virtual bool getSourceInfos(const WebString& url, WebVector<WebSourceInfo>&) { return false; } 51 virtual bool getMediaStreamTrackSources(const WebMediaStreamTrackSourcesRequ est&) { return false; }
51 virtual void didEnableMediaStreamTrack(const WebMediaStream&, const WebMedia StreamTrack&) = 0; 52 virtual void didEnableMediaStreamTrack(const WebMediaStream&, const WebMedia StreamTrack&) = 0;
52 virtual void didDisableMediaStreamTrack(const WebMediaStream&, const WebMedi aStreamTrack&) = 0; 53 virtual void didDisableMediaStreamTrack(const WebMediaStream&, const WebMedi aStreamTrack&) = 0;
53 virtual bool didAddMediaStreamTrack(const WebMediaStream&, const WebMediaStr eamTrack&) { return false; }; 54 virtual bool didAddMediaStreamTrack(const WebMediaStream&, const WebMediaStr eamTrack&) { return false; };
54 virtual bool didRemoveMediaStreamTrack(const WebMediaStream&, const WebMedia StreamTrack&) { return false; }; 55 virtual bool didRemoveMediaStreamTrack(const WebMediaStream&, const WebMedia StreamTrack&) { return false; };
55 virtual void didStopLocalMediaStream(const WebMediaStream&) = 0; 56 virtual void didStopLocalMediaStream(const WebMediaStream&) = 0;
56 virtual void didCreateMediaStream(WebMediaStream&) = 0; 57 virtual void didCreateMediaStream(WebMediaStream&) = 0;
57 }; 58 };
58 59
59 } // namespace WebKit 60 } // namespace WebKit
60 61
61 #endif // WebMediaStreamCenter_h 62 #endif // WebMediaStreamCenter_h
62 63
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698