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

Side by Side Diff: remoting/signaling/xmpp_signal_strategy.h

Issue 719983002: Reporting of policy errors via host-offline-reason: part 3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hor-nohoststatussender
Patch Set: Rebasing... Created 5 years, 11 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
« no previous file with comments | « remoting/remoting_test.gypi ('k') | remoting/signaling/xmpp_signal_strategy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // The XmppSignalStrategy encapsulates all the logic to perform the signaling 5 // The XmppSignalStrategy encapsulates all the logic to perform the signaling
6 // STUN/ICE for jingle via a direct XMPP connection. 6 // STUN/ICE for jingle via a direct XMPP connection.
7 // 7 //
8 // This class is not threadsafe. 8 // This class is not threadsafe.
9 9
10 #ifndef REMOTING_SIGNALING_XMPP_SIGNAL_STRATEGY_H_ 10 #ifndef REMOTING_SIGNALING_XMPP_SIGNAL_STRATEGY_H_
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 int port; 48 int port;
49 bool use_tls; 49 bool use_tls;
50 50
51 std::string username; 51 std::string username;
52 std::string auth_token; 52 std::string auth_token;
53 std::string auth_service; 53 std::string auth_service;
54 }; 54 };
55 55
56 XmppSignalStrategy( 56 XmppSignalStrategy(
57 net::ClientSocketFactory* socket_factory, 57 net::ClientSocketFactory* socket_factory,
58 scoped_refptr<net::URLRequestContextGetter> request_context_getter, 58 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter,
59 const XmppServerConfig& xmpp_server_config); 59 const XmppServerConfig& xmpp_server_config);
60 ~XmppSignalStrategy() override; 60 ~XmppSignalStrategy() override;
61 61
62 // SignalStrategy interface. 62 // SignalStrategy interface.
63 void Connect() override; 63 void Connect() override;
64 void Disconnect() override; 64 void Disconnect() override;
65 State GetState() const override; 65 State GetState() const override;
66 Error GetError() const override; 66 Error GetError() const override;
67 std::string GetLocalJid() const override; 67 std::string GetLocalJid() const override;
68 void AddListener(Listener* listener) override; 68 void AddListener(Listener* listener) override;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 ObserverList<Listener, true> listeners_; 106 ObserverList<Listener, true> listeners_;
107 107
108 base::RepeatingTimer<XmppSignalStrategy> keep_alive_timer_; 108 base::RepeatingTimer<XmppSignalStrategy> keep_alive_timer_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(XmppSignalStrategy); 110 DISALLOW_COPY_AND_ASSIGN(XmppSignalStrategy);
111 }; 111 };
112 112
113 } // namespace remoting 113 } // namespace remoting
114 114
115 #endif // REMOTING_SIGNALING_XMPP_SIGNAL_STRATEGY_H_ 115 #endif // REMOTING_SIGNALING_XMPP_SIGNAL_STRATEGY_H_
OLDNEW
« no previous file with comments | « remoting/remoting_test.gypi ('k') | remoting/signaling/xmpp_signal_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698