summaryrefslogtreecommitdiffstats
path: root/remoting
Commit message (Collapse)AuthorAgeFilesLines
* Converted VideoFrameCapturer callbacks into a VideoFrameCapturer::Delegate ↵alexeypa@chromium.org2012-11-0814-238/+211
| | | | | | | | | | | interface. BUG=134694 Review URL: https://chromiumcodereview.appspot.com/11363128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166728 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: change protobuf default option to allow buildingphajdan.jr@chromium.org2012-11-076-12/+0
| | | | | | | | | | | | | | | | | | with unpatched system protobuf. This is a preparation for landing https://codereview.chromium.org/11231046/ and a solution chosen because our custom protobuf changes will not be accepted upstream. Setting defaults to optimize for lite runtime and retain unknown fields makes it possible to use the same .proto files with system protobuf. BUG=157155 TEST=none Review URL: https://codereview.chromium.org/11228038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166534 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Make the webapp handle 502 errors like 503 errors.simonmorris@chromium.org2012-11-073-3/+3
| | | | | | | | BUG=158845 Review URL: https://codereview.chromium.org/11362128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166463 0039d316-1c4b-4281-b951-d872f2087c98
* Limit number of frames per audio packet in Opus and Speex decoders.sergeyu@chromium.org2012-11-072-4/+23
| | | | | | | | | | | | | Previously Opus and Speex decoders didn't validate number of frames in the incoming packets, so there was a potential buffer overflow when there are enough frames in a packet to cause integer overflow. BUG=159553,159229 Review URL: https://chromiumcodereview.appspot.com/11368112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166368 0039d316-1c4b-4281-b951-d872f2087c98
* Move Chromoting strings to string_resources.grd and simplify ↵sergeyu@chromium.org2012-11-0692-16863/+5594
| | | | | | | | | | | | | | | | | | remoting_resources target. Previously all strings were in messages.json files. Moving them to GRD file will allow to share them with native components. Also simplified how resources are generated: 1. Now <if> is used to handle branded strings instead of generating grd file in build time 2. Removed resource_ids - ids are now specified in grd files. BUG=158995 Review URL: https://chromiumcodereview.appspot.com/11275101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166127 0039d316-1c4b-4281-b951-d872f2087c98
* Splitting EventExecutor classes that require asynchronous shutdown into a ↵alexeypa@chromium.org2012-11-0612-220/+379
| | | | | | | | | | synchronous front-end and a ref-counted asynchronous back-end. BUG=134694,132193 Review URL: https://chromiumcodereview.appspot.com/11364036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166117 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Move Chromoting strings to string_resources.grd and simplify ↵phajdan.jr@chromium.org2012-11-0594-5596/+16890
| | | | | | | | remoting_resources target." This reverts commit f5dfed801f9358411900c4f9ca58ef0a11cce9ae. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166069 0039d316-1c4b-4281-b951-d872f2087c98
* Move Chromoting strings to string_resources.grd and simplify ↵sergeyu@chromium.org2012-11-0594-16890/+5596
| | | | | | | | | | | | | | | | | remoting_resources target. Previously all strings were in messages.json files. Moving them to GRD file will allow to share them with native components. Also simplified how resources are generated: 1. Now <if> is used to handle branded strings instead of generating grd file in build time 2. Removed resource_ids - ids are now specified in grd files. BUG=158995 Review URL: https://codereview.chromium.org/11275101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166068 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert 166003 - Move Chromoting strings to string_resources.grd and ↵phajdan.jr@chromium.org2012-11-0543-0/+16677
| | | | | | | | | | | | simplify remoting_resources target." This reverts commit 2daf8b6791c20c4de7acc1b0150f870ee812943d. Revert "Move Chromoting strings to string_resources.grd and simplify remoting_resources target." This reverts commit 40bfa7499754e4b474749fe1ec7fd5b0aa4717ce. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166021 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 166003 - Move Chromoting strings to string_resources.grd and simplify ↵sergeyu@chromium.org2012-11-0551-5596/+213
| | | | | | | | | | | | | | | | | | | | remoting_resources target. Previously all strings were in messages.json files. Moving them to GRD file will allow to share them with native components. Also simplified how resources are generated: 1. Now <if> is used to handle branded strings instead of generating grd file in build time 2. Removed resource_ids - ids are now specified in grd files. BUG=158995 Review URL: https://codereview.chromium.org/11275101 TBR=sergeyu@chromium.org Review URL: https://codereview.chromium.org/11365095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166013 0039d316-1c4b-4281-b951-d872f2087c98
* Move Chromoting strings to string_resources.grd and simplify ↵sergeyu@chromium.org2012-11-0594-16890/+5596
| | | | | | | | | | | | | | | | | remoting_resources target. Previously all strings were in messages.json files. Moving them to GRD file will allow to share them with native components. Also simplified how resources are generated: 1. Now <if> is used to handle branded strings instead of generating grd file in build time 2. Removed resource_ids - ids are now specified in grd files. BUG=158995 Review URL: https://codereview.chromium.org/11275101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166003 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 165041 (caused http://crbug.com/158995, which is apparently somewhatthakis@chromium.org2012-11-0590-5554/+16746
| | | | | | | | | | | | | | | | | | tricky to fix -- this can reland with the fix) - Move Chromoting strings to string_resources.grd. Previously all strings were in messages.json files. Moving them to GRD file will allow to share them with native components. Also added script that I used to convert translations - to make it easier to review this CL and just in case we need it again in the future. Review URL: https://chromiumcodereview.appspot.com/11150008 TBR=sergeyu@chromium.org Review URL: https://codereview.chromium.org/11312087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165953 0039d316-1c4b-4281-b951-d872f2087c98
* Added PAM configuration.jamiewalch@chromium.org2012-11-031-0/+8
| | | | | | | | | BUG=159037 Review URL: https://chromiumcodereview.appspot.com/11359043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165855 0039d316-1c4b-4281-b951-d872f2087c98
* Check CreateDIBSection() result in VideoFrameCapturerWin.wez@chromium.org2012-11-021-2/+12
| | | | | | | | | | | | This causes us to CHECK if framebuffer allocation fails, rather than crashing when we try to access the buffer's pixel data. BUG=157170 Review URL: https://chromiumcodereview.appspot.com/11365056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165776 0039d316-1c4b-4281-b951-d872f2087c98
* Don't use ScopedCOMInitializer in AudioCapturerWinsergeyu@chromium.org2012-11-023-6/+13
| | | | | | | | | | | COM needs to be initialized per-thread, AudioCapturerWin was using ScopedCOMInitializer. BUG=146392 Review URL: https://codereview.chromium.org/11369038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165746 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 165605 - Fix branding in chromoting string resources.hbono@chromium.org2012-11-027-160/+262
| | | | | | | | | | | | | | | | | When chromoting resources were converted from messages.json to .grd format incorrect branding was used. Beside that simplified how resources are generated: 1. Now <if> is used to handle branded strings instead of generating grd file in build time 2. Removed resource_ids - ids are now specified in grd files. BUG=158995 Review URL: https://chromiumcodereview.appspot.com/11275101 TBR=sergeyu@chromium.org Review URL: https://codereview.chromium.org/11359035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165611 0039d316-1c4b-4281-b951-d872f2087c98
* Fix branding in chromoting string resources.sergeyu@chromium.org2012-11-027-262/+160
| | | | | | | | | | | | | | When chromoting resources were converted from messages.json to .grd format incorrect branding was used. Beside that simplified how resources are generated: 1. Now <if> is used to handle branded strings instead of generating grd file in build time 2. Removed resource_ids - ids are now specified in grd files. BUG=158995 Review URL: https://chromiumcodereview.appspot.com/11275101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165605 0039d316-1c4b-4281-b951-d872f2087c98
* Implement resize-to-client for Windows hosts.wez@chromium.org2012-11-021-20/+139
| | | | | | | | | BUG=157900 Review URL: https://chromiumcodereview.appspot.com/11305020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165596 0039d316-1c4b-4281-b951-d872f2087c98
* Add executable bit to remoting/tools/win/chromoting-set-channel.bat to pass ↵tzik@chromium.org2012-11-021-0/+0
| | | | | | | | | | | permission check on buildbot. BUG=None TBR=garykac@chromium.org Review URL: https://codereview.chromium.org/11275118 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165590 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Handle a response status 0 for a list-hosts request more helpfully.simonmorris@chromium.org2012-11-021-1/+3
| | | | | | | | BUG=158786 Review URL: https://codereview.chromium.org/11360053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165578 0039d316-1c4b-4281-b951-d872f2087c98
* Calling SendSAS() from a service to make sure that Secure Attention Sequence ↵alexeypa@chromium.org2012-11-0211-34/+112
| | | | | | | | | | | can be injected even when UAC is disabled. BUG=158625 Review URL: https://chromiumcodereview.appspot.com/11369024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165565 0039d316-1c4b-4281-b951-d872f2087c98
* Don't invoke DesktopResizer::SetSize() if the size isn't changing.wez@chromium.org2012-11-012-20/+38
| | | | | | | | | | | | | | | | This avoids window flicker on platforms which re-render all windows when the display settings are set, even if they haven't actually changed, such as Windows. This CL incidentally renames MockDesktopResizer to FakeDesktopResizer in the ResizingHostObserver unit-test implementation. BUG=157900 Review URL: https://chromiumcodereview.appspot.com/11340002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165546 0039d316-1c4b-4281-b951-d872f2087c98
* Do not use GetNamedPipeClientProcessId() which is available starting from ↵alexeypa@chromium.org2012-11-011-3/+7
| | | | | | | | | | | Vista on Windows XP. BUG=158997 Review URL: https://chromiumcodereview.appspot.com/11358044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165543 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Script to switch release channels on Windows.garykac@chromium.org2012-11-011-0/+49
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11145028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165530 0039d316-1c4b-4281-b951-d872f2087c98
* remoting: Update calls froms RunAllPending() to RunUntilIdle().tfarina@chromium.org2012-11-019-43/+43
| | | | | | | | | | | BUG=131220 TEST=remoting_unittests R=sergeyu@chromium.org,wez@chromium.org Review URL: https://chromiumcodereview.appspot.com/11364031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165528 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid letterboxing when connecting to multi-monitor hosts in full-screen.wez@chromium.org2012-11-011-13/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | Scaling a multi-monitor desktop to fit a single-monitor client ("scale-to-fit") results in the desktop being letter-boxed, leaving much of the client area unused. In this case the client now prefers to scale to fit the smaller host dimension, and have the user pan to see other parts of the host desktop ("scale-and-pan"). Scale-and-pan is used only in full-screen mode, when the client dimensions match those of a client device monitor, and bump-scrolling can be used to pan around. Scale-and-pan will be used when less than 65% of the client area would be occupied by the desktop if we were to scale-to-fit. For example: C: 1280x800 H: 1280x1024 -> scale-to-fit C: 1280x800 H: (2x1280)x1024 -> scale-and-pan (horizontal) C: 1280x1024 H: 1600x1200 -> scale-to-fit C: 1600x1200 H: 1280x(2x1024) -> scale-and-pan (vertical) BUG=145709 Review URL: https://chromiumcodereview.appspot.com/11369023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165515 0039d316-1c4b-4281-b951-d872f2087c98
* Convert cursors captured on Windows to premultiplied alpha.wez@chromium.org2012-11-011-6/+15
| | | | | | | | | BUG=137112 Review URL: https://chromiumcodereview.appspot.com/11336007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165504 0039d316-1c4b-4281-b951-d872f2087c98
* Use correct thread for audio capturing and encoding.sergeyu@chromium.org2012-11-018-1/+15
| | | | | | | | | | Previously video capture thread was passed to AudioScheduler instead of the dedicated audio thread. Fixed ChromotingHost so that the correct thread is given to AudioScheduler. BUG=157992 Review URL: https://codereview.chromium.org/11260053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165426 0039d316-1c4b-4281-b951-d872f2087c98
* Don't colour visited links differently.jamiewalch@chromium.org2012-11-011-4/+0
| | | | | | | | | | | (As requested by UX) BUG=None Review URL: https://chromiumcodereview.appspot.com/11293032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165408 0039d316-1c4b-4281-b951-d872f2087c98
* Add net/base/test_data_directory.htoyoshim@chromium.org2012-11-012-2/+2
| | | | | | | | | | | | - move GetTestCertsDirectory() from net/base/certs_test_util BUG=157531 TEST=build all TBR=wtc@chromium.org Review URL: https://chromiumcodereview.appspot.com/11342034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165348 0039d316-1c4b-4281-b951-d872f2087c98
* Fix AudioCapturer implementation to read from audio pipe even when there are ↵sergeyu@chromium.org2012-11-017-182/+309
| | | | | | | | | | | | | | | | no active clients. Pulseaudio blocks playback when the host stops reading from the audio pipe. Previously the host was reading from the pipe only when there is an active client. Fixed the capturer to always read from the pipe, so that we don't halt playback when user disconnects. Also changed sampling rate to 48000 to avoid resampling in the host. BUG=153090 Review URL: https://codereview.chromium.org/11316010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165275 0039d316-1c4b-4281-b951-d872f2087c98
* Resize host desktop to match client dimensions.jamiewalch@chromium.org2012-10-312-13/+16
| | | | | | | | | | | | This allows a remote user to make best use of their desktop, without needing either to scroll around it or to scale it down to fit their client device. BUG=110212 Review URL: https://chromiumcodereview.appspot.com/11336024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165086 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Stop the Linux policy watcher treating a failure to read policiessimonmorris@chromium.org2012-10-311-10/+15
| | | | | | | | | | | in the same way as reading the default values of all polices. BUG=155381 Review URL: https://chromiumcodereview.appspot.com/11338044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165084 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Stop the Windows host configurer trying to use an empty auth code.simonmorris@chromium.org2012-10-311-0/+3
| | | | | | | | | BUG=158611 Review URL: https://chromiumcodereview.appspot.com/11344044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165080 0039d316-1c4b-4281-b951-d872f2087c98
* Remove before-unload prompt from Me2Me client mode.wez@chromium.org2012-10-311-3/+7
| | | | | | | | | BUG=158407 Review URL: https://chromiumcodereview.appspot.com/11336003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165075 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Make the AuthCodeGetter component of the Windows host configurersimonmorris@chromium.org2012-10-302-8/+4
| | | | | | | | | | | use ScopedComPtr correctly. BUG=158611 Review URL: https://chromiumcodereview.appspot.com/11343050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165061 0039d316-1c4b-4281-b951-d872f2087c98
* Move Chromoting strings to string_resources.grd.sergeyu@chromium.org2012-10-3090-16746/+5554
| | | | | | | | | | | | Previously all strings were in messages.json files. Moving them to GRD file will allow to share them with native components. Also added script that I used to convert translations - to make it easier to review this CL and just in case we need it again in the future. Review URL: https://chromiumcodereview.appspot.com/11150008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165041 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Add a username policy, and implement it for the Linux Me2Me host.simonmorris@chromium.org2012-10-307-15/+81
| | | | | | | | | BUG=158080 Review URL: https://chromiumcodereview.appspot.com/11341032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165036 0039d316-1c4b-4281-b951-d872f2087c98
* 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