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

Side by Side Diff: remoting/protocol/ice_config.h

Issue 1694613002: Add IceConfig and IceConfigRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@url_request
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | remoting/protocol/ice_config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_PROTOCOL_ICE_CONFIG_H_
6 #define REMOTING_PROTOCOL_ICE_CONFIG_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/time/time.h"
12 #include "third_party/webrtc/base/socketaddress.h"
13 #include "third_party/webrtc/p2p/base/portallocator.h"
14
15 namespace remoting {
16 namespace protocol {
17
18 struct IceConfig {
19 IceConfig();
20 ~IceConfig();
21
22 bool is_null() const { return expiration_time.is_null(); }
23
24 // Time when the config will stop being valid and need to be refreshed.
25 base::Time expiration_time;
26
27 std::vector<rtc::SocketAddress> stun_servers;
28
29 // Legacy GTURN relay servers.
30 std::vector<std::string> relay_servers;
31 std::string relay_token;
32
33 // Standard TURN servers
34 std::vector<cricket::RelayServerConfig> turn_servers;
35 };
36
37 } // namespace protocol
38 } // namespace remoting
39
40 #endif // REMOTING_PROTOCOL_ICE_CONFIG_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/protocol/ice_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698