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

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

Issue 7809003: Simplify IqRequest interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows Created 9 years, 3 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_JAVASCRIPT_IQ_REQUEST_H_ 5 #ifndef REMOTING_JINGLE_GLUE_JAVASCRIPT_IQ_REQUEST_H_
6 #define REMOTING_JINGLE_GLUE_JAVASCRIPT_IQ_REQUEST_H_ 6 #define REMOTING_JINGLE_GLUE_JAVASCRIPT_IQ_REQUEST_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 }; 48 };
49 49
50 // This call must only be used on the thread it was created on. 50 // This call must only be used on the thread it was created on.
51 class JavascriptIqRequest : public IqRequest { 51 class JavascriptIqRequest : public IqRequest {
52 public: 52 public:
53 JavascriptIqRequest(SignalStrategy* signal_strategy, 53 JavascriptIqRequest(SignalStrategy* signal_strategy,
54 JavascriptIqRegistry* registry); 54 JavascriptIqRegistry* registry);
55 virtual ~JavascriptIqRequest(); 55 virtual ~JavascriptIqRequest();
56 56
57 // IqRequest interface. 57 // IqRequest interface.
58 virtual void SendIq(const std::string& type, const std::string& addressee, 58 virtual void SendIq(buzz::XmlElement* iq_body) OVERRIDE;
59 buzz::XmlElement* iq_body) OVERRIDE;
60 virtual void set_callback(const ReplyCallback& callback) OVERRIDE; 59 virtual void set_callback(const ReplyCallback& callback) OVERRIDE;
61 60
62 private: 61 private:
63 friend class JavascriptIqRegistry; 62 friend class JavascriptIqRegistry;
64 63
65 ReplyCallback callback_; 64 ReplyCallback callback_;
66 SignalStrategy* signal_strategy_; 65 SignalStrategy* signal_strategy_;
67 JavascriptIqRegistry* registry_; 66 JavascriptIqRegistry* registry_;
68 67
69 FRIEND_TEST_ALL_PREFIXES(IqRequestTest, MakeIqStanza); 68 FRIEND_TEST_ALL_PREFIXES(IqRequestTest, MakeIqStanza);
70 }; 69 };
71 70
72 } // namespace remoting 71 } // namespace remoting
73 72
74 #endif // REMOTING_JINGLE_GLUE_JAVASCRIPT_IQ_REQUEST_H_ 73 #endif // REMOTING_JINGLE_GLUE_JAVASCRIPT_IQ_REQUEST_H_
OLDNEW
« no previous file with comments | « remoting/jingle_glue/iq_request_unittest.cc ('k') | remoting/jingle_glue/javascript_iq_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698