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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebRTCStatsRequest_h | 31 #ifndef WebRTCStatsRequest_h |
32 #define WebRTCStatsRequest_h | 32 #define WebRTCStatsRequest_h |
33 | 33 |
34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
35 #include "WebPrivatePtr.h" | 35 #include "WebPrivatePtr.h" |
36 #include "WebString.h" | 36 #include "WebString.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
| 39 |
39 class RTCStatsRequest; | 40 class RTCStatsRequest; |
40 } | |
41 | |
42 namespace blink { | |
43 | |
44 class WebMediaStreamTrack; | 41 class WebMediaStreamTrack; |
45 class WebMediaStream; | 42 class WebMediaStream; |
46 class WebRTCStatsResponse; | 43 class WebRTCStatsResponse; |
47 | 44 |
48 // The WebRTCStatsRequest class represents a JavaScript call on | 45 // The WebRTCStatsRequest class represents a JavaScript call on |
49 // RTCPeerConnection.getStats(). The user of this API will use | 46 // RTCPeerConnection.getStats(). The user of this API will use |
50 // the calls on this class and WebRTCStatsResponse to fill in the | 47 // the calls on this class and WebRTCStatsResponse to fill in the |
51 // data that will be returned via a callback to the user in an | 48 // data that will be returned via a callback to the user in an |
52 // RTCStatsResponse structure. | 49 // RTCStatsResponse structure. |
53 // | 50 // |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // The component() accessor give the information | 85 // The component() accessor give the information |
89 // required to look up a MediaStreamTrack implementation. | 86 // required to look up a MediaStreamTrack implementation. |
90 // It is only useful to call it when hasSelector() returns true. | 87 // It is only useful to call it when hasSelector() returns true. |
91 BLINK_PLATFORM_EXPORT const WebMediaStreamTrack component() const; | 88 BLINK_PLATFORM_EXPORT const WebMediaStreamTrack component() const; |
92 | 89 |
93 BLINK_PLATFORM_EXPORT void requestSucceeded(const WebRTCStatsResponse&) cons
t; | 90 BLINK_PLATFORM_EXPORT void requestSucceeded(const WebRTCStatsResponse&) cons
t; |
94 | 91 |
95 BLINK_PLATFORM_EXPORT WebRTCStatsResponse createResponse() const; | 92 BLINK_PLATFORM_EXPORT WebRTCStatsResponse createResponse() const; |
96 | 93 |
97 #if INSIDE_BLINK | 94 #if INSIDE_BLINK |
98 BLINK_PLATFORM_EXPORT WebRTCStatsRequest(const PassRefPtr<blink::RTCStatsReq
uest>&); | 95 BLINK_PLATFORM_EXPORT WebRTCStatsRequest(const PassRefPtr<RTCStatsRequest>&)
; |
99 #endif | 96 #endif |
100 | 97 |
101 private: | 98 private: |
102 WebPrivatePtr<blink::RTCStatsRequest> m_private; | 99 WebPrivatePtr<RTCStatsRequest> m_private; |
103 }; | 100 }; |
104 | 101 |
105 } // namespace blink | 102 } // namespace blink |
106 | 103 |
107 #endif // WebRTCStatsRequest_h | 104 #endif // WebRTCStatsRequest_h |
OLD | NEW |