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

Unified Diff: blimp/net/engine_authentication_handler.h

Issue 2632803002: Remove all blimp network code. (Closed)
Patch Set: merge from origin/master for good measure Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/net/delta_encoding_unittest.cc ('k') | blimp/net/engine_authentication_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/engine_authentication_handler.h
diff --git a/blimp/net/engine_authentication_handler.h b/blimp/net/engine_authentication_handler.h
deleted file mode 100644
index 88100112faa1bd49ee67d5601308d0e694b20e8c..0000000000000000000000000000000000000000
--- a/blimp/net/engine_authentication_handler.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BLIMP_NET_ENGINE_AUTHENTICATION_HANDLER_H_
-#define BLIMP_NET_ENGINE_AUTHENTICATION_HANDLER_H_
-
-#include <memory>
-#include <string>
-#include <vector>
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "blimp/net/blimp_net_export.h"
-#include "blimp/net/connection_handler.h"
-
-namespace blimp {
-
-class BlimpConnection;
-
-// Authenticates connections and passes successfully authenticated connections
-// to |connection_handler|.
-class BLIMP_NET_EXPORT EngineAuthenticationHandler : public ConnectionHandler {
- public:
- // |client_auth_token|: used to authenticate incoming connection.
- // |connection_handler|: a new connection is passed on to it after the
- // connection is authenticate this handler.
- EngineAuthenticationHandler(ConnectionHandler* connection_handler,
- const std::string& client_auth_token);
-
- ~EngineAuthenticationHandler() override;
-
- // ConnectionHandler implementation.
- void HandleConnection(std::unique_ptr<BlimpConnection> connection) override;
-
- private:
- // Used to abandon pending authenticated connections if |this| is deleted.
- base::WeakPtrFactory<ConnectionHandler> connection_handler_weak_factory_;
-
- // Used to authenticate incoming connection. Engine is assigned to one client
- // only, and all connections from that client shall carry the same token.
- const std::string client_auth_token_;
-
- DISALLOW_COPY_AND_ASSIGN(EngineAuthenticationHandler);
-};
-
-} // namespace blimp
-
-#endif // BLIMP_NET_ENGINE_AUTHENTICATION_HANDLER_H_
« no previous file with comments | « blimp/net/delta_encoding_unittest.cc ('k') | blimp/net/engine_authentication_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698