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: blimp/client/session/assignment_source.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 | « no previous file | blimp/client/session/assignment_source.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 BLIMP_CLIENT_SESSION_ASSIGNMENT_SOURCE_H_ 5 #ifndef BLIMP_CLIENT_SESSION_ASSIGNMENT_SOURCE_H_
6 #define BLIMP_CLIENT_SESSION_ASSIGNMENT_SOURCE_H_ 6 #define BLIMP_CLIENT_SESSION_ASSIGNMENT_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 27 matching lines...) Expand all
38 // An Assignment contains the configuration data needed for a client 38 // An Assignment contains the configuration data needed for a client
39 // to connect to the engine. 39 // to connect to the engine.
40 struct BLIMP_CLIENT_EXPORT Assignment { 40 struct BLIMP_CLIENT_EXPORT Assignment {
41 enum TransportProtocol { 41 enum TransportProtocol {
42 UNKNOWN = 0, 42 UNKNOWN = 0,
43 SSL = 1, 43 SSL = 1,
44 TCP = 2, 44 TCP = 2,
45 }; 45 };
46 46
47 Assignment(); 47 Assignment();
48 Assignment(const Assignment& other);
48 ~Assignment(); 49 ~Assignment();
49 50
50 // Returns true if the net::IPEndPoint has an unspecified IP, port, or 51 // Returns true if the net::IPEndPoint has an unspecified IP, port, or
51 // transport protocol. 52 // transport protocol.
52 bool IsValid() const; 53 bool IsValid() const;
53 54
54 // Specifies the transport to use to connect to the engine. 55 // Specifies the transport to use to connect to the engine.
55 TransportProtocol transport_protocol; 56 TransportProtocol transport_protocol;
56 57
57 // Specifies the IP address and port on which to reach the engine. 58 // Specifies the IP address and port on which to reach the engine.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 127
127 base::WeakPtrFactory<AssignmentSource> weak_factory_; 128 base::WeakPtrFactory<AssignmentSource> weak_factory_;
128 129
129 DISALLOW_COPY_AND_ASSIGN(AssignmentSource); 130 DISALLOW_COPY_AND_ASSIGN(AssignmentSource);
130 }; 131 };
131 132
132 } // namespace client 133 } // namespace client
133 } // namespace blimp 134 } // namespace blimp
134 135
135 #endif // BLIMP_CLIENT_SESSION_ASSIGNMENT_SOURCE_H_ 136 #endif // BLIMP_CLIENT_SESSION_ASSIGNMENT_SOURCE_H_
OLDNEW
« no previous file with comments | « no previous file | blimp/client/session/assignment_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698