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

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

Issue 16753003: Revert "Remove MediaStreamDescriptor and call/use WebMediaStream directly" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 21 matching lines...) Expand all
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 { 40 namespace WebKit {
41 class WebSourceInfo; 41 class WebSourceInfo;
42 class WebMediaStream;
43 } 42 }
44 43
45 namespace WebCore { 44 namespace WebCore {
46 45
47 class MediaStreamComponent; 46 class MediaStreamComponent;
47 class MediaStreamDescriptor;
48 class MediaStreamSourcesQueryClient; 48 class MediaStreamSourcesQueryClient;
49 49
50 class MediaStreamCenter { 50 class MediaStreamCenter {
51 public: 51 public:
52 virtual ~MediaStreamCenter(); 52 virtual ~MediaStreamCenter();
53 53
54 static MediaStreamCenter& instance(); 54 static MediaStreamCenter& instance();
55 55
56 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; 57 virtual bool getSourceInfos(const String& url, WebKit::WebVector<WebKit::Web SourceInfo>&) = 0;
58 58
59 // Calls from the DOM objects to notify the platform 59 // Calls from the DOM objects to notify the platform
60 virtual void didSetMediaStreamTrackEnabled(WebKit::WebMediaStream, MediaStre amComponent*) = 0; 60 virtual void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStre amComponent*) = 0;
61 virtual bool didAddMediaStreamTrack(WebKit::WebMediaStream, MediaStreamCompo nent*) = 0; 61 virtual bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCompo nent*) = 0;
62 virtual bool didRemoveMediaStreamTrack(WebKit::WebMediaStream, MediaStreamCo mponent*) = 0; 62 virtual bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCo mponent*) = 0;
63 virtual void didStopLocalMediaStream(WebKit::WebMediaStream) = 0; 63 virtual void didStopLocalMediaStream(MediaStreamDescriptor*) = 0;
64 virtual void didCreateMediaStream(WebKit::WebMediaStream) = 0; 64 virtual void didCreateMediaStream(MediaStreamDescriptor*) = 0;
65 65
66 protected: 66 protected:
67 MediaStreamCenter(); 67 MediaStreamCenter();
68 68
69 void endLocalMediaStream(WebKit::WebMediaStream); 69 void endLocalMediaStream(MediaStreamDescriptor*);
70 }; 70 };
71 71
72 } // namespace WebCore 72 } // namespace WebCore
73 73
74 #endif // MediaStreamCenter_h 74 #endif // MediaStreamCenter_h
OLDNEW
« no previous file with comments | « Source/core/platform/chromium/support/WebRTCStatsRequest.cpp ('k') | Source/core/platform/mediastream/MediaStreamCenter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698