Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: remoting/jingle_glue/jingle_client.h

Issue 7087028: roll clang 131935:132017 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_JINGLE_GLUE_JINGLE_CLIENT_H_ 5 #ifndef REMOTING_JINGLE_GLUE_JINGLE_CLIENT_H_
6 #define REMOTING_JINGLE_GLUE_JINGLE_CLIENT_H_ 6 #define REMOTING_JINGLE_GLUE_JINGLE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Physical sockets are used if |network_manager| and 139 // Physical sockets are used if |network_manager| and
140 // |socket_factory| are set to NULL. Otherwise ownership of these 140 // |socket_factory| are set to NULL. Otherwise ownership of these
141 // objects is given to JingleClient. 141 // objects is given to JingleClient.
142 JingleClient(JingleThread* thread, 142 JingleClient(JingleThread* thread,
143 SignalStrategy* signal_strategy, 143 SignalStrategy* signal_strategy,
144 talk_base::NetworkManager* network_manager, 144 talk_base::NetworkManager* network_manager,
145 talk_base::PacketSocketFactory* socket_factory, 145 talk_base::PacketSocketFactory* socket_factory,
146 PortAllocatorSessionFactory* session_factory, 146 PortAllocatorSessionFactory* session_factory,
147 Callback* callback); 147 Callback* callback);
148 ~JingleClient(); 148 virtual ~JingleClient();
149 149
150 // Starts the XMPP connection initialization. Must be called only once. 150 // Starts the XMPP connection initialization. Must be called only once.
151 // |callback| specifies callback object for the client and must not be NULL. 151 // |callback| specifies callback object for the client and must not be NULL.
152 void Init(); 152 void Init();
153 153
154 // Closes XMPP connection and stops the thread. Must be called before the 154 // Closes XMPP connection and stops the thread. Must be called before the
155 // object is destroyed. If specified, |closed_task| is executed after the 155 // object is destroyed. If specified, |closed_task| is executed after the
156 // connection is successfully closed. 156 // connection is successfully closed.
157 void Close(); 157 void Close();
158 void Close(Task* closed_task); 158 void Close(Task* closed_task);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 scoped_ptr<cricket::SessionManager> session_manager_; 231 scoped_ptr<cricket::SessionManager> session_manager_;
232 232
233 scoped_ptr<JingleInfoRequest> jingle_info_request_; 233 scoped_ptr<JingleInfoRequest> jingle_info_request_;
234 234
235 DISALLOW_COPY_AND_ASSIGN(JingleClient); 235 DISALLOW_COPY_AND_ASSIGN(JingleClient);
236 }; 236 };
237 237
238 } // namespace remoting 238 } // namespace remoting
239 239
240 #endif // REMOTING_JINGLE_GLUE_JINGLE_CLIENT_H_ 240 #endif // REMOTING_JINGLE_GLUE_JINGLE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698