summaryrefslogtreecommitdiffstats
path: root/remoting/host
Commit message (Collapse)AuthorAgeFilesLines
* Revert 56600 - ServiceProcessControlBrowserTest.LaunchAndIPC crashes.rvargas@google.com2010-08-181-5/+0
| | | | | | | | | | | | | | | | | | | | Start/stop service process when browser starts and stop Save the information that the setup of remoting has completed. After setup has been completed we start and stop service process when --enable-remoting presents when browser starts. Also save the information in the service process that host is registered and ready to be used. Again start chromoting host automatically once the host registration is done. Review URL: http://codereview.chromium.org/3185015 TBR=hclam@chromium.org Review URL: http://codereview.chromium.org/3107024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56610 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some problems in SessionManager in chromotinghclam@chromium.org2010-08-181-0/+5
| | | | | | | | | | SessionManager doesn't handle empty dirty rect list, this is fixed in this patch. This patch also make SessionManager handle rate controlling better. Review URL: http://codereview.chromium.org/3127019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56605 0039d316-1c4b-4281-b951-d872f2087c98
* Start/stop service process when browser starts and stophclam@chromium.org2010-08-181-0/+5
| | | | | | | | | | | | | | | Save the information that the setup of remoting has completed. After setup has been completed we start and stop service process when --enable-remoting presents when browser starts. Also save the information in the service process that host is registered and ready to be used. Again start chromoting host automatically once the host registration is done. Review URL: http://codereview.chromium.org/3185015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56600 0039d316-1c4b-4281-b951-d872f2087c98
* Replaced char* with to char[].sergeyu@chromium.org2010-08-132-10/+10
| | | | | | | | | TEST=compiles BUG=None Review URL: http://codereview.chromium.org/3036044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55978 0039d316-1c4b-4281-b951-d872f2087c98
* Resubmit "Start chromoting host in the service process though a method call"hclam@chromium.org2010-08-101-2/+4
| | | | | | | | | | | | | | This change exposes method calls to configure the chromoting host and allow it to be started from a method. This will allow us to use IPC message to start the chromoting host. TEST=unit_tests --gtest_filter=ServiceProcess* BUG=50243, 50244 Review URL: http://codereview.chromium.org/3105002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55593 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 55507 - Start chromoting host in the service process though a method ↵glen@chromium.org2010-08-101-4/+2
| | | | | | | | | | | | | | | | | | | call This change exposes method calls to configure the chromoting host and allow it to be started from a method. This will allow us to use IPC message to start the chromoting host. TEST=unit_tests --gtest_filter=ServiceProcess* BUG=50243, 50244 Review URL: http://codereview.chromium.org/3084024 TBR=hclam@chromium.org Review URL: http://codereview.chromium.org/3110004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55525 0039d316-1c4b-4281-b951-d872f2087c98
* Start chromoting host in the service process though a method callhclam@chromium.org2010-08-101-2/+4
| | | | | | | | | | | | | | This change exposes method calls to configure the chromoting host and allow it to be started from a method. This will allow us to use IPC message to start the chromoting host. TEST=unit_tests --gtest_filter=ServiceProcess* BUG=50243, 50244 Review URL: http://codereview.chromium.org/3084024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55507 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Remove unneeded headers from base/ (part 5)thestig@chromium.org2010-08-071-1/+0
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3041049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55349 0039d316-1c4b-4281-b951-d872f2087c98
* Initial pass at integrating Differ into the chromoting host code.garykac@google.com2010-08-0623-177/+288
| | | | | | | | | BUG=none TEST=run Win host; x11 client Review URL: http://codereview.chromium.org/3013015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55297 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed memory leaks in new unittestssergeyu@chromium.org2010-08-042-0/+5
| | | | | | | | TEST=heapcheck with remoting_unittest BUG=None TBR: ajwong git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55003 0039d316-1c4b-4281-b951-d872f2087c98
* Added HostKeyPair class, signatures for heartbeat messages.sergeyu@chromium.org2010-08-0410-36/+535
| | | | | | | | | BUG=None TEST=unittests Review URL: http://codereview.chromium.org/3087003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54991 0039d316-1c4b-4281-b951-d872f2087c98
* base: Rename EnvVarGetter to Environment.tfarina@chromium.org2010-08-031-1/+1
| | | | | | | | | | | | | | | Now EnvVarGetter do much more than getting environment variables. Per suggestion from Pawel in http://codereview.chromium.org/3043018/. BUG=None TEST=trybots Signed-off-by: Thiago Farina <tfarina@chromium.org> Review URL: http://codereview.chromium.org/3052034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54696 0039d316-1c4b-4281-b951-d872f2087c98
* Convert src/remoting to std::string/char* away from wstring/wchar_t*.viettrungluu@chromium.org2010-07-315-40/+17
| | | | | | | | | | | This is easy now that DictionaryValue uses std::string for keys. BUG=23581 TEST=remoting_unittests Review URL: http://codereview.chromium.org/3060034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54441 0039d316-1c4b-4281-b951-d872f2087c98
* More FRIEND_TEST_ALL_PREFIXES.phajdan.jr@chromium.org2010-07-301-2/+2
| | | | | | | | | TEST=none BUG=44549 Review URL: http://codereview.chromium.org/3053024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54388 0039d316-1c4b-4281-b951-d872f2087c98
* Replaced static wstring with wchar_t*.sergeyu@chromium.org2010-07-282-10/+10
| | | | | | | | | BUG=None TEST=compiles Review URL: http://codereview.chromium.org/2908011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54007 0039d316-1c4b-4281-b951-d872f2087c98
* [chromoting] Use zlib as the default encoder and decoderhclam@chromium.org2010-07-271-2/+2
| | | | | | | | | | Use EncoderZlib / DecoderZlib as default encoder and decoder. BUG=50246 Review URL: http://codereview.chromium.org/3034035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53742 0039d316-1c4b-4281-b951-d872f2087c98
* Moving Encoder and Decoder to remoting/basehclam@chromium.org2010-07-2319-546/+28
| | | | | | | | | | | Putting Encder and Decoder together so we can have test that tests both of them. TEST=remoting_unittests Review URL: http://codereview.chromium.org/2840036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53427 0039d316-1c4b-4281-b951-d872f2087c98
* base: add home environment variable to env_var.htfarina@chromium.org2010-07-211-2/+2
| | | | | | | | | | | BUG=None TEST=trybots Signed-off-by: Thiago Farina <tfarina@chromium.org> Review URL: http://codereview.chromium.org/2847058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53143 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor the client code for the X11 version.garykac@google.com2010-07-201-6/+6
| | | | | | | | | | | | | 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
* Changing UpdateStreamPacket protobuf definition for chromotinghclam@chromium.org2010-07-1510-96/+83
| | | | | | | | | 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-144-10/+45
| | | | | | | | | 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
* 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
* 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
* Fix thread usage in chromoting hosthclam@chromium.org2010-06-2812-164/+405
| | | | | | | | | | | | | | 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
* Removed dependency on chrome/common.sergeyu@chromium.org2010-06-252-13/+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-251-3/+10
| | | | | | | | | | | 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
* Get scripts working independent of where they are run.dmaclach@chromium.org2010-06-231-3/+13
| | | | | | | | | | | 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
* 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-1711-123/+372
| | | | | | | | | 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 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 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
* Added HostConfig class. Changed SimpleHost to use it.sergeyu@chromium.org2010-06-156-28/+114
| | | | | | | | | BUG=none TEST=unittests Review URL: http://codereview.chromium.org/2810002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49852 0039d316-1c4b-4281-b951-d872f2087c98
* Tighten up compile warnings based to match other chromium sub-projects.dmaclach@chromium.org2010-06-154-12/+10
| | | | | | | | | | | Fix up the issues that the new warnings raised. BUG=none TEST=build remoting cleanly Review URL: http://codereview.chromium.org/2801003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49842 0039d316-1c4b-4281-b951-d872f2087c98
* Revamp threading a bit so that arguments are passed through and owned by the ↵dmaclach@chromium.org2010-06-1511-145/+166
| | | | | | | | | | | various threads instead of being all owned by the session manager. BUG=none TEST=none Review URL: http://codereview.chromium.org/2807002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49803 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup some chromoting codehclam@chromium.org2010-06-153-62/+34
| | | | | | | | | Renamed SimpleHost to ChromotingHost as it's not simple any more and it's becoming mature enough to be the main host implementation. Review URL: http://codereview.chromium.org/2722010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49748 0039d316-1c4b-4281-b951-d872f2087c98
* BlockDifference function that returns 0 or 1 depending if block is same or ↵fbarchard@chromium.org2010-06-113-38/+99
| | | | | | | | | | | different. BUG=none TEST=unittest updated and includes benchmarking. Review URL: http://codereview.chromium.org/2712006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49583 0039d316-1c4b-4281-b951-d872f2087c98
* Extract auth token into separate .chromotingAuthToken file so it can be re-used.garykac@google.com2010-06-111-8/+35
| | | | | | | | | | | Modify chromoting_simple_host to accept cmd-line args for jid and auth-token. BUG=none TEST=none Review URL: http://codereview.chromium.org/2757006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49484 0039d316-1c4b-4281-b951-d872f2087c98
* psadbw based differencing functionfbarchard@chromium.org2010-06-111-3/+58
| | | | | | | | | BUG=none TEST=should still build and pass unittest, but more efficiently Review URL: http://codereview.chromium.org/2749007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49480 0039d316-1c4b-4281-b951-d872f2087c98
* Separate out HostConnection into an interface and a jingle-basedajwong@chromium.org2010-06-103-33/+66
| | | | | | | | implementation. Refactor to inject the running thread for Jingle. Review URL: http://codereview.chromium.org/2753006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49419 0039d316-1c4b-4281-b951-d872f2087c98
* Fix chromoting windows buildhclam@chromium.org2010-06-101-2/+2
| | | | | | | | This change also changes the CapturerGdi to output 32bit instead of 24bit. Review URL: http://codereview.chromium.org/2771007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49351 0039d316-1c4b-4281-b951-d872f2087c98
* Re-add (curiously) missing 'return' statement to differ_unittest.garykac@google.com2010-06-101-1/+1
| | | | | | | | | BUG=none TEST=unittests on Windows Review URL: http://codereview.chromium.org/2772002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49349 0039d316-1c4b-4281-b951-d872f2087c98
* Set up the message loop of the mac host to be UI based so that it can pick updmaclach@chromium.org2010-06-091-4/+13
| | | | | | | | | | | the system callbacks about screen changes. Also clean up some comments. BUG=none TEST=none Review URL: http://codereview.chromium.org/2790002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49342 0039d316-1c4b-4281-b951-d872f2087c98
* Fix up the define usage so that we actually handle OSX specific stuff correctly.dmaclach@chromium.org2010-06-091-2/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2784001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49341 0039d316-1c4b-4281-b951-d872f2087c98