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

Side by Side Diff: Source/core/platform/mediastream/MediaStreamCenter.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) 2011 Ericsson AB. All rights reserved. 2 * Copyright (C) 2011 Ericsson AB. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 14 matching lines...) Expand all
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #ifndef MediaStreamCenter_h 32 #ifndef MediaStreamCenter_h
33 #define MediaStreamCenter_h 33 #define MediaStreamCenter_h
34 34
35 #include <wtf/PassRefPtr.h> 35 #include "modules/mediastream/SourceInfo.h"
36 #include <wtf/text/WTFString.h> 36 #include "public/platform/WebVector.h"
37 #include "wtf/PassRefPtr.h"
38 #include "wtf/text/WTFString.h"
39
40 namespace WebKit {
41 class WebSourceInfo;
42 }
37 43
38 namespace WebCore { 44 namespace WebCore {
39 45
40 class MediaStreamComponent; 46 class MediaStreamComponent;
41 class MediaStreamDescriptor; 47 class MediaStreamDescriptor;
42 class MediaStreamSourcesQueryClient; 48 class MediaStreamSourcesQueryClient;
43 49
44 class MediaStreamCenter { 50 class MediaStreamCenter {
45 public: 51 public:
46 virtual ~MediaStreamCenter(); 52 virtual ~MediaStreamCenter();
47 53
48 static MediaStreamCenter& instance(); 54 static MediaStreamCenter& instance();
49 55
50 virtual void queryMediaStreamSources(PassRefPtr<MediaStreamSourcesQueryClien t>) = 0; 56 virtual void queryMediaStreamSources(PassRefPtr<MediaStreamSourcesQueryClien t>) = 0;
57 virtual bool getSourceInfos(const String& url, WebKit::WebVector<WebKit::Web SourceInfo>&) = 0;
51 58
52 // Calls from the DOM objects to notify the platform 59 // Calls from the DOM objects to notify the platform
53 virtual void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStre amComponent*) = 0; 60 virtual void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStre amComponent*) = 0;
54 virtual bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCompo nent*) = 0; 61 virtual bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCompo nent*) = 0;
55 virtual bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCo mponent*) = 0; 62 virtual bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCo mponent*) = 0;
56 virtual void didStopLocalMediaStream(MediaStreamDescriptor*) = 0; 63 virtual void didStopLocalMediaStream(MediaStreamDescriptor*) = 0;
57 virtual void didCreateMediaStream(MediaStreamDescriptor*) = 0; 64 virtual void didCreateMediaStream(MediaStreamDescriptor*) = 0;
58 65
59 protected: 66 protected:
60 MediaStreamCenter(); 67 MediaStreamCenter();
61 68
62 void endLocalMediaStream(MediaStreamDescriptor*); 69 void endLocalMediaStream(MediaStreamDescriptor*);
63 }; 70 };
64 71
65 } // namespace WebCore 72 } // namespace WebCore
66 73
67 #endif // MediaStreamCenter_h 74 #endif // MediaStreamCenter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698