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 WebRTCConfiguration_h | 31 #ifndef WebRTCConfiguration_h |
32 #define WebRTCConfiguration_h | 32 #define WebRTCConfiguration_h |
33 | 33 |
34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
35 #include "WebNonCopyable.h" | 35 #include "WebNonCopyable.h" |
36 #include "WebPrivatePtr.h" | 36 #include "WebPrivatePtr.h" |
37 #include "WebVector.h" | 37 #include "WebVector.h" |
38 | 38 |
39 namespace WebCore { | 39 namespace blink { |
40 class RTCIceServer; | 40 class RTCIceServer; |
41 class RTCConfiguration; | 41 class RTCConfiguration; |
42 } | 42 } |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 class WebString; | 45 class WebString; |
46 class WebURL; | 46 class WebURL; |
47 | 47 |
48 class WebRTCICEServer { | 48 class WebRTCICEServer { |
49 public: | 49 public: |
(...skipping 10 matching lines...) Expand all Loading... |
60 BLINK_PLATFORM_EXPORT void assign(const WebRTCICEServer&); | 60 BLINK_PLATFORM_EXPORT void assign(const WebRTCICEServer&); |
61 | 61 |
62 BLINK_PLATFORM_EXPORT void reset(); | 62 BLINK_PLATFORM_EXPORT void reset(); |
63 bool isNull() const { return m_private.isNull(); } | 63 bool isNull() const { return m_private.isNull(); } |
64 | 64 |
65 BLINK_PLATFORM_EXPORT WebURL uri() const; | 65 BLINK_PLATFORM_EXPORT WebURL uri() const; |
66 BLINK_PLATFORM_EXPORT WebString username() const; | 66 BLINK_PLATFORM_EXPORT WebString username() const; |
67 BLINK_PLATFORM_EXPORT WebString credential() const; | 67 BLINK_PLATFORM_EXPORT WebString credential() const; |
68 | 68 |
69 #if INSIDE_BLINK | 69 #if INSIDE_BLINK |
70 BLINK_PLATFORM_EXPORT WebRTCICEServer(const WTF::PassRefPtr<WebCore::RTCIceS
erver>&); | 70 BLINK_PLATFORM_EXPORT WebRTCICEServer(const WTF::PassRefPtr<blink::RTCIceSer
ver>&); |
71 #endif | 71 #endif |
72 | 72 |
73 private: | 73 private: |
74 WebPrivatePtr<WebCore::RTCIceServer> m_private; | 74 WebPrivatePtr<blink::RTCIceServer> m_private; |
75 }; | 75 }; |
76 | 76 |
77 enum WebRTCIceTransports { | 77 enum WebRTCIceTransports { |
78 WebRTCIceTransportsNone, | 78 WebRTCIceTransportsNone, |
79 WebRTCIceTransportsRelay, | 79 WebRTCIceTransportsRelay, |
80 WebRTCIceTransportsAll | 80 WebRTCIceTransportsAll |
81 }; | 81 }; |
82 | 82 |
83 class WebRTCConfiguration { | 83 class WebRTCConfiguration { |
84 public: | 84 public: |
(...skipping 11 matching lines...) Expand all Loading... |
96 | 96 |
97 BLINK_PLATFORM_EXPORT void reset(); | 97 BLINK_PLATFORM_EXPORT void reset(); |
98 bool isNull() const { return m_private.isNull(); } | 98 bool isNull() const { return m_private.isNull(); } |
99 | 99 |
100 BLINK_PLATFORM_EXPORT size_t numberOfServers() const; | 100 BLINK_PLATFORM_EXPORT size_t numberOfServers() const; |
101 BLINK_PLATFORM_EXPORT WebRTCICEServer server(size_t index) const; | 101 BLINK_PLATFORM_EXPORT WebRTCICEServer server(size_t index) const; |
102 | 102 |
103 BLINK_PLATFORM_EXPORT WebRTCIceTransports iceTransports() const; | 103 BLINK_PLATFORM_EXPORT WebRTCIceTransports iceTransports() const; |
104 | 104 |
105 #if INSIDE_BLINK | 105 #if INSIDE_BLINK |
106 BLINK_PLATFORM_EXPORT WebRTCConfiguration(const WTF::PassRefPtr<WebCore::RTC
Configuration>&); | 106 BLINK_PLATFORM_EXPORT WebRTCConfiguration(const WTF::PassRefPtr<blink::RTCCo
nfiguration>&); |
107 #endif | 107 #endif |
108 | 108 |
109 private: | 109 private: |
110 WebPrivatePtr<WebCore::RTCConfiguration> m_private; | 110 WebPrivatePtr<blink::RTCConfiguration> m_private; |
111 }; | 111 }; |
112 | 112 |
113 } // namespace blink | 113 } // namespace blink |
114 | 114 |
115 #endif // WebRTCConfiguration_h | 115 #endif // WebRTCConfiguration_h |
OLD | NEW |