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

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

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

Powered by Google App Engine
This is Rietveld 408576698