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

Side by Side Diff: remoting/host/it2me/it2me_host.h

Issue 2724223003: Disconnect all users if too many connection requests are received for It2Me (Closed)
Patch Set: Addressing CR Feedback Created 3 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 | remoting/host/it2me/it2me_host.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_HOST_IT2ME_IT2ME_HOST_H_ 5 #ifndef REMOTING_HOST_IT2ME_IT2ME_HOST_H_
6 #define REMOTING_HOST_IT2ME_IT2ME_HOST_H_ 6 #define REMOTING_HOST_IT2ME_IT2ME_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // that on startup, we do not accidentally start a connection before we have 186 // that on startup, we do not accidentally start a connection before we have
187 // queried our policy restrictions. 187 // queried our policy restrictions.
188 bool policy_received_ = false; 188 bool policy_received_ = false;
189 189
190 // On startup, it is possible to have Connect() called before the policy read 190 // On startup, it is possible to have Connect() called before the policy read
191 // is completed. Rather than just failing, we thunk the connection call so 191 // is completed. Rather than just failing, we thunk the connection call so
192 // it can be executed after at least one successful policy read. This 192 // it can be executed after at least one successful policy read. This
193 // variable contains the thunk if it is necessary. 193 // variable contains the thunk if it is necessary.
194 base::Closure pending_connect_; 194 base::Closure pending_connect_;
195 195
196 // Called after the client machine initiates the connection process and
197 // determines whether to reject the connection or allow it to continue.
198 protocol::ValidatingAuthenticator::ValidationCallback validation_callback_;
199
200 DISALLOW_COPY_AND_ASSIGN(It2MeHost); 196 DISALLOW_COPY_AND_ASSIGN(It2MeHost);
201 }; 197 };
202 198
203 // Having a factory interface makes it possible for the test to provide a mock 199 // Having a factory interface makes it possible for the test to provide a mock
204 // implementation of the It2MeHost. 200 // implementation of the It2MeHost.
205 class It2MeHostFactory { 201 class It2MeHostFactory {
206 public: 202 public:
207 It2MeHostFactory(); 203 It2MeHostFactory();
208 virtual ~It2MeHostFactory(); 204 virtual ~It2MeHostFactory();
209 205
(...skipping 10 matching lines...) Expand all
220 const std::string& username, 216 const std::string& username,
221 const std::string& directory_bot_jid); 217 const std::string& directory_bot_jid);
222 218
223 private: 219 private:
224 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory); 220 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory);
225 }; 221 };
226 222
227 } // namespace remoting 223 } // namespace remoting
228 224
229 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_ 225 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698