| OLD | NEW |
| 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 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 namespace net { | 22 namespace net { |
| 23 class URLFetcher; | 23 class URLFetcher; |
| 24 class URLRequestContextGetter; | 24 class URLRequestContextGetter; |
| 25 class X509Certificate; | 25 class X509Certificate; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace blimp { | 28 namespace blimp { |
| 29 namespace client { | 29 namespace client { |
| 30 | 30 |
| 31 // TODO(kmarshall): Take values from configuration data. | |
| 32 const char kDummyClientToken[] = "MyVoiceIsMyPassport"; | |
| 33 | |
| 34 // An Assignment contains the configuration data needed for a client | 31 // An Assignment contains the configuration data needed for a client |
| 35 // to connect to the engine. | 32 // to connect to the engine. |
| 36 struct Assignment { | 33 struct Assignment { |
| 37 enum TransportProtocol { | 34 enum TransportProtocol { |
| 38 UNKNOWN = 0, | 35 UNKNOWN = 0, |
| 39 SSL = 1, | 36 SSL = 1, |
| 40 TCP = 2, | 37 TCP = 2, |
| 41 }; | 38 }; |
| 42 | 39 |
| 43 Assignment(); | 40 Assignment(); |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 123 |
| 127 base::WeakPtrFactory<AssignmentSource> weak_factory_; | 124 base::WeakPtrFactory<AssignmentSource> weak_factory_; |
| 128 | 125 |
| 129 DISALLOW_COPY_AND_ASSIGN(AssignmentSource); | 126 DISALLOW_COPY_AND_ASSIGN(AssignmentSource); |
| 130 }; | 127 }; |
| 131 | 128 |
| 132 } // namespace client | 129 } // namespace client |
| 133 } // namespace blimp | 130 } // namespace blimp |
| 134 | 131 |
| 135 #endif // BLIMP_CLIENT_SESSION_ASSIGNMENT_SOURCE_H_ | 132 #endif // BLIMP_CLIENT_SESSION_ASSIGNMENT_SOURCE_H_ |
| OLD | NEW |