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

Side by Side Diff: Source/core/platform/mediastream/RTCStatsRequest.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) 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 17 matching lines...) Expand all
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 RTCStatsRequest_h 31 #ifndef RTCStatsRequest_h
32 #define RTCStatsRequest_h 32 #define RTCStatsRequest_h
33 33
34 #include <wtf/PassRefPtr.h> 34 #include <wtf/PassRefPtr.h>
35 #include <wtf/RefCounted.h> 35 #include <wtf/RefCounted.h>
36 #include <wtf/text/WTFString.h> 36 #include <wtf/text/WTFString.h>
37 37
38 namespace WebKit {
39 class WebMediaStream;
40 }
41
42 namespace WebCore { 38 namespace WebCore {
43 39
44 class MediaStreamComponent; 40 class MediaStreamComponent;
41 class MediaStreamDescriptor;
45 class RTCStatsResponseBase; 42 class RTCStatsResponseBase;
46 43
47 class RTCStatsRequest : public RefCounted<RTCStatsRequest> { 44 class RTCStatsRequest : public RefCounted<RTCStatsRequest> {
48 public: 45 public:
49 virtual ~RTCStatsRequest() { } 46 virtual ~RTCStatsRequest() { }
50 47
51 virtual PassRefPtr<RTCStatsResponseBase> createResponse() = 0; 48 virtual PassRefPtr<RTCStatsResponseBase> createResponse() = 0;
52 virtual bool hasSelector() = 0; 49 virtual bool hasSelector() = 0;
53 virtual WebKit::WebMediaStream stream() = 0; 50 virtual MediaStreamDescriptor* stream() = 0;
54 virtual MediaStreamComponent* component() = 0; 51 virtual MediaStreamComponent* component() = 0;
55 virtual void requestSucceeded(PassRefPtr<RTCStatsResponseBase>) = 0; 52 virtual void requestSucceeded(PassRefPtr<RTCStatsResponseBase>) = 0;
56 53
57 protected: 54 protected:
58 RTCStatsRequest() { } 55 RTCStatsRequest() { }
59 }; 56 };
60 57
61 } // namespace WebCore 58 } // namespace WebCore
62 59
63 #endif // RTCStatsRequest_h 60 #endif // RTCStatsRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698