summaryrefslogtreecommitdiffstats
path: root/remoting/host
Commit message (Collapse)AuthorAgeFilesLines
* Add OSSTATUS_LOG API.mark@chromium.org2012-01-271-3/+3
| | | | | | Review URL: https://chromiumcodereview.appspot.com/9235084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119511 0039d316-1c4b-4281-b951-d872f2087c98
* Don't delete memory passed to openlog/syslog.lambroslambrou@chromium.org2012-01-271-2/+11
| | | | | | | | | | | | | | | Fixes the problem where syslog wrote a blank tag instead of "chromoting_me2me_host" (problem seen after applying http://codereview.chromium.org/9234070/) BUG=None TEST=Manual Review URL: http://codereview.chromium.org/9143003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119491 0039d316-1c4b-4281-b951-d872f2087c98
* Remove platform code from HostEventLoggerlambroslambrou@chromium.org2012-01-271-22/+0
| | | | | | | | | | | | Linux syslog code is now in SystemEventLoggerLinux. BUG=None TEST=Compile + unit-tests Review URL: http://codereview.chromium.org/9234070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119388 0039d316-1c4b-4281-b951-d872f2087c98
* Log client IP addresses to syslog in Me2Me host.lambroslambrou@chromium.org2012-01-274-6/+27
| | | | | | | | | | | | | | Follows on from http://codereview.chromium.org/9288010/ and http://codereview.chromium.org/9271026/ BUG=109682 TEST=Manual Review URL: http://codereview.chromium.org/9288040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119326 0039d316-1c4b-4281-b951-d872f2087c98
* Enable NAT traversal in remoting_simple_host.sergeyu@chromium.org2012-01-261-2/+2
| | | | | | | | | | remoting_simple_host already has --disable-nat-traversal flag, but that flag didn't do anything because NAT traversal was disabled by default anyway. Review URL: http://codereview.chromium.org/9169071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119191 0039d316-1c4b-4281-b951-d872f2087c98
* Convert all remaining explicit LeakyLazyInstanceTraits users to ::Leakyfischman@chromium.org2012-01-263-11/+6
| | | | | | | | | | | | | and hide LeakyLazyInstanceTraits in base::internal to discourage cargo-culting new users. BUG=none TEST=none Review URL: http://codereview.chromium.org/9117038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119173 0039d316-1c4b-4281-b951-d872f2087c98
* More plumbing for logging connection IP addresseslambroslambrou@google.com2012-01-256-4/+37
| | | | | | | | | | | | | Followup CL to http://codereview.chromium.org/9271026/ - this passes the RouteChange() notification from ConnectionToClient through the various layers to the ChromotingHost. BUG=109682 TEST=Compiles, unit-tests pass. Review URL: https://chromiumcodereview.appspot.com/9288010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119137 0039d316-1c4b-4281-b951-d872f2087c98
* Enable V2 authentication for Me2Me host.sergeyu@chromium.org2012-01-244-19/+40
| | | | | | | | | | | | | Updated both Me2me host and simple host to accept spake2_hmac auth. They still accept V1 authentication. Also the corresponding scripts are updated to ask for PIN BUG=107777 Review URL: http://codereview.chromium.org/9270031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118860 0039d316-1c4b-4281-b951-d872f2087c98
* The chromoting hosts log an "IT2Me or Me2Me" field to the server.simonmorris@chromium.org2012-01-219-7/+79
| | | | | | | | | | BUG=106208 TEST=none Review URL: http://codereview.chromium.org/9192025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118562 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor system event logging into platform-specific classes.lambroslambrou@chromium.org2012-01-195-4/+85
| | | | | | | | | | | | | Currently only Linux, as remoting_me2me_host is a Linux-specific GYP target. BUG=109682 TEST=Manual Review URL: http://codereview.chromium.org/9174022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118225 0039d316-1c4b-4281-b951-d872f2087c98
* Log client jid for rejected clients.sergeyu@chromium.org2012-01-1810-12/+12
| | | | | | | | | BUG=109682 Review URL: http://codereview.chromium.org/9243017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118065 0039d316-1c4b-4281-b951-d872f2087c98
* Remove set_it2me() from ChromotingHost.sergeyu@chromium.org2012-01-185-39/+37
| | | | | | Review URL: http://codereview.chromium.org/9187077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118028 0039d316-1c4b-4281-b951-d872f2087c98
* Add ChromotingHost::RemoveStatusObserver().sergeyu@chromium.org2012-01-1712-45/+63
| | | | | | | | | | | Now HostStatusObservers can be added or removed at any time. ObserverList<> is used to store the list of observers. This allows deletion of status observers before host is destroyed. It was previously causing a crash described in http://crbug.com/110196 . BUG=110196 Review URL: https://chromiumcodereview.appspot.com/9231002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117947 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure that ScreenRecorder is never reused for multiple connections.sergeyu@chromium.org2012-01-142-17/+18
| | | | | | | | | BUG=109759 Review URL: http://codereview.chromium.org/9133014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117762 0039d316-1c4b-4281-b951-d872f2087c98
* Minor fixes for the it2me host.sergeyu@chromium.org2012-01-143-26/+17
| | | | | | | | | Fixed three minor issues I found while looking at the host code. The bug in ChromotingHost I fixed may cause crashes (though I never observed it). Review URL: http://codereview.chromium.org/9112046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117760 0039d316-1c4b-4281-b951-d872f2087c98
* Event logging for Me2Me host.lambroslambrou@chromium.org2012-01-133-0/+85
| | | | | | | | | | BUG=109682 TEST=Manual Review URL: http://codereview.chromium.org/9181015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117714 0039d316-1c4b-4281-b951-d872f2087c98
* Restrict Me2Me host to the 12400-12409 port range.sergeyu@chromium.org2012-01-136-14/+65
| | | | | | | | | Also added options in the simple_host to specify port range to use Review URL: http://codereview.chromium.org/9148089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117695 0039d316-1c4b-4281-b951-d872f2087c98
* The Me2Me chromoting host logs connection data to the cloud.simonmorris@chromium.org2012-01-131-0/+5
| | | | | | | | | | BUG=106208 TEST=none Review URL: http://codereview.chromium.org/9148042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117612 0039d316-1c4b-4281-b951-d872f2087c98
* The chromoting IT2Me host logs connection data to the cloud.simonmorris@chromium.org2012-01-133-9/+5
| | | | | | | | | | BUG=106208 TEST=none Review URL: http://codereview.chromium.org/9187022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117611 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup AuthenticatorFactory implementations.sergeyu@chromium.org2012-01-113-4/+4
| | | | | | | | | | | | 1. Removed V1HostAuthenticatorFactory and V2HostAuthenticatorFactory, as they are not used anywhere. 2. Changed the code to pass RSAPrivateKey by reference instead of pointer. Review URL: http://codereview.chromium.org/9150014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117176 0039d316-1c4b-4281-b951-d872f2087c98
* Added Me2Me-specific authenticator factory.sergeyu@chromium.org2012-01-102-13/+16
| | | | | | | | BUG=105214 Review URL: http://codereview.chromium.org/9158003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116968 0039d316-1c4b-4281-b951-d872f2087c98
* Remove dependency on HostConfig from ChromotingHost and other classes.sergeyu@chromium.org2012-01-0713-182/+148
| | | | | | | | | | | | | | Remove dependency on HostConfig from ChromotingHost, RegisterSupportHostRequest and HeartbeatSender. Also replaced ChromotingHost::SetSharedSecret() with SetAuthenticatorFactory() to support new authentication mechanism. BUG=105214 Review URL: http://codereview.chromium.org/9022045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116818 0039d316-1c4b-4281-b951-d872f2087c98
* Implement SignalingConnector that reconnects XMPP when necessary.sergeyu@chromium.org2012-01-074-3/+160
| | | | | | | | | | BUG=107276 TEST=Me2me host is reconnects XMPP after host network connection is reset. Review URL: http://codereview.chromium.org/9053001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116805 0039d316-1c4b-4281-b951-d872f2087c98
* Move ChromotingHost initialization to the network thread.sergeyu@chromium.org2012-01-078-296/+299
| | | | | | | | | Previously XmppSignalStrategy, ChromotingHost and some other objects were created on main or plugin thread but worked on the network thread. This could potentially cause synchronization bugs. Now it is possible to mark XmppSignalStrategy and LogToServer as NonThreadSafe to ensure that they are used only on the network thread. Review URL: http://codereview.chromium.org/9051001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116793 0039d316-1c4b-4281-b951-d872f2087c98
* Remove task.h and finish base::Bind() migration.ajwong@chromium.org2012-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Over 341 CLs, in ~3 months, touching 3251 unique files! Top 5 most CLs: (121) jhawkins ( 45) dcheng ( 24) achuith ( 23) csilv ( 12) tfarina ( 12) groby ~1000 files touched: (918) jhawkins 100+ files touched: (486) ajwong (385) willchan (372) dcheng (126) csilv (123) fischman (112) sergeyu 49+ files touched: (65) tfarina (57) acolwell (52) adamk (49) tzik BUG=35223 TEST=existing Review URL: http://codereview.chromium.org/9114020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116748 0039d316-1c4b-4281-b951-d872f2087c98
* Move signaling connection creation out of ChromotingHost.sergeyu@chromium.org2012-01-0419-396/+361
| | | | | | | | | | | | | Also removed signaling-related events from ChromotingHostObserver interface and changes host observers to listen for notifications from SignalStrategy directly. BUG=107276 Review URL: http://codereview.chromium.org/9004050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116256 0039d316-1c4b-4281-b951-d872f2087c98
* And now NewRunnableMethod(), you die.ajwong@chromium.org2012-01-041-3/+1
| | | | | | | | | | | Kill off NewRunnableMethod() and remove silly declarations of unused ScopedRunnableMethodFactory(s). BUG=none TEST=existing. Review URL: http://codereview.chromium.org/9034032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116250 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor SignalStrategy so that it can be reused for multiple connections.sergeyu@chromium.org2012-01-0316-82/+60
| | | | | | | | | | | Also updated SessionManager implementation so that session managers can be created before signaling is connected. BUG=107276 Review URL: http://codereview.chromium.org/9005034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116192 0039d316-1c4b-4281-b951-d872f2087c98
* Remove support for the initial-resolution tag in session descriptions.wez@chromium.org2012-01-011-8/+2
| | | | | | | | | TEST=Unit-tests & manual interoperability testing with older versions. Review URL: http://codereview.chromium.org/9021044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116083 0039d316-1c4b-4281-b951-d872f2087c98
* Refactoring of the client-side input pipeline and scaling dimension management.wez@chromium.org2011-12-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The main changes are: * Express key-release, mouse coordinate scaling and clamping as InputStubs. * KeyEventTracker handles key release. * MouseInputFilter handles mouse scaling & clamping. * PepperInputHandler converts Pepper events to InputStub events. * Replace scaling ratios with host and view dimensions. This resulted in some related changes * The DecoderVp8 enforces a <=1:1 output-size before converting the frame. * The setScaleToFit() API now has no effect. * ChromotingView has become a pure interface again. Things this CL is currently missing: * Unit-tests for the new components. Future work: * Move the non-Pepper-specific input pipeline components to ChromotingClient. * Rework the decode / convert / scale / render pipeline. BUG=93552 TEST=remoting_unittests, and manual testing. Review URL: http://codereview.chromium.org/8985007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115511 0039d316-1c4b-4281-b951-d872f2087c98
* Convert all of remoting/* to base::Bind().ajwong@chromium.org2011-12-2010-11/+2
| | | | | | | | | | | | Removing base/task.h also. BUG=none TEST=existing. Review URL: http://codereview.chromium.org/8994015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115074 0039d316-1c4b-4281-b951-d872f2087c98
* Stop using macros with space in them.maruel@chromium.org2011-12-163-2/+26
| | | | | | | | | | | | | | msbuild (VS2010) incorrectly mangles the command line for rc.exe when there is space in the defines; it double quotes it incorrectly. e.g. FOO="foo bar" becomes; rc.exe /D "FOO="foo bar"" Note that VS2008 and cl.exe command line on msbuild are not affected. BUG=107652 TEST= Review URL: http://codereview.chromium.org/8954002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114851 0039d316-1c4b-4281-b951-d872f2087c98
* Use XDamage in Virtual Me2Me.lambroslambrou@chromium.org2011-12-153-3/+29
| | | | | | | | | | BUG=107470 TEST=Check output log, and compare CPU usage with the non-XDamage case. Review URL: http://codereview.chromium.org/8937019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114535 0039d316-1c4b-4281-b951-d872f2087c98
* Removing MessageLoop::QuitTask() from remoting/dcheng@chromium.org2011-12-093-3/+3
| | | | | | | | | | | | base/task.h is going away and being replaced by base/bind.h and base/callback.h. This CL was automatically generated by sed. BUG=none TEST=none Review URL: http://codereview.chromium.org/8889024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113752 0039d316-1c4b-4281-b951-d872f2087c98
* [Mac] Remove content/ CrApplication.shess@chromium.org2011-12-061-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Pull the CrAppProtocol autorelease-pool handling down into MessagePumpCrApplication, which is selected at Create() if NSApp implements the right protocol. UsingCrApp() allows clients to confirm the correct setup (unfortunately, synchronizing NSApp initialization and MessagePump::Create() would be intrusive). Also push CrAppProtocol and CrAppControlProtocol implementation into BrowserCrApplication, and reparent that class from NSApplication. Reparent ServiceCrApplication on NSApplication and rename. Remove CrApplication registration from gpu, plugin, and renderer mains. Remove MockCrApp dependency from remoting sample code. BUG=102224 Review URL: http://codereview.chromium.org/8771028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113281 0039d316-1c4b-4281-b951-d872f2087c98
* New-style Disconnect window for Linux Chromoting host.lambroslambrou@chromium.org2011-12-031-38/+189
| | | | | | | | | | BUG=None TEST=Manual Review URL: http://codereview.chromium.org/8733014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112831 0039d316-1c4b-4281-b951-d872f2087c98
* Fix race condition disconnecting hosts.jamiewalch@chromium.org2011-12-025-24/+14
| | | | | | | | | | | | Also, remove a couple of unused functions and rename some to be more meaningful following the recent refactoring. BUG=102441 TEST=Manual Review URL: http://codereview.chromium.org/8775021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112762 0039d316-1c4b-4281-b951-d872f2087c98
* Set empty shared secret for Me2Me hosts.lambroslambrou@chromium.org2011-12-014-4/+43
| | | | | | | | | | BUG=105214,105995 TEST=Me2Me works Review URL: http://codereview.chromium.org/8764012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112577 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor IT2Me-specific functions into a HostObserver subclass.lambroslambrou@chromium.org2011-12-0110-427/+375
| | | | | | | | | | | | | | | This also removes the curtain-mode hooks from DesktopEnvironment and ChromotingHost. Me2Me hosts will no longer show the Disconnect or Continue windows. It2Me hosts should be unaffected, except for the removal of curtain-mode (which will be added back in a later CL). BUG=104377 TEST=Manual and unittests Review URL: http://codereview.chromium.org/8725016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112392 0039d316-1c4b-4281-b951-d872f2087c98
* Fix leak in remoting_unittests caused by crrev.com/112127sergeyu@chromium.org2011-11-302-1/+3
| | | | | | | | | TBR=wez@chromium.org BUG=105214 Review URL: http://codereview.chromium.org/8746008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112154 0039d316-1c4b-4281-b951-d872f2087c98
* Always generate host secrets of correct length.sergeyu@chromium.org2011-11-301-4/+11
| | | | | | | | | | BUG=105798 TEST=Access code is always 12 digits long. Review URL: http://codereview.chromium.org/8734012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112137 0039d316-1c4b-4281-b951-d872f2087c98
* Use Authenticator interface in Session and SessionManager.sergeyu@chromium.org2011-11-304-16/+26
| | | | | | | | BUG=105214 Review URL: http://codereview.chromium.org/8619011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112127 0039d316-1c4b-4281-b951-d872f2087c98
* Remove AccessVerifier interface.sergeyu@chromium.org2011-11-2919-409/+96
| | | | | | | | | | | | | | | | | AccessVerifier will be replaced with the new protocol::Authenticator interface. This also changes behavior of Session interface when session is rejected due to bad auth: now the session is first accepted by ChromotingHost but then goes to FAILED state with the new AUTHENTICATION_FAILED error. Temporarily auth token is verified in JingleSession::AcceptConnection(). Later Authenticator implementation will be used instead. BUG=105214 Review URL: http://codereview.chromium.org/8662001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112009 0039d316-1c4b-4281-b951-d872f2087c98
* Remove JingleSessionManager::set_allow_local_ips().sergeyu@chromium.org2011-11-291-2/+0
| | | | | | | | | Currently allow_local_ips is always set to true, and there is no reason not to allow local IP addresses. Review URL: http://codereview.chromium.org/8728011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111973 0039d316-1c4b-4281-b951-d872f2087c98
* Use callback_forward.h instead of callback.h where possible.erikwright@chromium.org2011-11-291-1/+0
| | | | | | | | | | | | | | | callback_forward.h will be committed separately, before this commit, and is included here only to assist in running try jobs. It will be removed before the final commit. You are asked to review this as you have OWNERS for these files. BUG=None TEST=Compiles R=ajwong@chromium.org Review URL: http://codereview.chromium.org/8697005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111947 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor ContinueWindow::Show() to accept a callback parameter.lambroslambrou@chromium.org2011-11-237-34/+67
| | | | | | | | | | | | | | | | | | This gets rid of the DesktopEnvironment::OnPause() notification from the Host. Instead, that code is moved to DesktopEnvironment::ContinueSession() and provided as a callback function parameter to ContinueWindow::Show(). This will simplify a future CL to move the ContinueWindow/DisconnectWindow code into an IT2Me-specific HostObserver subclass. BUG=None TEST=No change in functionality. Review URL: http://codereview.chromium.org/8624009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111443 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed slowdown due to local input monitoring.jamiewalch@chromium.org2011-11-231-4/+7
| | | | | | | | | | BUG=105070 TEST=Manual Review URL: http://codereview.chromium.org/8670005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111439 0039d316-1c4b-4281-b951-d872f2087c98
* Add OVERRIDE to remoting/.avi@chromium.org2011-11-231-1/+2
| | | | | | | | | BUG=104314 TEST=no change Review URL: http://codereview.chromium.org/8662023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111414 0039d316-1c4b-4281-b951-d872f2087c98
* Center the disconnect window at the bottom of the screen.jamiewalch@chromium.org2011-11-231-0/+7
| | | | | | | | | | BUG=101178 TEST=Manual Review URL: http://codereview.chromium.org/8623006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111317 0039d316-1c4b-4281-b951-d872f2087c98
* Move SSL layer initialization into ChannelAuthenticator implementations.sergeyu@chromium.org2011-11-231-1/+1
| | | | | | | | Also separate client and host authenticators into separate files. Review URL: http://codereview.chromium.org/8604001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111311 0039d316-1c4b-4281-b951-d872f2087c98