summaryrefslogtreecommitdiffstats
path: root/blimp/net/connection_handler.h
blob: b9d37f6199163030cd2fff0de551bda0a49eab72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 possession of BlimpConnections.
class ConnectionHandler {
 public:
  virtual ~ConnectionHandler() {}

  virtual void HandleConnection(scoped_ptr<BlimpConnection> connection) = 0;
};

}  // namespace blimp

#endif  // BLIMP_NET_CONNECTION_HANDLER_H_