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

Side by Side Diff: remoting/protocol/jingle_session.h

Issue 10692179: Propagate connection state from networking layer to UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « remoting/protocol/connection_to_host.cc ('k') | remoting/protocol/jingle_session.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 (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_PROTOCOL_PEPPER_SESSION_H_ 5 #ifndef REMOTING_PROTOCOL_PEPPER_SESSION_H_
6 #define REMOTING_PROTOCOL_PEPPER_SESSION_H_ 6 #define REMOTING_PROTOCOL_PEPPER_SESSION_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual const SessionConfig& config() OVERRIDE; 53 virtual const SessionConfig& config() OVERRIDE;
54 virtual void set_config(const SessionConfig& config) OVERRIDE; 54 virtual void set_config(const SessionConfig& config) OVERRIDE;
55 virtual void Close() OVERRIDE; 55 virtual void Close() OVERRIDE;
56 56
57 // Transport::EventHandler interface. 57 // Transport::EventHandler interface.
58 virtual void OnTransportCandidate( 58 virtual void OnTransportCandidate(
59 Transport* transport, 59 Transport* transport,
60 const cricket::Candidate& candidate) OVERRIDE; 60 const cricket::Candidate& candidate) OVERRIDE;
61 virtual void OnTransportRouteChange(Transport* transport, 61 virtual void OnTransportRouteChange(Transport* transport,
62 const TransportRoute& route) OVERRIDE; 62 const TransportRoute& route) OVERRIDE;
63 virtual void OnTransportReady(Transport* transport,
64 bool ready) OVERRIDE;
63 virtual void OnTransportDeleted(Transport* transport) OVERRIDE; 65 virtual void OnTransportDeleted(Transport* transport) OVERRIDE;
64 66
65 private: 67 private:
66 friend class JingleSessionManager; 68 friend class JingleSessionManager;
67 69
68 typedef std::map<std::string, Transport*> ChannelsMap; 70 typedef std::map<std::string, Transport*> ChannelsMap;
69 typedef base::Callback<void(JingleMessageReply::ErrorType)> ReplyCallback; 71 typedef base::Callback<void(JingleMessageReply::ErrorType)> ReplyCallback;
70 72
71 explicit JingleSession(JingleSessionManager* session_manager); 73 explicit JingleSession(JingleSessionManager* session_manager);
72 74
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 base::OneShotTimer<JingleSession> transport_infos_timer_; 146 base::OneShotTimer<JingleSession> transport_infos_timer_;
145 std::list<JingleMessage::NamedCandidate> pending_candidates_; 147 std::list<JingleMessage::NamedCandidate> pending_candidates_;
146 148
147 DISALLOW_COPY_AND_ASSIGN(JingleSession); 149 DISALLOW_COPY_AND_ASSIGN(JingleSession);
148 }; 150 };
149 151
150 } // namespace protocol 152 } // namespace protocol
151 } // namespace remoting 153 } // namespace remoting
152 154
153 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_H_ 155 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/protocol/connection_to_host.cc ('k') | remoting/protocol/jingle_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698