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

Side by Side Diff: third_party/WebKit/public/platform/WebRTCConfiguration.h

Issue 1417023003: Disable test and remove the reference of enable_localhost_ice_candidate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test cases with certificates Created 5 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/platform/mediastream/RTCConfiguration.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 21 matching lines...) Expand all
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 blink { 39 namespace blink {
40 40
41 class RTCIceServer; 41 class RTCIceServer;
42 class RTCIceServerArray;
43 class RTCConfiguration; 42 class RTCConfiguration;
44 class WebRTCCertificate; 43 class WebRTCCertificate;
45 class WebString; 44 class WebString;
46 class WebURL; 45 class WebURL;
47 46
48 class WebRTCICEServer { 47 class WebRTCICEServer {
49 public: 48 public:
50 WebRTCICEServer() { } 49 WebRTCICEServer() { }
51 WebRTCICEServer(const WebRTCICEServer& other) { assign(other); } 50 WebRTCICEServer(const WebRTCICEServer& other) { assign(other); }
52 ~WebRTCICEServer() { reset(); } 51 ~WebRTCICEServer() { reset(); }
(...skipping 14 matching lines...) Expand all
67 BLINK_PLATFORM_EXPORT WebString credential() const; 66 BLINK_PLATFORM_EXPORT WebString credential() const;
68 67
69 #if INSIDE_BLINK 68 #if INSIDE_BLINK
70 BLINK_PLATFORM_EXPORT WebRTCICEServer(RTCIceServer*); 69 BLINK_PLATFORM_EXPORT WebRTCICEServer(RTCIceServer*);
71 #endif 70 #endif
72 71
73 private: 72 private:
74 WebPrivatePtr<RTCIceServer> m_private; 73 WebPrivatePtr<RTCIceServer> m_private;
75 }; 74 };
76 75
77 class WebRTCICEServerArray {
78 public:
79 WebRTCICEServerArray() {}
80 WebRTCICEServerArray(const WebRTCICEServerArray& other) { assign(other); }
81 ~WebRTCICEServerArray() { reset(); }
82 WebRTCICEServerArray& operator=(const WebRTCICEServerArray& other)
83 {
84 assign(other);
85 return *this;
86 }
87
88 BLINK_PLATFORM_EXPORT void assign(const WebRTCICEServerArray&);
89
90 BLINK_PLATFORM_EXPORT void reset();
91 bool isNull() const { return m_private.isNull(); }
92
93 BLINK_PLATFORM_EXPORT size_t numberOfServers() const;
94 BLINK_PLATFORM_EXPORT WebRTCICEServer server(size_t index) const;
95
96 #if INSIDE_BLINK
97 BLINK_PLATFORM_EXPORT WebRTCICEServerArray(RTCIceServerArray*);
98 #endif
99
100 private:
101 WebPrivatePtr<RTCIceServerArray> m_private;
102 };
103
104 enum WebRTCIceTransports { 76 enum WebRTCIceTransports {
105 WebRTCIceTransportsNone, 77 WebRTCIceTransportsNone,
106 WebRTCIceTransportsRelay, 78 WebRTCIceTransportsRelay,
107 WebRTCIceTransportsAll 79 WebRTCIceTransportsAll
108 }; 80 };
109 81
110 enum WebRTCBundlePolicy { 82 enum WebRTCBundlePolicy {
111 WebRTCBundlePolicyBalanced, 83 WebRTCBundlePolicyBalanced,
112 WebRTCBundlePolicyMaxCompat, 84 WebRTCBundlePolicyMaxCompat,
113 WebRTCBundlePolicyMaxBundle 85 WebRTCBundlePolicyMaxBundle
(...skipping 19 matching lines...) Expand all
133 BLINK_PLATFORM_EXPORT void assign(const WebRTCConfiguration&); 105 BLINK_PLATFORM_EXPORT void assign(const WebRTCConfiguration&);
134 106
135 BLINK_PLATFORM_EXPORT void reset(); 107 BLINK_PLATFORM_EXPORT void reset();
136 bool isNull() const { return m_private.isNull(); } 108 bool isNull() const { return m_private.isNull(); }
137 109
138 BLINK_PLATFORM_EXPORT WebRTCIceTransports iceTransports() const; 110 BLINK_PLATFORM_EXPORT WebRTCIceTransports iceTransports() const;
139 111
140 BLINK_PLATFORM_EXPORT WebRTCBundlePolicy bundlePolicy() const; 112 BLINK_PLATFORM_EXPORT WebRTCBundlePolicy bundlePolicy() const;
141 113
142 BLINK_PLATFORM_EXPORT WebRTCRtcpMuxPolicy rtcpMuxPolicy() const; 114 BLINK_PLATFORM_EXPORT WebRTCRtcpMuxPolicy rtcpMuxPolicy() const;
143 BLINK_PLATFORM_EXPORT WebRTCICEServerArray iceServers() const; 115 BLINK_PLATFORM_EXPORT size_t numberOfServers() const;
116 BLINK_PLATFORM_EXPORT WebRTCICEServer server(size_t index) const;
144 117
145 BLINK_PLATFORM_EXPORT size_t numberOfCertificates() const; 118 BLINK_PLATFORM_EXPORT size_t numberOfCertificates() const;
146 BLINK_PLATFORM_EXPORT WebRTCCertificate* certificate(size_t index) const; 119 BLINK_PLATFORM_EXPORT WebRTCCertificate* certificate(size_t index) const;
147 120
148 #if INSIDE_BLINK 121 #if INSIDE_BLINK
149 BLINK_PLATFORM_EXPORT WebRTCConfiguration(RTCConfiguration*); 122 BLINK_PLATFORM_EXPORT WebRTCConfiguration(RTCConfiguration*);
150 #endif 123 #endif
151 124
152 private: 125 private:
153 WebPrivatePtr<RTCConfiguration> m_private; 126 WebPrivatePtr<RTCConfiguration> m_private;
154 }; 127 };
155 128
156 } // namespace blink 129 } // namespace blink
157 130
158 #endif // WebRTCConfiguration_h 131 #endif // WebRTCConfiguration_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/mediastream/RTCConfiguration.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698