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

Side by Side Diff: blimp/net/engine_authentication_handler.h

Issue 1492643003: [Blimp Net] Add EngineAuthHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses Wez's comments Created 5 years 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
(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.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698