summaryrefslogtreecommitdiffstats
path: root/remoting
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-292-4/+4
| | | | | | | 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-274-0/+204
| | | | | | | | | 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-2710-527/+60
| | | | | | | | | 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-2611-363/+225
| | | | | | | | | | | | | | | | - 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
* Build real dSYM for remoting_me2me_hostlambroslambrou@chromium.org2012-10-261-0/+8
| | | | | | | | | | BUG=136579 TEST=Check that remoting_me2me_host.app.dSYM plist doesn't have fake_dsym. Review URL: https://chromiumcodereview.appspot.com/11265040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164390 0039d316-1c4b-4281-b951-d872f2087c98
* Use PpCompletionCallback in PepperPortAllocatorSession.sergeyu@chromium.org2012-10-262-39/+23
| | | | | | | | | | | | | Pepper may call callbacks even after the corresponding resource is destroyed. PepperPortAllocatorSession didn't handle this case properly. Fixed it by using PpCompletionCallback and weak pointers. BUG=157404 Review URL: https://chromiumcodereview.appspot.com/11233071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164355 0039d316-1c4b-4281-b951-d872f2087c98
* Fix inline javascript code.rmsousa@chromium.org2012-10-261-1/+1
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11269028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164342 0039d316-1c4b-4281-b951-d872f2087c98
* Rename ScreenRecorder to VideoScheduler.wez@chromium.org2012-10-266-106/+111
| | | | | | | | | 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-2531-325/+1264
| | | | | | | | | | | | | | | | | | (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-232-488/+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
* Improve codec tests to test a broader variety of dimensions.wez@chromium.org2012-10-231-10/+16
| | | | | | | | | BUG=147522 Review URL: https://chromiumcodereview.appspot.com/11195062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163679 0039d316-1c4b-4281-b951-d872f2087c98
* Add opus audio codec support in remotingsergeyu@chromium.org2012-10-2310-0/+684
| | | | | | | | 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-2310-684/+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-2310-0/+684
| | | | | | | | | 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
* Gracefully handle starting the Chromoting service whilst already running.lambroslambrou@chromium.org2012-10-201-4/+4
| | | | | | | | | | | | This is to comply with Debian policy: http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit and avoid an ugly "fail" message if the Debian package is upgraded from the command-line. Review URL: https://chromiumcodereview.appspot.com/11191071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163121 0039d316-1c4b-4281-b951-d872f2087c98
* Remove all the "set noparent" directivesdpranke@chromium.org2012-10-191-1/+0
| | | | | | | | | | | | | Now that OWNERS supports per-file owners, we can limit the scope of the top-level wildcard to just DEPS, and make darin and ben owners for everything else and remove the broad use of "set noparent". R=ben@chromium.org, darin@chromium.org BUG=88315 Review URL: https://codereview.chromium.org/11191038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163069 0039d316-1c4b-4281-b951-d872f2087c98
* Fix is-remoting-session scriptsergeyu@chromium.org2012-10-191-1/+1
| | | | | | | | | | | Previously is-remoting-session script didn't work correctly, which causes host to be restarted when it's updated. Problem was that it was checking wrong environment variable. Review URL: https://chromiumcodereview.appspot.com/11191070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162925 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