| Index: blimp/net/connection_handler.h
|
| diff --git a/blimp/net/connection_handler.h b/blimp/net/connection_handler.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a9725a23e4122e1134a28f8426195d7e6b8744c2
|
| --- /dev/null
|
| +++ b/blimp/net/connection_handler.h
|
| @@ -0,0 +1,22 @@
|
| +// 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_CONNECTION_HANDLER_H_
|
| +#define BLIMP_NET_CONNECTION_HANDLER_H_
|
| +
|
| +namespace blimp {
|
| +
|
| +class BlimpConnection;
|
| +
|
| +// Interface for objects that can take possesion of BlimpConnections.
|
| +class ConnectionHandler {
|
| + public:
|
| + virtual ~ConnectionHandler() {}
|
| +
|
| + virtual void HandleConnection(scoped_ptr<BlimpConnection> connection) = 0;
|
| +};
|
| +
|
| +} // namespace blimp
|
| +
|
| +#endif // BLIMP_NET_CONNECTION_HANDLER_H_
|
|
|