summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/jingle_channel_connector.h
blob: 6037ee4e1c88f5156aade1bad5c0c0883007f3b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (c) 2011 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 REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_
#define REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_

#include "base/basictypes.h"
#include "base/threading/non_thread_safe.h"

namespace cricket {
class TransportChannel;
}  // namespace cricket

namespace crypto {
class RSAPrivateKey;
}  // namespace crypto

namespace net {
class X509Certificate;
}  // namespace net

namespace remoting {
namespace protocol {

class JingleChannelConnector : public base::NonThreadSafe {
 public:
  JingleChannelConnector() { }
  virtual ~JingleChannelConnector() { }

  virtual void Connect(bool initiator,
                       net::X509Certificate* local_cert,
                       net::X509Certificate* remote_cert,
                       crypto::RSAPrivateKey* local_private_key,
                       cricket::TransportChannel* raw_channel) = 0;

 protected:
  DISALLOW_COPY_AND_ASSIGN(JingleChannelConnector);
};

}  // namespace protocol
}  // namespace remoting

#endif  // REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_