OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ | 5 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ |
6 #define REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ | 6 #define REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // TODO(sergeyu): Constructor shouldn't need thread here. | 66 // TODO(sergeyu): Constructor shouldn't need thread here. |
67 ConnectionToHost(JingleThread* thread, | 67 ConnectionToHost(JingleThread* thread, |
68 talk_base::NetworkManager* network_manager, | 68 talk_base::NetworkManager* network_manager, |
69 talk_base::PacketSocketFactory* socket_factory, | 69 talk_base::PacketSocketFactory* socket_factory, |
70 PortAllocatorSessionFactory* session_factory); | 70 PortAllocatorSessionFactory* session_factory); |
71 virtual ~ConnectionToHost(); | 71 virtual ~ConnectionToHost(); |
72 | 72 |
73 // TODO(ajwong): We need to generalize this API. | 73 // TODO(ajwong): We need to generalize this API. |
74 virtual void Connect(const std::string& username, | 74 virtual void Connect(const std::string& username, |
75 const std::string& auth_token, | 75 const std::string& auth_token, |
| 76 const std::string& auth_service, |
76 const std::string& host_jid, | 77 const std::string& host_jid, |
77 const std::string& access_code, | 78 const std::string& access_code, |
78 HostEventCallback* event_callback, | 79 HostEventCallback* event_callback, |
79 ClientStub* client_stub, | 80 ClientStub* client_stub, |
80 VideoStub* video_stub); | 81 VideoStub* video_stub); |
81 virtual void ConnectSandboxed(scoped_refptr<XmppProxy> xmpp_proxy, | 82 virtual void ConnectSandboxed(scoped_refptr<XmppProxy> xmpp_proxy, |
82 const std::string& your_jid, | 83 const std::string& your_jid, |
83 const std::string& host_jid, | 84 const std::string& host_jid, |
84 const std::string& access_code, | 85 const std::string& access_code, |
85 HostEventCallback* event_callback, | 86 HostEventCallback* event_callback, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 private: | 174 private: |
174 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); | 175 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); |
175 }; | 176 }; |
176 | 177 |
177 } // namespace protocol | 178 } // namespace protocol |
178 } // namespace remoting | 179 } // namespace remoting |
179 | 180 |
180 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::protocol::ConnectionToHost); | 181 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::protocol::ConnectionToHost); |
181 | 182 |
182 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ | 183 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ |
OLD | NEW |