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

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

Issue 1530523002: More cleanups in JingleSessionManager interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@transport_context
Patch Set: Created 5 years 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/host/remoting_me2me_host.cc ('k') | remoting/protocol/connection_to_host_impl.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CONNECTION_TO_HOST_IMPL_H_ 5 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_HOST_IMPL_H_
6 #define REMOTING_PROTOCOL_CONNECTION_TO_HOST_IMPL_H_ 6 #define REMOTING_PROTOCOL_CONNECTION_TO_HOST_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 namespace protocol { 33 namespace protocol {
34 34
35 class AudioReader; 35 class AudioReader;
36 class ClientControlDispatcher; 36 class ClientControlDispatcher;
37 class ClientEventDispatcher; 37 class ClientEventDispatcher;
38 class ClientVideoDispatcher; 38 class ClientVideoDispatcher;
39 39
40 class ConnectionToHostImpl : public ConnectionToHost, 40 class ConnectionToHostImpl : public ConnectionToHost,
41 public SignalStrategy::Listener, 41 public SignalStrategy::Listener,
42 public SessionManager::Listener,
43 public Session::EventHandler, 42 public Session::EventHandler,
44 public ChannelDispatcherBase::EventHandler, 43 public ChannelDispatcherBase::EventHandler,
45 public base::NonThreadSafe { 44 public base::NonThreadSafe {
46 public: 45 public:
47 ConnectionToHostImpl(); 46 ConnectionToHostImpl();
48 ~ConnectionToHostImpl() override; 47 ~ConnectionToHostImpl() override;
49 48
50 // ConnectionToHost interface. 49 // ConnectionToHost interface.
51 void set_candidate_config(scoped_ptr<CandidateSessionConfig> config) override; 50 void set_candidate_config(scoped_ptr<CandidateSessionConfig> config) override;
52 void set_client_stub(ClientStub* client_stub) override; 51 void set_client_stub(ClientStub* client_stub) override;
(...skipping 11 matching lines...) Expand all
64 InputStub* input_stub() override; 63 InputStub* input_stub() override;
65 State state() const override; 64 State state() const override;
66 65
67 private: 66 private:
68 void StartSession(); 67 void StartSession();
69 68
70 // SignalStrategy::StatusObserver interface. 69 // SignalStrategy::StatusObserver interface.
71 void OnSignalStrategyStateChange(SignalStrategy::State state) override; 70 void OnSignalStrategyStateChange(SignalStrategy::State state) override;
72 bool OnSignalStrategyIncomingStanza(const buzz::XmlElement* stanza) override; 71 bool OnSignalStrategyIncomingStanza(const buzz::XmlElement* stanza) override;
73 72
74 // SessionManager::Listener interface.
75 void OnIncomingSession(
76 Session* session,
77 SessionManager::IncomingSessionResponse* response) override;
78
79 // Session::EventHandler interface. 73 // Session::EventHandler interface.
80 void OnSessionStateChange(Session::State state) override; 74 void OnSessionStateChange(Session::State state) override;
81 void OnSessionRouteChange(const std::string& channel_name, 75 void OnSessionRouteChange(const std::string& channel_name,
82 const TransportRoute& route) override; 76 const TransportRoute& route) override;
83 77
84 // ChannelDispatcherBase::EventHandler interface. 78 // ChannelDispatcherBase::EventHandler interface.
85 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; 79 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override;
86 void OnChannelError(ChannelDispatcherBase* channel_dispatcher, 80 void OnChannelError(ChannelDispatcherBase* channel_dispatcher,
87 ErrorCode error) override; 81 ErrorCode error) override;
88 82
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 ErrorCode error_; 122 ErrorCode error_;
129 123
130 private: 124 private:
131 DISALLOW_COPY_AND_ASSIGN(ConnectionToHostImpl); 125 DISALLOW_COPY_AND_ASSIGN(ConnectionToHostImpl);
132 }; 126 };
133 127
134 } // namespace protocol 128 } // namespace protocol
135 } // namespace remoting 129 } // namespace remoting
136 130
137 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_IMPL_H_ 131 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/protocol/connection_to_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698