summaryrefslogtreecommitdiffstats
path: root/remoting/protocol
Commit message (Collapse)AuthorAgeFilesLines
* Handle error in BufferedStreamWriter and friendshclam@chromium.org2010-11-112-2/+29
| | | | | | | | | | | Sets the closed flag to true when an error is encountered in the socket. BUG=None TEST=None Review URL: http://codereview.chromium.org/4705002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65859 0039d316-1c4b-4281-b951-d872f2087c98
* Add VideoPacket struct for video packets. Refactor Decode interface to use it.sergeyu@chromium.org2010-11-0914-53/+62
| | | | | | | | | | 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
* Implementation of InputStub for chromotinghclam@chromium.org2010-11-0910-28/+221
| | | | | | | | | 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
* Chromoting: Rename ChromotocolConfig -> SessionConfiggarykac@chromium.org2010-11-0817-151/+137
| | | | | | | | | 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
* Add DEPS files in remoting subdirectories.sergeyu@chromium.org2010-11-053-2/+6
| | | | | | | | | | | | | 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
* Removed dependence on remoting/client from remoting/protocol.sergeyu@chromium.org2010-11-053-21/+28
| | | | | | | | | | Reenable commented targets in remoting.gyp BUG=None TEST=compiles Review URL: http://codereview.chromium.org/4558001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65248 0039d316-1c4b-4281-b951-d872f2087c98
* Implementation of ClientStubImplhclam@chromium.org2010-11-053-3/+90
| | | | | | | | | | | Implementing ClientStubImpl using socket and BufferedSocketWriter. BUG=none TEST=none Review URL: http://codereview.chromium.org/4440001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65234 0039d316-1c4b-4281-b951-d872f2087c98
* Chromoting: Rename HostConnection to ConnectionToHostgarykac@chromium.org2010-11-043-0/+348
| | | | | | | | | BUG=none TEST=build chrome, chromoting Review URL: http://codereview.chromium.org/4457002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65121 0039d316-1c4b-4281-b951-d872f2087c98
* Moving/Rename host/ClientConnection.{h,cc} -> protocol/ConnectionToClient.{h,cc}ajwong@chromium.org2010-11-044-0/+405
| | | | | | | | | | | 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-0424-11/+49
| | | | | | | | | 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-0325-526/+588
| | | | | | | | | | | | 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-0323-26/+489
| | | | | | | | | | | 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
* Stub classes for Chromoting and use them in HostMessageDispatcher.ajwong@chromium.org2010-11-027-108/+173
| | | | | | | | | | | (Landing http://http://codereview.chromium.org/4167011 for hclam) BUG=None TEST=None Review URL: http://codereview.chromium.org/4336001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64818 0039d316-1c4b-4281-b951-d872f2087c98
* Convert implicit scoped_refptr constructor calls to explicit ones, part 2thakis@chromium.org2010-11-023-4/+5
| | | | | | | | | | | | This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2826041 I then did quite a bit of manual editing to fix style issues. BUG=28083 TEST=None Review URL: http://codereview.chromium.org/4291001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64798 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanups in the video encoding decoding code. Reenable VP8.sergeyu@chromium.org2010-11-022-28/+8
| | | | | | | | | | | | | | | 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-012-8/+28
| | | | | | | | | | | | | | | | | | 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-012-28/+8
| | | | | | | | | | | | | | | 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-016-21/+22
| | | | | | | | | | | 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
* HostMessageDispatcher to parse control messageshclam@chromium.org2010-10-2813-410/+516
| | | | | | | | | | | | 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
* Cleanups in the chromotocol code.sergeyu@chromium.org2010-10-2713-331/+387
| | | | | | | | | | | | | | | 1) Renamed ChromotingServer to ChromotocolServer. 2) Renamed ChromotingConnection to ChromotocolConnection. 3) Added documentation for ChromotocolServer. 4) Fixed methods names in ChromtocolConnection. 5) Removed some unncessary references to media/*. BUG=None TEST=None Review URL: http://codereview.chromium.org/4105002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64113 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Hopefully, the last ctor patch.erg@google.com2010-10-272-2/+8
| | | | | | | | | | | With this final patch, the chrome target compiles without my new warnings. BUG=none TEST=compiles Review URL: http://codereview.chromium.org/4099006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64080 0039d316-1c4b-4281-b951-d872f2087c98
* Add asserts for timeouts in JingleChromotingConnectionTest.sergeyu@chromium.org2010-10-261-8/+12
| | | | | | | | | BUG=57832 TEST=Unittests Review URL: http://codereview.chromium.org/3606014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63911 0039d316-1c4b-4281-b951-d872f2087c98
* Added control channel in ChromotingConnection. Moved channelsergeyu@chromium.org2010-10-267-57/+139
| | | | | | | | | | initialization to OnInitiate() in JingleChromotingConnection. BUG=None TEST=Unittests. Review URL: http://codereview.chromium.org/4055002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63908 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 63809 - Remove TSan supporessions on windows for remoting_unittests.sergeyu@chromium.org2010-10-261-12/+8
| | | | | | | | | | | | BUG=57832 TEST=None Review URL: http://codereview.chromium.org/3606014 TBR=sergeyu@chromium.org Review URL: http://codereview.chromium.org/4138004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63828 0039d316-1c4b-4281-b951-d872f2087c98
* Remove TSan supporessions on windows for remoting_unittests.sergeyu@chromium.org2010-10-261-8/+12
| | | | | | | | | BUG=57832 TEST=None Review URL: http://codereview.chromium.org/3606014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63809 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented chromotocol configuration negotiation.sergeyu@chromium.org2010-10-2417-120/+901
| | | | | | | | | | Renamed "events" to "event". BUG=None TEST=None Review URL: http://codereview.chromium.org/3988002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63693 0039d316-1c4b-4281-b951-d872f2087c98
* Simple RTP reader/writer.sergeyu@chromium.org2010-10-2012-142/+599
| | | | | | | | | | | This is an implementation of simple RTP reader and writer. It still lacks proper support of VP8 payload header. Will implement it in another CL. BUG=None TEST=None Review URL: http://codereview.chromium.org/3829007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63294 0039d316-1c4b-4281-b951-d872f2087c98
* HostMessageDispatcher to dispatch messages received on a chromoting connectionhclam@chromium.org2010-10-195-1/+159
| | | | | | | | | | | Adding HostMessageDispatcher to be used by ChromotingHost. BUG=None TEST=None Review URL: http://codereview.chromium.org/3852002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63111 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Monster ctor patch after changing heuristics in clang plugin.erg@google.com2010-10-183-5/+15
| | | | | | | | | | | (Only 916k this time off Debug Linux .a files) BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3814013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62967 0039d316-1c4b-4281-b951-d872f2087c98
* Move chromotocol.proto to remoting/protocolhclam@chromium.org2010-10-182-2/+3
| | | | | | | | | | | Move the proto file and split it into multiple smaller proto files. BUG=None TEST=None Review URL: http://codereview.chromium.org/3808002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62965 0039d316-1c4b-4281-b951-d872f2087c98
* Remove old tunneling code from remoting/jingle_glue.sergeyu@chromium.org2010-10-141-15/+0
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/3574014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62489 0039d316-1c4b-4281-b951-d872f2087c98
* Use new Chromotocol code in host andclient.sergeyu@chromium.org2010-10-0616-18/+1140
| | | | | | | | | | | | | | 1. ProtocolDecoder renamed to MessagesDecoder and moved to remoting/protocol. 2. base/protocol_util.[h|cc] split into base/util.[h|cc] and protocol/util.[h|cc]. 3. Added StreamReader and StreamWriter classes for events and video channels. 4. Client and host changed to use the new protocol code. BUG=None TEST=Unittests Review URL: http://codereview.chromium.org/3595012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61723 0039d316-1c4b-4281-b951-d872f2087c98
* Use TestTimeouts in JingleChromotingConnectionTestsergeyu@chromium.org2010-10-061-11/+10
| | | | | | | | | | Previous review for this code: http://codereview.chromium.org/3544008 BUG=None TEST=unittests. Review URL: http://codereview.chromium.org/3598011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61687 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Continue fixing nits found by my automated source scanner.erg@google.com2010-10-052-0/+3
| | | | | | | | | | | (~1.3 megs off Debug linux .a files) BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3556013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61587 0039d316-1c4b-4281-b951-d872f2087c98
* Fix races in JingleChromotingConnectionTest.sergeyu@chromium.org2010-10-051-3/+3
| | | | | | | | | BUG=57692 TEST=remoting_unittests under TSan. Review URL: http://codereview.chromium.org/3541010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61469 0039d316-1c4b-4281-b951-d872f2087c98
* Fix flakiness in JingleChromotingConnectionTestsergeyu@chromium.org2010-10-022-4/+12
| | | | | | | | TEST=remoting_unittests BUG=None TBR=hclam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61314 0039d316-1c4b-4281-b951-d872f2087c98
* Disable TestVideoRtpChannel of remoting_unittests because of flakinesshclam@chromium.org2010-10-011-1/+3
| | | | | | | | | | | TBR=sergeyu BUG=None TEST=None Review URL: http://codereview.chromium.org/3555009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61260 0039d316-1c4b-4281-b951-d872f2087c98
* Unittests for chromotocol code.sergeyu@chromium.org2010-10-016-8/+759
| | | | | | | | | BUG=53986 TEST=Unittests FTW! Review URL: http://codereview.chromium.org/3407007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61228 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented basic support Chromotocol connection.sergeyu@chromium.org2010-09-287-0/+1138
New code supports multiple PseudoTCP and UDP channels. Client and host still use old JjngleChannel for connection. BUG=53986 TEST=None Review URL: http://codereview.chromium.org/3319021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60842 0039d316-1c4b-4281-b951-d872f2087c98