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

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

Issue 10378110: Verify that xmpp_login specified in the config matches auth token. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_JAVASCRIPT_SIGNAL_STRATEGY_H_ 5 #ifndef REMOTING_JINGLE_GLUE_JAVASCRIPT_SIGNAL_STRATEGY_H_
6 #define REMOTING_JINGLE_GLUE_JAVASCRIPT_SIGNAL_STRATEGY_H_ 6 #define REMOTING_JINGLE_GLUE_JAVASCRIPT_SIGNAL_STRATEGY_H_
7 7
8 #include "remoting/jingle_glue/signal_strategy.h" 8 #include "remoting/jingle_glue/signal_strategy.h"
9 9
10 #include <vector> 10 #include <vector>
(...skipping 15 matching lines...) Expand all
26 public: 26 public:
27 explicit JavascriptSignalStrategy(const std::string& local_jid); 27 explicit JavascriptSignalStrategy(const std::string& local_jid);
28 virtual ~JavascriptSignalStrategy(); 28 virtual ~JavascriptSignalStrategy();
29 29
30 void AttachXmppProxy(scoped_refptr<XmppProxy> xmpp_proxy); 30 void AttachXmppProxy(scoped_refptr<XmppProxy> xmpp_proxy);
31 31
32 // SignalStrategy interface. 32 // SignalStrategy interface.
33 virtual void Connect() OVERRIDE; 33 virtual void Connect() OVERRIDE;
34 virtual void Disconnect() OVERRIDE; 34 virtual void Disconnect() OVERRIDE;
35 virtual State GetState() const OVERRIDE; 35 virtual State GetState() const OVERRIDE;
36 virtual Error GetError() const OVERRIDE;
36 virtual std::string GetLocalJid() const OVERRIDE; 37 virtual std::string GetLocalJid() const OVERRIDE;
37 virtual void AddListener(Listener* listener) OVERRIDE; 38 virtual void AddListener(Listener* listener) OVERRIDE;
38 virtual void RemoveListener(Listener* listener) OVERRIDE; 39 virtual void RemoveListener(Listener* listener) OVERRIDE;
39 virtual bool SendStanza(scoped_ptr<buzz::XmlElement> stanza) OVERRIDE; 40 virtual bool SendStanza(scoped_ptr<buzz::XmlElement> stanza) OVERRIDE;
40 virtual std::string GetNextId() OVERRIDE; 41 virtual std::string GetNextId() OVERRIDE;
41 42
42 // XmppProxy::ResponseCallback interface. 43 // XmppProxy::ResponseCallback interface.
43 virtual void OnIq(const std::string& stanza) OVERRIDE; 44 virtual void OnIq(const std::string& stanza) OVERRIDE;
44 45
45 private: 46 private:
46 std::string local_jid_; 47 std::string local_jid_;
47 scoped_refptr<XmppProxy> xmpp_proxy_; 48 scoped_refptr<XmppProxy> xmpp_proxy_;
48 49
49 ObserverList<Listener> listeners_; 50 ObserverList<Listener> listeners_;
50 51
51 int last_id_; 52 int last_id_;
52 53
53 DISALLOW_COPY_AND_ASSIGN(JavascriptSignalStrategy); 54 DISALLOW_COPY_AND_ASSIGN(JavascriptSignalStrategy);
54 }; 55 };
55 56
56 } // namespace remoting 57 } // namespace remoting
57 58
58 #endif // REMOTING_JINGLE_GLUE_JAVASCRIPT_SIGNAL_STRATEGY_H_ 59 #endif // REMOTING_JINGLE_GLUE_JAVASCRIPT_SIGNAL_STRATEGY_H_
OLDNEW
« no previous file with comments | « remoting/jingle_glue/fake_signal_strategy.cc ('k') | remoting/jingle_glue/javascript_signal_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698