summaryrefslogtreecommitdiffstats
path: root/remoting/host
Commit message (Collapse)AuthorAgeFilesLines
* Disable resize-to-client on non-Linux systems.jamiewalch@chromium.org2012-10-301-0/+5
| | | | | | | | | BUG=110212 Review URL: https://chromiumcodereview.appspot.com/11345014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164829 0039d316-1c4b-4281-b951-d872f2087c98
* remoting/host: Remove forbidden using namespace directive.tfarina@chromium.org2012-10-301-1/+3
| | | | | | | | | | | Instead just wrap the source file into the remoting namespace. R=sergeyu@chromium.org NOTRY=True Review URL: https://chromiumcodereview.appspot.com/11273089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164805 0039d316-1c4b-4281-b951-d872f2087c98
* remoting/host: Remove nonexistent entry from DEPS list.tfarina@chromium.org2012-10-291-1/+0
| | | | | | | | | R=alexeypa@chromium.org,sergeyu@chromium.org NOTRY=True Review URL: https://codereview.chromium.org/11343021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164745 0039d316-1c4b-4281-b951-d872f2087c98
* Rolling libjingle r220.ronghuawu@chromium.org2012-10-291-2/+2
| | | | | | | TEST=apprtc and try bots Review URL: https://codereview.chromium.org/11273088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164726 0039d316-1c4b-4281-b951-d872f2087c98
* Add timout for the stop command in the chromoting init script.sergeyu@chromium.org2012-10-271-1/+18
| | | | | | | | | | | | Remoting host shutdown may timeout in some environment (e.g. when home directories are on NFS). Ignore this error. BUG=153090 Review URL: https://chromiumcodereview.appspot.com/11313015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164510 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused constant in IT2Me host implementation.wez@chromium.org2012-10-271-5/+0
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11309016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164501 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented local login check for PAM (only enabled on Linux for now).jamiewalch@chromium.org2012-10-273-0/+201
| | | | | | | | | BUG=157935 Review URL: https://chromiumcodereview.appspot.com/11276040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164478 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Make the HostStarter unregister a new host if it couldn't start it.simonmorris@chromium.org2012-10-274-9/+80
| | | | | | | | | BUG=153453 Review URL: https://chromiumcodereview.appspot.com/11193045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164468 0039d316-1c4b-4281-b951-d872f2087c98
* Pause/resume the VideoScheduler in response to messages from the client.wez@chromium.org2012-10-273-6/+32
| | | | | | | | | | BUG=107285 TEST=Manually verify that Chromoting video channel throughput drops to zero if the client's window is switched to a different tab while a video is playing at the host. Review URL: https://chromiumcodereview.appspot.com/11265032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164467 0039d316-1c4b-4281-b951-d872f2087c98
* Remove GaiaOauthClient and GaiaUserEmailFetcher from remoting.sergeyu@chromium.org2012-10-279-522/+59
| | | | | | | | | The OAuth functionality remoting needs is implemented in google_api module. There is no need to duplicate it in remoting. Review URL: https://codereview.chromium.org/11273024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164461 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up remoting::VideoScheduler implementation: wez@chromium.org2012-10-267-359/+220
| | | | | | | | | | | | | | | | - Reduce thread-switching in VideoScheduler::Stop(). - Simplify VideoScheduler API and clean up implementation. - Tidy up ClientSessionTest test base. - Rename SessionConfig::GetDefault() to ForTest(). This was originally reviewed as crrev.com/11229023. BUG=104543 Review URL: https://chromiumcodereview.appspot.com/11273051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164409 0039d316-1c4b-4281-b951-d872f2087c98
* Rename ScreenRecorder to VideoScheduler.wez@chromium.org2012-10-265-103/+106
| | | | | | | | | BUG=104543 Review URL: https://chromiumcodereview.appspot.com/11229023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164282 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing threading issues in remoting::DesktopProcess. The UI thread is now ↵alexeypa@chromium.org2012-10-264-82/+132
| | | | | | | | | | owned by the caller of remoting::DesktopThread so it can be properly shared between the caller and the class. BUG=157808,157886 Review URL: https://codereview.chromium.org/11272036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164243 0039d316-1c4b-4281-b951-d872f2087c98
* Fix remoting me2me host to properly process --host-config option.sergeyu@chromium.org2012-10-251-0/+6
| | | | | | | | | Me2Me host was broken in crrev.com/163915 - the code that parses --host-config parameter was removed by mistake. Adding it back. Review URL: https://codereview.chromium.org/11260034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164145 0039d316-1c4b-4281-b951-d872f2087c98
* Remove old unused OAuth client id from remoting_me2me_host.ccsergeyu@chromium.org2012-10-251-4/+0
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11269024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164096 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] The desktop process now creates a pre-connected pipe and passes ↵alexeypa@chromium.org2012-10-2530-257/+1183
| | | | | | | | | | | | | | | | | | (with some help of the daemon) its client-end handle to the network process. The network process will request screen/audio capturing and input injection services using the created channel. Accompanying changes: - The daemon can request other processes to crash in response to critical protocol errors. - Both network and desktop processes exit if the connection to the daemon has been disconnected. - CreateConnectedIpcChannel() function moved to remoting/host/win/launch_process_with_token.h - IPC::Channel::GenerateUniqueRandomChannelID() is used to generate a unique channel name. - Added unit tests for DesktopProcess. - Made 'remote_desktop' compilable on all platforms. BUG=134694 Review URL: https://chromiumcodereview.appspot.com/11231060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164006 0039d316-1c4b-4281-b951-d872f2087c98
* Step #1: Move HostProcess method implementations out-of-line.wez@chromium.org2012-10-241-527/+579
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11228060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163915 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanups in remoting::HostStarter.sergeyu@chromium.org2012-10-243-41/+31
| | | | | | | | | | | | | | several minor cleanups in the HostStarter class: - Removed START_IN_PROGRESS result code and replaced it with DCHECK. - Removed in_progress_ flag. - Cleaned up how on_done_ callback is called - class members must not be used after the callback is called. - Added TODO for more cleanups. Review URL: https://chromiumcodereview.appspot.com/11227062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163893 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the remoting_simple_host target.wez@chromium.org2012-10-231-469/+0
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11228061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163728 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Change ScreenRefresh to use 'if' instead of 'DCHECK'.garykac@chromium.org2012-10-231-1/+3
| | | | | | | | BUG=154716 Review URL: https://chromiumcodereview.appspot.com/11235072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163727 0039d316-1c4b-4281-b951-d872f2087c98
* Crash the network process when a fatal daemon-to-network protocol error ↵alexeypa@chromium.org2012-10-236-42/+63
| | | | | | | | | | | | | | | encountered. Advantages of this approach: - We will be getting crash reports from the field when fatal mistakes happen. - The exponential backoff counter will not be reset. BUG=134694 Review URL: https://chromiumcodereview.appspot.com/11234034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163702 0039d316-1c4b-4281-b951-d872f2087c98
* Add opus audio codec support in remotingsergeyu@chromium.org2012-10-231-0/+3
| | | | | | | | BUG=154714 Review URL: https://codereview.chromium.org/11189047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163675 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 163650 - Add opus audio codec support in remotingsergeyu@chromium.org2012-10-231-3/+0
| | | | | | | | | | | | BUG=154714 Review URL: https://chromiumcodereview.appspot.com/11189047 TBR=sergeyu@chromium.org Review URL: https://codereview.chromium.org/11252002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163661 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed disconnect-on-switch-in bug.jamiewalch@chromium.org2012-10-231-0/+1
| | | | | | | | | BUG=None Review URL: https://chromiumcodereview.appspot.com/11189132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163658 0039d316-1c4b-4281-b951-d872f2087c98
* Add opus audio codec support in remotingsergeyu@chromium.org2012-10-231-0/+3
| | | | | | | | | BUG=154714 Review URL: https://chromiumcodereview.appspot.com/11189047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163650 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Fix crash on initial connection (Mac).garykac@chromium.org2012-10-231-0/+4
| | | | | | | | | | | | | If we get a ScreenRefresh while desktop_bounds_ is empty, we'll try to capture the screen into an empty buffer. The fix is to check the desktop_bounds_ and update the screen configuration before initiating the ScreenRefresh. BUG=154716 Review URL: https://chromiumcodereview.appspot.com/11231056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163588 0039d316-1c4b-4281-b951-d872f2087c98
* Add methods to base::Thread to allow Windows consumers to ask for COM to be ↵pkasting@chromium.org2012-10-231-40/+2
| | | | | | | | | | | | intialized on the Thread. This makes one functional change: when COM is initialized in STA mode, the Thread is forced to use a TYPE_UI message loop. Most of the modified consumers here didn't previously do that, but after discussion with cpu and siggi, it seems safest, even though it's more heavyweight. BUG=none TEST=none Review URL: https://codereview.chromium.org/11048029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163503 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify the AudioScheduler implementation.wez@chromium.org2012-10-233-61/+42
| | | | | | | | | | | - Merge OnClientDisconnected() into Stop(), since each AudioScheduler now supports only a single ClientSession. - Remove unnecessary thread-hopping in the implementation of Stop(). - Guarantee that no more packets will reach AudioStub after Stop() returns. Review URL: https://chromiumcodereview.appspot.com/11232027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163465 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Stop policy updates disconnecting an IT2Me session before it's ↵simonmorris@chromium.org2012-10-231-2/+10
| | | | | | | | | | | started. BUG=153946 Review URL: https://chromiumcodereview.appspot.com/11227006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163452 0039d316-1c4b-4281-b951-d872f2087c98
* Resave disconnect_window.xiblambroslambrou@chromium.org2012-10-221-2/+78
| | | | | | | | | Fix warnings from official builder. Review URL: https://chromiumcodereview.appspot.com/11232019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163444 0039d316-1c4b-4281-b951-d872f2087c98
* [net] Change factory methods for HostResolver and HostCache to return a ↵szym@chromium.org2012-10-221-3/+1
| | | | | | | | | | | | scoped_ptr. Move HostResolver factory methods to host_resolver.cc. This also fixes a double-free in ShellURLRequestContextGetter. Review URL: https://chromiumcodereview.appspot.com/10831277 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163402 0039d316-1c4b-4281-b951-d872f2087c98
* Mac resize-to-client implementation.jamiewalch@chromium.org2012-10-201-18/+127
| | | | | | | | | BUG=154891 Review URL: https://chromiumcodereview.appspot.com/11086089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163180 0039d316-1c4b-4281-b951-d872f2087c98
* Apply correct permissions to config when enabling Chromoting host on Maclambroslambrou@chromium.org2012-10-202-8/+5
| | | | | | | | | BUG=152811 Review URL: https://chromiumcodereview.appspot.com/11183082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163127 0039d316-1c4b-4281-b951-d872f2087c98
* Implementation for a lightweight audio toggle.rmsousa@chromium.org2012-10-193-1/+26
| | | | | | | | | | | | | | | Doing a full Start()/Stop() on every toggle seemed a bit too heavyweight (esp. on the Windows implementation), and possibly failure-prone, so I chose instead to leave the capturer running, and just drop the captured packets before encoding/sending them. I only tested on Linux, but the platform-specific part of this code is fairly trivial. BUG= TEST=Call remoting.clientSession.pauseAudio(true/false) on the Javascript console of the chromoting client. Review URL: https://chromiumcodereview.appspot.com/11195046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162919 0039d316-1c4b-4281-b951-d872f2087c98
* Move it2me business logic out of the UI classrmsousa@chromium.org2012-10-193-17/+8
| | | | | | | | | BUG=156257 Review URL: https://chromiumcodereview.appspot.com/11194069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162914 0039d316-1c4b-4281-b951-d872f2087c98
* Fix merge issues sneaked in with r162778.alexeypa@chromium.org2012-10-191-5/+7
| | | | | | | | | BUG=134694 Review URL: https://chromiumcodereview.appspot.com/11198073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162907 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Use base::GenerateGUID to generate host IDs.simonmorris@chromium.org2012-10-191-42/+2
| | | | | | | | | BUG=153453 Review URL: https://chromiumcodereview.appspot.com/11192041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162867 0039d316-1c4b-4281-b951-d872f2087c98
* Create OS windows on the UI thread, since that's where they're destroyed.rmsousa@chromium.org2012-10-188-75/+84
| | | | | | | | | BUG=153946 Review URL: https://chromiumcodereview.appspot.com/11145008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162838 0039d316-1c4b-4281-b951-d872f2087c98
* Chromoting Debian package updates.lambroslambrou@chromium.org2012-10-183-6/+21
| | | | | | | | | | | | | | * Update versioning to match remoting.gyp * Add start-host binary to package * Don't restart virtual desktops on upgrade BUG=155626,153462 Review URL: https://chromiumcodereview.appspot.com/11186041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162802 0039d316-1c4b-4281-b951-d872f2087c98
* Disable curtain mode.jamiewalch@google.com2012-10-181-2/+4
| | | | | | | | | | Since this is broken on Mac, let's remove it for the time being. BUG=156687 Review URL: https://codereview.chromium.org/11185063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162787 0039d316-1c4b-4281-b951-d872f2087c98
* Validate and report peer's PID to WorkerProcessIpcDelegate so it will be ↵alexeypa@chromium.org2012-10-1817-182/+277
| | | | | | | | | | | | | able to duplicate handles to and from the worker process. As a side effect WorkerProcessLauncher::Delegate is now responsible for retrieving the client's PID and deciding whether a launch failed due to a permanent error condition. BUG=134694 Review URL: https://chromiumcodereview.appspot.com/11143025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162778 0039d316-1c4b-4281-b951-d872f2087c98
* Move IT2Me functions into their own implementation object.wez@chromium.org2012-10-183-597/+714
| | | | | | | | | | | | | | | | | The script object itself is now used exclusively on the plugin/UI thread. When the IT2Me host function is used, an internal ref-counted implementation object is created which runs (mostly) on the network thread. The IT2Me implementation is passed a weak pointer to the script object through which to post tasks to it, allowing it to safely out-live the script object, for instance if there are still pending tasks for it at the moment it is stopped. BUG=156257 TEST=PyAuto & manual testing of IT2Me host functions. Review URL: https://chromiumcodereview.appspot.com/11195031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162777 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Let the Linux start-host app take a redirect-URL parameter.simonmorris@chromium.org2012-10-188-51/+76
| | | | | | | | | | | This lets us change the flow that produces an OAuth authorization code. BUG=155431 Review URL: https://chromiumcodereview.appspot.com/11185037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162752 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] The desktop process now connects back to the daemon process.alexeypa@chromium.org2012-10-186-21/+95
| | | | | | | | | BUG=134694 Review URL: https://chromiumcodereview.appspot.com/11048056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162667 0039d316-1c4b-4281-b951-d872f2087c98
* Move remoting pref-pane files to mac/ folder.lambroslambrou@chromium.org2012-10-1810-5/+5
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11184031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162652 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Request the daemon to open a terminal once a connection has ↵alexeypa@chromium.org2012-10-1820-76/+461
| | | | | | | | | | | | been accepted. Opening a terminal will invoke (once this functionality is in place) the desktop integration code. The latter will pass a client end of the IPC channel back to the desktop environment object. BUG=134694 Review URL: https://chromiumcodereview.appspot.com/11028128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162644 0039d316-1c4b-4281-b951-d872f2087c98
* Protocol plumbing for audio toggle.rmsousa@chromium.org2012-10-182-0/+9
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/11192042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162637 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ZLib codec support from chromoting host and client.sergeyu@chromium.org2012-10-181-4/+2
| | | | | | | | | We were not using ZLIB codec anyway, so there is no reason to keep it around. Review URL: https://chromiumcodereview.appspot.com/11195029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162635 0039d316-1c4b-4281-b951-d872f2087c98
* Redirect Chromoting Host debug logs to Windows event tracing (ETW) instead ↵alexeypa@chromium.org2012-10-189-62/+128
| | | | | | | | | | | | | | | of a file on disk. This CL prevents infinite growth of debug.log over time. The debug output is redirected to ETW logging. Sawbuck (http://code.google.com/p/sawbuck/) or standard ETW tools can be used to view the debug output. The debug build still uses "debug.log" (along with ETW) to simplify debugging. The installation registers "Chromoting" provider with Sawbuck and deletes the existing "debug.log" file during both installation and uninstallation. BUG=156135 Review URL: https://chromiumcodereview.appspot.com/11188016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162614 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Add a simple Windows app that registers and starts a host.simonmorris@chromium.org2012-10-1813-15/+599
| | | | | | | | | BUG=153453 Review URL: https://chromiumcodereview.appspot.com/11090063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162600 0039d316-1c4b-4281-b951-d872f2087c98