summaryrefslogtreecommitdiffstats
path: root/remoting
Commit message (Collapse)AuthorAgeFilesLines
* Refactor the client code for the X11 version.garykac@google.com2010-07-2028-638/+710
| | | | | | | | | | | | | Make ChromotingViews responsible for initializing themselves. Move all x11-related code into X11View. Create InputCapturer class manage client input capture. BUG=none TEST=ran Win host + X11 client Review URL: http://codereview.chromium.org/2861047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52973 0039d316-1c4b-4281-b951-d872f2087c98
* Reapply r51857 to start building chromoting plugin. Update for ppapi changes.ajwong@chromium.org2010-07-1610-390/+332
| | | | | | | | | | | | | | This should work now after the ppapi roll to r164 that fixes the -fvisibility=hidden being removed in the linux shlib build. Original Review here: http://codereview.chromium.org/2858037 BUG=none TEST=try bots + local run of PPAPITest with a shared_library build. Review URL: http://codereview.chromium.org/3038001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52658 0039d316-1c4b-4281-b951-d872f2087c98
* Changing UpdateStreamPacket protobuf definition for chromotinghclam@chromium.org2010-07-1518-140/+253
| | | | | | | | | This code also changes the API for encoder and ClientConnection to eliminate one less copy. Review URL: http://codereview.chromium.org/2963003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52561 0039d316-1c4b-4281-b951-d872f2087c98
* Added RSA key generator for register_host.pysergeyu@chromium.org2010-07-147-19/+93
| | | | | | | | | TEST=None BUG=None Review URL: http://codereview.chromium.org/2958001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52406 0039d316-1c4b-4281-b951-d872f2087c98
* Update Chrome to pull latest PPAPI with new uses of point and size.brettw@chromium.org2010-07-092-7/+7
| | | | | | | | | | | This also pulls in the renamed enums from Darin's patch http://codereview.chromium.org/2900003 TEST=covered by unit tests BUG=none Review URL: http://codereview.chromium.org/2925007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52010 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r51857 "Integrating back into using the external ppapi/cpp wrappers."ajwong@chromium.org2010-07-0810-329/+390
| | | | | | | | For some reason, this looks like it breaks all PPAPI ui tests on linux. TBR: tonyg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51885 0039d316-1c4b-4281-b951-d872f2087c98
* Integrating back into using the external ppapi/cpp wrappers.ajwong@chromium.org2010-07-0810-390/+329
| | | | | | | | | | | This should bring us close to Gary's original npapi code. BUG=none TEST=can connect to simple host Review URL: http://codereview.chromium.org/2858037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51857 0039d316-1c4b-4281-b951-d872f2087c98
* zlib decompression for chromotinghclam@chromium.org2010-07-079-54/+322
| | | | | | | | | | | | Using zlib for decompression. Also revised the API and usage of zlib for compression. TEST=none BUG=none Review URL: http://codereview.chromium.org/2815043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51785 0039d316-1c4b-4281-b951-d872f2087c98
* Fix CapturerFake for Chromotinghclam@chromium.org2010-07-032-0/+2
| | | | | | | | | | | CapturerFake doesn't report the dirty rect. Hence the encoder can't encode it correctly. TBR=dmaclach Review URL: http://codereview.chromium.org/2853029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51580 0039d316-1c4b-4281-b951-d872f2087c98
* Re-order host SessionManager code to group by thread. This makes the flow of ↵garykac@google.com2010-07-022-165/+187
| | | | | | | | | | | | | control slightly easier to follow. BUG=none TEST=unittests Review URL: http://codereview.chromium.org/2886013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51570 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes leaks in remote_unittest.hbono@chromium.org2010-07-021-15/+15
| | | | | | | | | | This change just replaces pointers used in remote_unittest with scoped_ptr<> to delete the memory used in the test, and replaces scoped_ptr<> in differ.h with scoped_array<> to avoid mismatched deletes. BUG=46678 TEST=make valgrind bots green. Review URL: http://codereview.chromium.org/2832043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51493 0039d316-1c4b-4281-b951-d872f2087c98
* Fix an incorrect use of scoped_ptr.stuartmorgan@chromium.org2010-07-011-1/+1
| | | | | | | | | BUG=None TEST=Fewer leaks on the ChromeOS valgrind bots. Review URL: http://codereview.chromium.org/2867039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51463 0039d316-1c4b-4281-b951-d872f2087c98
* Start Chromoting Host Process in Chrome Servicehclam@chromium.org2010-07-011-0/+2
| | | | | | | | | | | | Enable chromoting host process if chrome is started with --type=service --enable-chromoting BUG=none TEST=chrome --type=service --enable-chromoting Review URL: http://codereview.chromium.org/2813038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51393 0039d316-1c4b-4281-b951-d872f2087c98
* Zlib compressor for Chromotinghclam@chromium.org2010-07-015-3/+214
| | | | | | | | A simple implementation of compressor using zlib. Review URL: http://codereview.chromium.org/2841032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51386 0039d316-1c4b-4281-b951-d872f2087c98
* Revamp capturer to clean up the interface, and to keep data as atomic as ↵dmaclach@chromium.org2010-07-0122-490/+534
| | | | | | | | | | possible when making calls across threads. TEST=build remoting BUG=none Review URL: http://codereview.chromium.org/2805025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51363 0039d316-1c4b-4281-b951-d872f2087c98
* Fix up thread types.dmaclach@chromium.org2010-06-302-4/+5
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2863035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51306 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed up some comments while I was looking at these files.dmaclach@chromium.org2010-06-303-6/+6
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2818037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51303 0039d316-1c4b-4281-b951-d872f2087c98
* Get remoting.gyp depending only on the bits of gfx we need to depend on.dmaclach@chromium.org2010-06-301-2/+7
| | | | | | | | | BUG=none TEST=build Review URL: http://codereview.chromium.org/2849031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51268 0039d316-1c4b-4281-b951-d872f2087c98
* Fix typo in remoting.gypgarykac@google.com2010-06-291-1/+1
| | | | | | | | BUG=none TEST=rebuilt chromoting proj files Review URL: http://codereview.chromium.org/2832033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51142 0039d316-1c4b-4281-b951-d872f2087c98
* Add flag to decoder class to flip the image vertically since that is requiredgarykac@google.com2010-06-282-2/+14
| | | | | | | | | | | on some platforms. BUG=none TEST=run code, verify that screen is upside-up. Review URL: http://codereview.chromium.org/2878009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51052 0039d316-1c4b-4281-b951-d872f2087c98
* Fix thread usage in chromoting hosthclam@chromium.org2010-06-2813-164/+408
| | | | | | | | | | | | | | There are several things done in this patch: 1. Isloate thread start and stop to ChromotingHostContext 2. SessionManager now doesn't own capturer and encoder, ownership moved to ChromotingHost 3. Fix up the sequence of actions when ChromotingHost shuts down TEST=remoting_unittests BUG=none Review URL: http://codereview.chromium.org/2829018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51050 0039d316-1c4b-4281-b951-d872f2087c98
* remoting: Use GetBytesPerPixel util function in one more place.tfarina@chromium.org2010-06-281-14/+2
| | | | | | | | | | | Note: This fix another TODO for hclam, missed in the other patch. BUG=None TEST=trybots Review URL: http://codereview.chromium.org/2863028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51018 0039d316-1c4b-4281-b951-d872f2087c98
* Fixs mismatched delete.sky@chromium.org2010-06-281-2/+2
| | | | | | | | | | BUG=none TEST=none TBR=garykac Review URL: http://codereview.chromium.org/2876013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50992 0039d316-1c4b-4281-b951-d872f2087c98
* Add in support for internal pepper plugins into the PepperPluginRegistry and ↵ajwong@chromium.org2010-06-285-60/+329
| | | | | | | | | | | | | | | pepper::PluginModule. Used Chromoting's plugin as the first attempt at using this interface. BUG=none TEST=compiles Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50667 Review URL: http://codereview.chromium.org/2843018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50976 0039d316-1c4b-4281-b951-d872f2087c98
* Fork a copy of all the notifier code in chrome/common/net/notifier that we ↵ajwong@chromium.org2010-06-2811-23/+1245
| | | | | | | | | | | | | | depend on. This breaks a cycle int the build dependencies so that we can keep moving forward on Chromoting implementation. BUG=none TEST=compiles on mac/linux/win Review URL: http://codereview.chromium.org/2843026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50959 0039d316-1c4b-4281-b951-d872f2087c98
* remoting: Extract the utility to get the BytesPerPixel from PixelFormat into ↵tfarina@chromium.org2010-06-263-14/+21
| | | | | | | | | | | | | a function. Note: That was a TODO for hclam. BUG=None TEST=trybots Review URL: http://codereview.chromium.org/2865019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50928 0039d316-1c4b-4281-b951-d872f2087c98
* Chromium side changes to use PP_CompletionCallback as the Flush callback.darin@chromium.org2010-06-251-2/+5
| | | | | | | | | | R=brettw BUG=47461 TEST=none Review URL: http://codereview.chromium.org/2852024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50851 0039d316-1c4b-4281-b951-d872f2087c98
* remoting: Fix invalid use of std::string used in the global scope.tfarina@chromium.org2010-06-252-9/+7
| | | | | | | | | | | | We shouldn't declare global variables of class types, because they are forbidden by the style guide. See http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Static_and_Global_Variables#Static_and_Global_Variables for futher information. BUG=None TEST=trybots Review URL: http://codereview.chromium.org/2873021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50824 0039d316-1c4b-4281-b951-d872f2087c98
* Removed dependency on chrome/common.sergeyu@chromium.org2010-06-253-14/+32
| | | | | | | | | | | | JSONReader and JSONWriter are used to read/write json file instead of JsonPrefStore. BUG=none TEST=unittests Review URL: http://codereview.chromium.org/2819026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50809 0039d316-1c4b-4281-b951-d872f2087c98
* Fix host auth scripts to work with Windows.garykac@google.com2010-06-254-8/+17
| | | | | | | | | | | Fix simple_host to work when \Users\<username> is on a different drive than the chrome repository. BUG=none TEST=run scripts & host process on Windows Review URL: http://codereview.chromium.org/2822029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50802 0039d316-1c4b-4281-b951-d872f2087c98
* Fix remoting_unittests on shlib-dbg build botshclam@chromium.org2010-06-241-0/+12
| | | | | | | | | | | | Pull in extra dependencies that require to run remoting_unittests on shlib-dbg linux bot. TEST=test runs BUG=none Review URL: http://codereview.chromium.org/2850025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50687 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 50667 - Add in support for internal pepper plugins into the ↵mrossetti@chromium.org2010-06-235-325/+56
| | | | | | | | | | | | | | | | PepperPluginRegistry and pepper::PluginModule. Used Chromoting's plugin as the first attempt at using this interface. BUG=none TEST=compiles Review URL: http://codereview.chromium.org/2843018 TBR=ajwong@chromium.org Review URL: http://codereview.chromium.org/2834021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50671 0039d316-1c4b-4281-b951-d872f2087c98
* Add in support for internal pepper plugins into the PepperPluginRegistry and ↵ajwong@chromium.org2010-06-235-56/+325
| | | | | | | | | | | | | pepper::PluginModule. Used Chromoting's plugin as the first attempt at using this interface. BUG=none TEST=compiles Review URL: http://codereview.chromium.org/2843018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50667 0039d316-1c4b-4281-b951-d872f2087c98
* Change runclient so that it automatically uppercases IDs so I don't have to ↵dmaclach@chromium.org2010-06-231-1/+1
| | | | | | | | | | | do it myself. BUG=none TEST=none Review URL: http://codereview.chromium.org/2875011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50651 0039d316-1c4b-4281-b951-d872f2087c98
* Get scripts working independent of where they are run.dmaclach@chromium.org2010-06-234-13/+35
| | | | | | | | | | | Also store script data in home directory. TEST=none BUG=none Review URL: http://codereview.chromium.org/2832019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50598 0039d316-1c4b-4281-b951-d872f2087c98
* Small fix to jingle_glue for chromotinghclam@chromium.org2010-06-231-1/+5
| | | | | | | | | | | | | | | | Allow JingleClient to be closed more than once and before it is initalized. If JingleClient is disconnected from the talk network due to reaons like invalid credentials, user of JingleClient will attempt to close the client again resulting a crash in libjingle. Instead of failing aggressive we allow the close operation to be more flexible and handle the invalid cases internally. TEST=none BUG=none Review URL: http://codereview.chromium.org/2819017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50551 0039d316-1c4b-4281-b951-d872f2087c98
* Convert chromoting to pepperv2 API.ajwong@chromium.org2010-06-2211-961/+96
| | | | | | | | | | | Currently disables use of PepperView, and HostConnection->Connect(). This is mainly an attempt to get the build working. Will re-enable functionality later. BUG=none TEST=none Review URL: http://codereview.chromium.org/2857011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50502 0039d316-1c4b-4281-b951-d872f2087c98
* Deleting obsolete chromoting files.ajwong@chromium.org2010-06-218-913/+0
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2831019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50393 0039d316-1c4b-4281-b951-d872f2087c98
* Fix up build on Mac. Needed to initialize member vars.dmaclach@chromium.org2010-06-181-1/+2
| | | | | | | | | BUG=none TEST=build unit tests on mac Review URL: http://codereview.chromium.org/2802011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50271 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed memleak in JsonHostConfig.sergeyu@chromium.org2010-06-181-0/+1
| | | | | | | | | BUG=46882 TEST=heapcheck on remoting_unittests Review URL: http://codereview.chromium.org/2819013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50270 0039d316-1c4b-4281-b951-d872f2087c98
* JSON based host config storage implemented. Python script for host registration.sergeyu@chromium.org2010-06-1717-155/+509
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/2804007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50166 0039d316-1c4b-4281-b951-d872f2087c98
* Fix remoting_unittestshclam@chromium.org2010-06-171-2/+3
| | | | | | | | | remoting_unittests fails tasn fyi bots. Doing a quick fix. TBR=ajwong@chromium.org Review URL: http://codereview.chromium.org/2816013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50145 0039d316-1c4b-4281-b951-d872f2087c98
* Hookup the ChromotingPlugin into the refactored implementationajwong@chromium.org2010-06-1718-118/+785
| | | | | | | | | | | | | | of HostConnection and ChromotingView. Also implement a bare-bones PepperView. No unittests yet. Still too in flux to be worth it. BUG=none TEST=none Review URL: http://codereview.chromium.org/2852003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50116 0039d316-1c4b-4281-b951-d872f2087c98
* Fix double deletion in SessionManagerhclam@chromium.org2010-06-161-1/+0
| | | | | | | | | | | SessionManaerTest::OneRecordCycle is broken due to double deletion. TEST=remoting_unittests passes TBR=dmaclach since this is <= 5 lines. Review URL: http://codereview.chromium.org/2850008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50033 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Fix missing return in error check in remoting::X11Client::DoInitX11.mattm@chromium.org2010-06-161-0/+1
| | | | | | | | | | CID=10883 BUG=none TEST=builds Review URL: http://codereview.chromium.org/2826004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50013 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Fix undefined assignment evaluation order in ↵mattm@chromium.org2010-06-161-1/+1
| | | | | | | | | | | | remoting::Capturer::FinishCapture. CID=10878 BUG=none TEST=builds Review URL: http://codereview.chromium.org/2847010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50012 0039d316-1c4b-4281-b951-d872f2087c98
* Style fixes after readability review.sergeyu@chromium.org2010-06-1614-90/+100
| | | | | | | | | TEST=compile BUG=none Review URL: http://codereview.chromium.org/2816007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49897 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build for remotinghclam@chromium.org2010-06-161-25/+0
| | | | | | | | | Remoting turned on -Wall, causing some compilation failures. TBR=dmaclach, dimich Review URL: http://codereview.chromium.org/2806006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49882 0039d316-1c4b-4281-b951-d872f2087c98
* Broken build due to uninitialized var.dmaclach@chromium.org2010-06-151-1/+1
| | | | | | | | | TEST=build linux release BUG=none Review URL: http://codereview.chromium.org/2837007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49857 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Fix leak in ChromotingClient::read_image.mattm@chromium.org2010-06-152-8/+5
| | | | | | | | | | | | Also, use scoped_array instead of scoped_ptr. BUG=none CID=10905 TEST=builds Review URL: http://codereview.chromium.org/2844005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49854 0039d316-1c4b-4281-b951-d872f2087c98