Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BLIMP_NET_ENGINE_AUTHENTICATION_HANDLER_H_ | |
| 6 #define BLIMP_NET_ENGINE_AUTHENTICATION_HANDLER_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "base/memory/weak_ptr.h" | |
| 12 #include "blimp/net/blimp_net_export.h" | |
| 13 #include "blimp/net/connection_handler.h" | |
| 14 | |
| 15 namespace blimp { | |
| 16 | |
| 17 class BlimpConnection; | |
| 18 class BlimpMessage; | |
| 19 | |
| 20 // Authenticates connections and passes successfully authenticated connections | |
| 21 // to |connection_handler|. | |
| 22 class BLIMP_NET_EXPORT EngineAuthenticationHandler : public ConnectionHandler { | |
| 23 public: | |
| 24 explicit EngineAuthenticationHandler(ConnectionHandler* connection_handler); | |
| 25 | |
| 26 ~EngineAuthenticationHandler() override; | |
| 27 | |
| 28 // ConnectionHandler implementation. | |
| 29 void HandleConnection(scoped_ptr<BlimpConnection> connection) override; | |
| 30 | |
| 31 private: | |
| 32 // Handler for authenticated connections. | |
|
Wez
2015/12/08 00:31:41
nit: Suggest "Used to abandon pending authenticati
haibinlu
2015/12/08 01:54:50
Done.
| |
| 33 base::WeakPtrFactory<ConnectionHandler> connection_handler_weak_factory_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(EngineAuthenticationHandler); | |
| 36 }; | |
| 37 | |
| 38 } // namespace blimp | |
| 39 | |
| 40 #endif // BLIMP_NET_ENGINE_AUTHENTICATION_HANDLER_H_ | |
| OLD | NEW |