blob: 09c815091cc64d60abf5785abfc987c19535aa30 (
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
|
// 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 <string>
#include "base/basictypes.h"
#include "base/threading/non_thread_safe.h"
namespace cricket {
class TransportChannel;
} // namespace cricket
namespace crypto {
class RSAPrivateKey;
} // namespace crypto
namespace remoting {
namespace protocol {
class ChannelAuthenticator;
class JingleChannelConnector : public base::NonThreadSafe {
public:
JingleChannelConnector() { }
virtual ~JingleChannelConnector() { }
// Starts the connection process for the channel. Takes ownership of
// |authenticator|.
virtual void Connect(ChannelAuthenticator* authenticator,
cricket::TransportChannel* raw_channel) = 0;
protected:
DISALLOW_COPY_AND_ASSIGN(JingleChannelConnector);
};
} // namespace protocol
} // namespace remoting
#endif // REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_
|