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

Side by Side Diff: blimp/client/session/assignment_source.h

Issue 1958033003: Allows client to access auth token from command line specified file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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 10 matching lines...) Expand all
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698