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

Side by Side Diff: remoting/host/chromoting_host.h

Issue 9288010: More plumbing for logging connection IP addresses (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | remoting/host/client_session.h » ('J')
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_HOST_CHROMOTING_HOST_H_ 5 #ifndef REMOTING_HOST_CHROMOTING_HOST_H_
6 #define REMOTING_HOST_CHROMOTING_HOST_H_ 6 #define REMOTING_HOST_CHROMOTING_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "remoting/base/encoder.h" 14 #include "remoting/base/encoder.h"
15 #include "remoting/host/capturer.h" 15 #include "remoting/host/capturer.h"
16 #include "remoting/host/client_session.h" 16 #include "remoting/host/client_session.h"
17 #include "remoting/host/desktop_environment.h" 17 #include "remoting/host/desktop_environment.h"
18 #include "remoting/host/host_key_pair.h" 18 #include "remoting/host/host_key_pair.h"
19 #include "remoting/host/host_status_observer.h" 19 #include "remoting/host/host_status_observer.h"
20 #include "remoting/host/ui_strings.h" 20 #include "remoting/host/ui_strings.h"
21 #include "remoting/jingle_glue/jingle_thread.h" 21 #include "remoting/jingle_glue/jingle_thread.h"
22 #include "remoting/jingle_glue/signal_strategy.h" 22 #include "remoting/jingle_glue/signal_strategy.h"
23 #include "remoting/protocol/authenticator.h" 23 #include "remoting/protocol/authenticator.h"
24 #include "remoting/protocol/session_manager.h" 24 #include "remoting/protocol/session_manager.h"
25 #include "remoting/protocol/connection_to_client.h" 25 #include "remoting/protocol/connection_to_client.h"
26 26
27 namespace net {
28 class IpEndPoint;
Sergey Ulanov 2012/01/25 01:56:48 remove this as we discussed
Lambros 2012/01/25 19:27:10 Done.
29 } // namespace net
30
27 namespace remoting { 31 namespace remoting {
28 32
29 namespace protocol { 33 namespace protocol {
30 class InputStub; 34 class InputStub;
31 class SessionConfig; 35 class SessionConfig;
32 class CandidateSessionConfig; 36 class CandidateSessionConfig;
33 } // namespace protocol 37 } // namespace protocol
34 38
35 class Capturer; 39 class Capturer;
36 class ChromotingHostContext; 40 class ChromotingHostContext;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void SetAuthenticatorFactory( 107 void SetAuthenticatorFactory(
104 scoped_ptr<protocol::AuthenticatorFactory> authenticator_factory); 108 scoped_ptr<protocol::AuthenticatorFactory> authenticator_factory);
105 109
106 //////////////////////////////////////////////////////////////////////////// 110 ////////////////////////////////////////////////////////////////////////////
107 // ClientSession::EventHandler implementation. 111 // ClientSession::EventHandler implementation.
108 virtual void OnSessionAuthenticated(ClientSession* client) OVERRIDE; 112 virtual void OnSessionAuthenticated(ClientSession* client) OVERRIDE;
109 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE; 113 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE;
110 virtual void OnSessionClosed(ClientSession* session) OVERRIDE; 114 virtual void OnSessionClosed(ClientSession* session) OVERRIDE;
111 virtual void OnSessionSequenceNumber(ClientSession* session, 115 virtual void OnSessionSequenceNumber(ClientSession* session,
112 int64 sequence_number) OVERRIDE; 116 int64 sequence_number) OVERRIDE;
117 virtual void OnSessionIpEndPoint(ClientSession* session,
118 const std::string& channel_name,
119 const net::IPEndPoint& end_point) OVERRIDE;
113 120
114 // SessionManager::Listener implementation. 121 // SessionManager::Listener implementation.
115 virtual void OnSessionManagerReady() OVERRIDE; 122 virtual void OnSessionManagerReady() OVERRIDE;
116 virtual void OnIncomingSession( 123 virtual void OnIncomingSession(
117 protocol::Session* session, 124 protocol::Session* session,
118 protocol::SessionManager::IncomingSessionResponse* response) OVERRIDE; 125 protocol::SessionManager::IncomingSessionResponse* response) OVERRIDE;
119 126
120 // Sets desired configuration for the protocol. Ownership of the 127 // Sets desired configuration for the protocol. Ownership of the
121 // |config| is transferred to the object. Must be called before Start(). 128 // |config| is transferred to the object. Must be called before Start().
122 void set_protocol_config(protocol::CandidateSessionConfig* config); 129 void set_protocol_config(protocol::CandidateSessionConfig* config);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // TODO(sergeyu): The following members do not belong to 225 // TODO(sergeyu): The following members do not belong to
219 // ChromotingHost and should be moved elsewhere. 226 // ChromotingHost and should be moved elsewhere.
220 UiStrings ui_strings_; 227 UiStrings ui_strings_;
221 228
222 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); 229 DISALLOW_COPY_AND_ASSIGN(ChromotingHost);
223 }; 230 };
224 231
225 } // namespace remoting 232 } // namespace remoting
226 233
227 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ 234 #endif // REMOTING_HOST_CHROMOTING_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | remoting/host/client_session.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698