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

Side by Side Diff: Source/core/platform/mediastream/MediaStreamCenter.h

Issue 16778002: MediaStream API: Changing the device enumeration to be async (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed review comments 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 19 matching lines...) Expand all
30 */ 30 */
31 31
32 #ifndef MediaStreamCenter_h 32 #ifndef MediaStreamCenter_h
33 #define MediaStreamCenter_h 33 #define MediaStreamCenter_h
34 34
35 #include "modules/mediastream/SourceInfo.h" 35 #include "modules/mediastream/SourceInfo.h"
36 #include "public/platform/WebVector.h" 36 #include "public/platform/WebVector.h"
37 #include "wtf/PassRefPtr.h" 37 #include "wtf/PassRefPtr.h"
38 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
39 39
40 namespace WebKit {
41 class WebSourceInfo;
42 }
43
44 namespace WebCore { 40 namespace WebCore {
45 41
46 class MediaStreamComponent; 42 class MediaStreamComponent;
47 class MediaStreamDescriptor; 43 class MediaStreamDescriptor;
48 class MediaStreamSourcesQueryClient; 44 class MediaStreamSourcesQueryClient;
45 class MediaStreamTrackSourcesRequest;
49 46
50 class MediaStreamCenter { 47 class MediaStreamCenter {
51 public: 48 public:
52 virtual ~MediaStreamCenter(); 49 virtual ~MediaStreamCenter();
53 50
54 static MediaStreamCenter& instance(); 51 static MediaStreamCenter& instance();
55 52
56 virtual void queryMediaStreamSources(PassRefPtr<MediaStreamSourcesQueryClien t>) = 0; 53 virtual void queryMediaStreamSources(PassRefPtr<MediaStreamSourcesQueryClien t>) = 0;
57 virtual bool getSourceInfos(const String& url, WebKit::WebVector<WebKit::Web SourceInfo>&) = 0; 54 virtual bool getMediaStreamTrackSources(PassRefPtr<MediaStreamTrackSourcesRe quest>) = 0;
58 55
59 // Calls from the DOM objects to notify the platform 56 // Calls from the DOM objects to notify the platform
60 virtual void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStre amComponent*) = 0; 57 virtual void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStre amComponent*) = 0;
61 virtual bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCompo nent*) = 0; 58 virtual bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCompo nent*) = 0;
62 virtual bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCo mponent*) = 0; 59 virtual bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCo mponent*) = 0;
63 virtual void didStopLocalMediaStream(MediaStreamDescriptor*) = 0; 60 virtual void didStopLocalMediaStream(MediaStreamDescriptor*) = 0;
64 virtual void didCreateMediaStream(MediaStreamDescriptor*) = 0; 61 virtual void didCreateMediaStream(MediaStreamDescriptor*) = 0;
65 62
66 protected: 63 protected:
67 MediaStreamCenter(); 64 MediaStreamCenter();
68 65
69 void endLocalMediaStream(MediaStreamDescriptor*); 66 void endLocalMediaStream(MediaStreamDescriptor*);
70 }; 67 };
71 68
72 } // namespace WebCore 69 } // namespace WebCore
73 70
74 #endif // MediaStreamCenter_h 71 #endif // MediaStreamCenter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698