OLD | NEW |
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 20 matching lines...) Expand all Loading... |
31 #ifndef RTCStatsRequest_h | 31 #ifndef RTCStatsRequest_h |
32 #define RTCStatsRequest_h | 32 #define RTCStatsRequest_h |
33 | 33 |
34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
35 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
36 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class MediaStreamComponent; | 40 class MediaStreamComponent; |
41 class MediaStreamDescriptor; | |
42 class RTCStatsResponseBase; | 41 class RTCStatsResponseBase; |
43 | 42 |
44 class RTCStatsRequest : public GarbageCollectedFinalized<RTCStatsRequest> { | 43 class RTCStatsRequest : public GarbageCollectedFinalized<RTCStatsRequest> { |
45 public: | 44 public: |
46 virtual ~RTCStatsRequest() { } | 45 virtual ~RTCStatsRequest() { } |
47 | 46 |
48 virtual RTCStatsResponseBase* createResponse() = 0; | 47 virtual RTCStatsResponseBase* createResponse() = 0; |
49 virtual bool hasSelector() = 0; | 48 virtual bool hasSelector() = 0; |
50 virtual MediaStreamComponent* component() = 0; | 49 virtual MediaStreamComponent* component() = 0; |
51 virtual void requestSucceeded(RTCStatsResponseBase*) = 0; | 50 virtual void requestSucceeded(RTCStatsResponseBase*) = 0; |
52 | 51 |
53 virtual void trace(Visitor*) { } | 52 virtual void trace(Visitor*) { } |
54 | 53 |
55 protected: | 54 protected: |
56 RTCStatsRequest() { } | 55 RTCStatsRequest() { } |
57 }; | 56 }; |
58 | 57 |
59 } // namespace blink | 58 } // namespace blink |
60 | 59 |
61 #endif // RTCStatsRequest_h | 60 #endif // RTCStatsRequest_h |
OLD | NEW |