summaryrefslogtreecommitdiffstats
path: root/remoting/host
Commit message (Collapse)AuthorAgeFilesLines
* Move app/key* to ui/base/keycodes/*ben@chromium.org2011-01-132-2/+2
| | | | | | | | | | BUG=none TEST=none TBR=brettw Review URL: http://codereview.chromium.org/6246001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71330 0039d316-1c4b-4281-b951-d872f2087c98
* Move base/thread.h to base/threading, fix up callers to use the new location.brettw@chromium.org2011-01-014-4/+4
| | | | | | | | TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6028009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70345 0039d316-1c4b-4281-b951-d872f2087c98
* Chromoting protocol layers to receive and send login messageshclam@chromium.org2010-12-232-0/+8
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/6030007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70036 0039d316-1c4b-4281-b951-d872f2087c98
* HostConfig interface updates.sergeyu@chromium.org2010-12-1611-96/+40
| | | | | | | | | | | | | | | - Simplified mutation semantic: Update() replaced with Save(). Set methods can be called at any time. - JsonHostConfig now inherits from InMemoryHostConfig to avoid code duplication. - Added kHostEnabledConfigPath. BUG=None TEST=Unittests. Review URL: http://codereview.chromium.org/5738008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69454 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed memleak in HeartbeatSenderTest_ProcessResponse.sergeyu@chromium.org2010-12-161-2/+2
| | | | | | | | | BUG=66808 TEST=Unittests Review URL: http://codereview.chromium.org/5761003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69448 0039d316-1c4b-4281-b951-d872f2087c98
* Pass RefCounted objects as scoped_refptr to NewRunnableMethod.willchan@chromium.org2010-12-141-3/+3
| | | | | | | | | BUG=28083 TEST=none Review URL: http://codereview.chromium.org/5740005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69183 0039d316-1c4b-4281-b951-d872f2087c98
* Use heartbeat interval received from the bot.sergeyu@chromium.org2010-12-143-26/+96
| | | | | | | | | BUG=None TEST=Unittests Review URL: http://codereview.chromium.org/5510006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69096 0039d316-1c4b-4281-b951-d872f2087c98
* Simplified frame rate control in the chromoting host.sergeyu@chromium.org2010-12-093-201/+97
| | | | | | | | | | | | | | | | Insted of keeping semi-fixed frame rate, now capturing rate is controlled by how fast we can send data to the client. Capturing of frame n is started only after frame n-2 is sent (while n-1 is being encoded). This guarantees that we don't clog the video channel buffers, and that we start capturing only if we know that the frame will not need to wait for too long in the buffer. TEST=None BUG=None Review URL: http://codereview.chromium.org/5634002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68688 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ChromotingClientMessagegarykac@chromium.org2010-12-082-5/+5
| | | | | | | | | BUG=None TEST=Remoting unittests Review URL: http://codereview.chromium.org/5559011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68627 0039d316-1c4b-4281-b951-d872f2087c98
* Rename SessionManager to ScreenRecorderhclam@chromium.org2010-12-065-100/+93
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/5118002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68396 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor ZLib and Verbatim encoders.sergeyu@chromium.org2010-12-061-4/+3
| | | | | | | | | | | Added EncoderRowBased that implements encoding for both ZLib and Verbatim. BUG=None TEST=None Review URL: http://codereview.chromium.org/5382008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68394 0039d316-1c4b-4281-b951-d872f2087c98
* Move move classes to the remoting::protocol namespace. Minor cleanups.sergeyu@chromium.org2010-12-026-19/+29
| | | | | | | | | BUG=None TEST=compiles, unittests Review URL: http://codereview.chromium.org/5068001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68056 0039d316-1c4b-4281-b951-d872f2087c98
* Fix threading problem caught by DCHECKs in ChromotingHosthclam@chromium.org2010-11-301-7/+16
| | | | | | | | | | | Post tasks to the right message loop. BUG=None TEST=None Review URL: http://codereview.chromium.org/5096009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67769 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 67662 - FBTF: Remove unneeded headers from base/ (part 10)thestig@chromium.org2010-11-304-3/+2
| | | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5139006 TBR=thestig@chromium.org Review URL: http://codereview.chromium.org/5270010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67674 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Remove unneeded headers from base/ (part 10)thestig@chromium.org2010-11-304-2/+3
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5139006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67662 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up client events to new protocol stubs.sergeyu@chromium.org2010-11-293-187/+110
| | | | | | | | | | | | Patch by garykac@chromium.com. Original review: http://codereview.chromium.org/5062001 BUG=none TEST=none Review URL: http://codereview.chromium.org/5345007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67594 0039d316-1c4b-4281-b951-d872f2087c98
* Begin adding mutual authentication into the SessionManager::connect() call.ajwong@chromium.org2010-11-245-15/+60
| | | | | | | | | | | | This CL mainly changes APIs and stubs out functionality needed to actually create the correct auth token stanzas. BUG=None TEST=compiles. Review URL: http://codereview.chromium.org/4941001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67316 0039d316-1c4b-4281-b951-d872f2087c98
* Use VP8 over PseudoTCP by default.sergeyu@chromium.org2010-11-2314-77/+160
| | | | | | | | | | | Added option in simple_host to choose video codec. Removed ugly ifdefs from chromoting_host.cc. BUG=None TEST=Unittests Review URL: http://codereview.chromium.org/5298001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67164 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ThreadChecker to use Locks and not use scoped_ptr.willchan@chromium.org2010-11-211-0/+2
| | | | | | | | | | | | | | | It needs to synchronize its checks, since in order to assert correctly, it needs to make sure the thread id is synchronized on all threads. It doesn't need scoped_ptr. It was trying to use NULL to catch invalid thread ids. 0 is already assumed to be invalid (see base::Thread's use). Eliminating scoped_ptr fixes a valgrind/heapcheck issue where they don't follow LazyInstance objects' member pointers. So they think the ThreadChecker's member variable is leaked, even though the global object still has a pointer to it. Removing the scoped_ptr.h caused a bunch of other lame files to fail to compile. I had to fix those places. #include what you use please :( TBR=levin (I want to green the memory bots) BUG=none TEST=none Review URL: http://codereview.chromium.org/5180006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66915 0039d316-1c4b-4281-b951-d872f2087c98
* Use VideoStub interface on the host side.sergeyu@chromium.org2010-11-192-5/+11
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/5232004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66841 0039d316-1c4b-4281-b951-d872f2087c98
* Fix up mac capturerdmaclach@chromium.org2010-11-192-1/+2
| | | | | | | | | | | Make it so that it sets the pixel type correctly, and initializes the video buffers properly. BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/5159004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66834 0039d316-1c4b-4281-b951-d872f2087c98
* Fix GDI capturer initialization.sergeyu@chromium.org2010-11-191-0/+1
| | | | | | | | | BUG=None TEST=GDI capturer works. Review URL: http://codereview.chromium.org/5173007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66802 0039d316-1c4b-4281-b951-d872f2087c98
* Remove capture thread in Chromoting hosthclam@chromium.org2010-11-185-25/+17
| | | | | | | | | | Move operations from capture thread to main thread. Also move operations in SessionManager on main thread to network thread. BUG=None TEST=None Review URL: http://codereview.chromium.org/5123002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66696 0039d316-1c4b-4281-b951-d872f2087c98
* Move creation of capturer, input stub into ChromotingHosthclam@chromium.org2010-11-173-49/+57
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/5065001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66390 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce a fake HostStub since there's no need to handle it nowhclam@chromium.org2010-11-174-4/+58
| | | | | | | | | | | Also changed ChormotingHost to use it. BUG=None TEST=None Review URL: http://codereview.chromium.org/4975003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66389 0039d316-1c4b-4281-b951-d872f2087c98
* Inject MessageLoop into Capturerhclam@chromium.org2010-11-1715-23/+37
| | | | | | | | | | | Simple patch to juse inject the message loop. BUG=None TEST=None Review URL: http://codereview.chromium.org/4971003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66387 0039d316-1c4b-4281-b951-d872f2087c98
* Implement input stub in the host side for chromotinghclam@chromium.org2010-11-1613-194/+213
| | | | | | | | | | | Implement InputStub for the host. BUG=None TEST=None Review URL: http://codereview.chromium.org/4726003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66314 0039d316-1c4b-4281-b951-d872f2087c98
* Reapply of r65413. Add linux executor support for Chromoting host.ajwong@chromium.org2010-11-113-4/+404
| | | | | | | | | | | Original CL: http://codereview.chromium.org/4058002 See the Original CL and revision for a full description. All bots have been reverified to have the XTest dependency added. BUG=None TEST=None git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65852 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Windows Chromoting host by setting pixel format.garykac@google.com2010-11-111-0/+1
| | | | | | | | | BUG=none TEST=build/test windows connection Review URL: http://codereview.chromium.org/4774001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65752 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Reapply of r65413. XTest dependencies added to _chroots_ on linux bots."ajwong@chromium.org2010-11-103-404/+4
| | | | | | TBR=jcivelli git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65712 0039d316-1c4b-4281-b951-d872f2087c98
* Reapply of r65413. XTest dependencies added to _chroots_ on linux bots.ajwong@chromium.org2010-11-103-4/+404
| | | | | | | | | | | Original CL: http://codereview.chromium.org/4058002 BUG=None TEST=Was already passing try bots, etc. Now we're checking waterfall buildbot configs. Review URL: http://codereview.chromium.org/4772001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65709 0039d316-1c4b-4281-b951-d872f2087c98
* Add VideoPacket struct for video packets. Refactor Decode interface to use it.sergeyu@chromium.org2010-11-099-37/+30
| | | | | | | | | | Various cleanups. BUG=None TEST=Unittests. Review URL: http://codereview.chromium.org/4476003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65590 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build breakhclam@chromium.org2010-11-091-1/+1
| | | | | | | | | | | | Fix gyp merge issue. TBR=ajwong BUG=None TEST=None Review URL: http://codereview.chromium.org/4704004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65474 0039d316-1c4b-4281-b951-d872f2087c98
* Implementation of InputStub for chromotinghclam@chromium.org2010-11-091-1/+9
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/4533001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65473 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Reapply of r65413. XTest dependencies added to linux bots."ajwong@chromium.org2010-11-093-404/+4
| | | | | | | | This reverts the reapply in r65467. TBR=suzhe git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65470 0039d316-1c4b-4281-b951-d872f2087c98
* Use the XTest extension to execute mouse and keyboard events.ajwong@chromium.org2010-11-093-4/+404
| | | | | | | | | | | | | | | | | Not all keyboard codes are current supported. The key events still don't register all the time on the remote end. I think it's an input focus problem. Will need further debugging. Also, when used with CapturerLinux, this double opens the X display. This needs to be factored out. BUG=none TEST=connects, and key presses transmit. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=65413 Review URL: http://codereview.chromium.org/4058002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65467 0039d316-1c4b-4281-b951-d872f2087c98
* Chromoting: Rename ChromotocolConfig -> SessionConfiggarykac@chromium.org2010-11-082-14/+13
| | | | | | | | | BUG=none TEST=build chrome, chromoting Review URL: http://codereview.chromium.org/4446005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65451 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Use the XTest extension to execute mouse and keyboard events."ajwong@chromium.org2010-11-083-404/+4
| | | | | | | | This reverts commit r65413. TBR=hclam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65414 0039d316-1c4b-4281-b951-d872f2087c98
* Use the XTest extension to execute mouse and keyboard events.ajwong@chromium.org2010-11-083-4/+404
| | | | | | | | | | | | | | | Not all keyboard codes are current supported. The key events still don't register all the time on the remote end. I think it's an input focus problem. Will need further debugging. Also, when used with CapturerLinux, this double opens the X display. This needs to be factored out. BUG=none TEST=connects, and key presses transmit. Review URL: http://codereview.chromium.org/4058002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65413 0039d316-1c4b-4281-b951-d872f2087c98
* Add DEPS files in remoting subdirectories.sergeyu@chromium.org2010-11-051-0/+7
| | | | | | | | | | | | | This is to avoid unwanted dependencies between remoting modules. Also fixed libjingle includes to use full path, and removed some old includes. TEST=checkdeps BUG=None Review URL: http://codereview.chromium.org/4562002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65251 0039d316-1c4b-4281-b951-d872f2087c98
* Moving/Rename host/ClientConnection.{h,cc} -> protocol/ConnectionToClient.{h,cc}ajwong@chromium.org2010-11-049-488/+114
| | | | | | | | | | | Also move the unittest. BUG=None TEST=compiles Review URL: http://codereview.chromium.org/4352002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65009 0039d316-1c4b-4281-b951-d872f2087c98
* Move protocol classes to the remoting::protocol namespacesergeyu@chromium.org2010-11-049-37/+54
| | | | | | | | | BUG=None TEST=compiles Review URL: http://codereview.chromium.org/4233005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65006 0039d316-1c4b-4281-b951-d872f2087c98
* Rename classes for Chromoting:garykac@chromium.org2010-11-035-74/+74
| | | | | | | | | | | | ChromotocolServer -> protocol::SessionManager ChromotocolConnection -> protocol::Session BUG=none TEST=compiles + make chromoting connection Review URL: http://codereview.chromium.org/4313001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64971 0039d316-1c4b-4281-b951-d872f2087c98
* Add VideoReader and VideoWriter interfaces.sergeyu@chromium.org2010-11-036-43/+45
| | | | | | | | | | | Implemented VideoReader and VideoWriter for RTP and Protobuf. BUG=53986 TEST=None Review URL: http://codereview.chromium.org/4229003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64878 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanups in the video encoding decoding code. Reenable VP8.sergeyu@chromium.org2010-11-0215-65/+112
| | | | | | | | | | | | | | | 1. Moved video-related protobuf messages from event.proto to video.proto. Removed those that we don't need anymore 2. Fixed naming for enums and some types. 3. Reenabled VP8. 4. Proper RGB-YUV converter for VP8 encoder. 5. Changed the capturer_fake to show more meaningful picture. BUG=57374 TEST=unittests Review URL: http://codereview.chromium.org/4136010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64700 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 64672 - Cleanups in the video encoding decoding code. Reenable VP8.sergeyu@chromium.org2010-11-0115-112/+65
| | | | | | | | | | | | | | | | | | 1. Moved video-related protobuf messages from event.proto to video.proto. Removed those that we don't need anymore 2. Fixed naming for enums and some types. 3. Reenabled VP8. 4. Proper RGB-YUV converter for VP8 encoder. 5. Changed the capturer_fake to show more meaningful picture. BUG=57374 TEST=unittests Review URL: http://codereview.chromium.org/4136010 TBR=sergeyu@chromium.org Review URL: http://codereview.chromium.org/4255001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64677 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanups in the video encoding decoding code. Reenable VP8.sergeyu@chromium.org2010-11-0115-65/+112
| | | | | | | | | | | | | | | 1. Moved video-related protobuf messages from event.proto to video.proto. Removed those that we don't need anymore 2. Fixed naming for enums and some types. 3. Reenabled VP8. 4. Proper RGB-YUV converter for VP8 encoder. 5. Changed the capturer_fake to show more meaningful picture. BUG=57374 TEST=unittests Review URL: http://codereview.chromium.org/4136010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64672 0039d316-1c4b-4281-b951-d872f2087c98
* Convert implicit scoped_refptr constructor calls to explicit ones, part 1thakis@chromium.org2010-11-013-8/+8
| | | | | | | | | | | This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2776043/ . I manually fixed a few rough spots of the rewriter output (doh1-3) and fixed all presubmit errors. BUG=28083 TEST=None Review URL: http://codereview.chromium.org/4192012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64573 0039d316-1c4b-4281-b951-d872f2087c98
* Fix mac compilation issuehclam@chromium.org2010-10-281-1/+2
| | | | | | | | TBR=ncarter Review URL: http://codereview.chromium.org/4135010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64320 0039d316-1c4b-4281-b951-d872f2087c98
* HostMessageDispatcher to parse control messageshclam@chromium.org2010-10-286-9/+10
| | | | | | | | | | | | Changed MessageReader and MessageDecoder to support parsing in HostMessageDispatcher. BUG=None TEST=None Review URL: http://codereview.chromium.org/4017002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64283 0039d316-1c4b-4281-b951-d872f2087c98