summaryrefslogtreecommitdiffstats
path: root/remoting
Commit message (Collapse)AuthorAgeFilesLines
* Remove noisy LOG(INFO) lines from chromoting unittests.garykac@google.com2010-08-202-5/+0
| | | | | | | | BUG=none TEST=remoting unittests Review URL: http://codereview.chromium.org/3186006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56898 0039d316-1c4b-4281-b951-d872f2087c98
* 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
* Minor fixes for the client extension.sergeyu@chromium.org2010-08-186-107/+127
| | | | | | | | | | Added background page that passes messages to new tabs. CamelCase for function names. BUG=51194 TEST=extension still works. Review URL: http://codereview.chromium.org/3149017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56567 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land part of r55416, minus actually moving the test_suite.h contents to a ↵brettw@chromium.org2010-08-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | .cc file. Cleanup in base. This moves the implementation (and a bunch of header file dependencies) from the multiprocess test and the test_suite headers to .cc files. Moves multiprocess_test to the test directory, and all of this stuff to the existing base_test_support project. I also used the base namespace. Previously other projects included this functionality just by #include because it was all inline, so I had to add dependencies on base_test_support in a few places. Moves and renames the command line switch this was using to base_switches. Move the base switch for process type to chrome switches. TEST=none BUG=none Review URL: http://codereview.chromium.org/3026055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56399 0039d316-1c4b-4281-b951-d872f2087c98
* Added hostdir.py - a simple Chromoting Directory client.sergeyu@chromium.org2010-08-163-5/+232
| | | | | | | | | TEST=None BUG=None Review URL: http://codereview.chromium.org/3133014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56263 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: some more FRIEND_TEST_ALL_PREFIXESphajdan.jr@chromium.org2010-08-161-2/+2
| | | | | | | | | TEST=none BUG=44549 Review URL: http://codereview.chromium.org/3161021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56253 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land just the project file changes from r55416. This makes projects that usebrettw@chromium.org2010-08-151-0/+1
| | | | | | | | | base test files dependent on test_support_base. TEST=none BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56172 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
* Fixed register_host.py, so it works on windows.sergeyu@chromium.org2010-08-122-9/+25
| | | | | | | | | BIG=None TEST=register_host.py works on Windows. Review URL: http://codereview.chromium.org/3032062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55964 0039d316-1c4b-4281-b951-d872f2087c98
* Resubmit "Start chromoting host in the service process though a method call"hclam@chromium.org2010-08-103-8/+17
| | | | | | | | | | | | | | 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-103-17/+8
| | | | | | | | | | | | | | | | | | | 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-103-8/+17
| | | | | | | | | | | | | | 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
* Workaround for the races when opening new tab with the chromoting extension.sergeyu@chromium.org2010-08-091-5/+11
| | | | | | | | | | | | | The problem is that the extension popup is often closed before it receives the message that the tab has been opened, and thus never sends the message to the new tab. BUG=51194 TEST=tabs opened with the chromoting extension always connect Review URL: http://codereview.chromium.org/3047058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55436 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 55400 - Cleanup in base. This moves the implementation (and a bunch ↵nsylvain@chromium.org2010-08-092-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | of header file dependencies) from the multiprocess test and the test_suite headers to .cc files. Moves multiprocess_test to the test directory, and all of this stuff to the existing base_test_support project. I also used the base namespace. Previously other projects included this functionality just by #include because it was all inline, so I had to add dependencies on base_test_support in a few places. Moves and renames the command line switch this was using to base_switches. Move the base switch for process type to chrome switches. TEST=none BUG=none Review URL: http://codereview.chromium.org/3026055 TBR=brettw@chromium.org Review URL: http://codereview.chromium.org/3035062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55416 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup in base. This moves the implementation (and a bunch of header filebrettw@chromium.org2010-08-092-1/+2
| | | | | | | | | | | | | | | | | | | dependencies) from the multiprocess test and the test_suite headers to .cc files. Moves multiprocess_test to the test directory, and all of this stuff to the existing base_test_support project. I also used the base namespace. Previously other projects included this functionality just by #include because it was all inline, so I had to add dependencies on base_test_support in a few places. Moves and renames the command line switch this was using to base_switches. Move the base switch for process type to chrome switches. TEST=none BUG=none Review URL: http://codereview.chromium.org/3026055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55400 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Remove unneeded headers from base/ (part 5)thestig@chromium.org2010-08-072-2/+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
* Rename ChromotingPlugin -> ChromotingInstance to be more consistent withgarykac@google.com2010-08-078-53/+53
| | | | | | | | | | | Pepper terminology. BUG=50453 TEST=remoting unittests Review URL: http://codereview.chromium.org/3078005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55317 0039d316-1c4b-4281-b951-d872f2087c98
* Reverse rows in DecoderZlib for remotinghclam@chromium.org2010-08-063-4/+31
| | | | | | | | | | | | | Windows images are upside down, so when we decode the stream and paint the image we need to reverse the rows. This is a temporary solution since it sets to reverse rows by default. We'll move to use the information from the update stream to determine we should reverse or not. Review URL: http://codereview.chromium.org/2883055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55314 0039d316-1c4b-4281-b951-d872f2087c98
* Initial pass at integrating Differ into the chromoting host code.garykac@google.com2010-08-0630-217/+357
| | | | | | | | | 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
* FBTF: Remove unneeded headers from base/ (part 2)thestig@chromium.org2010-08-061-1/+0
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3010052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55191 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-0418-52/+573
| | | | | | | | | 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
* Modify client to open up chromoting connection in a new tab.ajwong@chromium.org2010-08-043-54/+83
| | | | | | | | | | BUG=50248 TEST=connects locally. TBR=hclam Review URL: http://codereview.chromium.org/2808104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54958 0039d316-1c4b-4281-b951-d872f2087c98
* Rudamentary Chrome extension version of the chromoting client UI.ajwong@chromium.org2010-08-046-69/+302
| | | | | | | | | | | | | This implements a bare-bones interface to starting a chromoting client session. It currently loads the plugin within the popup itself which is bad, but at least it works as a proof of concept. BUG=50248 TEST=runs and connects locally. Review URL: http://codereview.chromium.org/3046045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54919 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
* This tool demonstrates the use of the Media Foundation H.264 decoder as a ↵imcheng@chromium.org2010-08-021-2/+3
| | | | | | | | | | standalone Media Foundation Transform (MFT). TEST=none BUGS=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54571 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-304-10/+11
| | | | | | | | | 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
* Revert "This tool demonstrates the use of the Media Foundation H.264 decoder ↵evan@chromium.org2010-07-291-3/+2
| | | | | | | | as a standalone Media Foundation Transform (MFT). See README for more information." This reverts commit r54078, due to link failures. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54084 0039d316-1c4b-4281-b951-d872f2087c98
* Reapply 53892 with ARM build fix as suggested by Kobic.ajwong@chromium.org2010-07-2910-107/+334
| | | | | | | | | | | | | | For some reason, the ARM g++ thinks that comparing a pointer to a class method against NULL is using NULL for arithemtic. Switching to compare against 0 makes this go away. TODO added to investigate what is going on. Original Review URL: http://codereview.chromium.org/3064009 TBR: hclam@chromium.org BUG=50248 TEST=reproed locally with CodeSourcery g++ and verified change fixed things. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54083 0039d316-1c4b-4281-b951-d872f2087c98
* This tool demonstrates the use of the Media Foundation H.264 decoder as a ↵imcheng@chromium.org2010-07-291-2/+3
| | | | | | | | standalone Media Foundation Transform (MFT). See README for more information. Review URL: http://codereview.chromium.org/3044019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54078 0039d316-1c4b-4281-b951-d872f2087c98
* Updated register_host.py for the latest version of the directory service.sergeyu@chromium.org2010-07-281-6/+6
| | | | | | | | | TEST=register_host.py registers host successfully BUG=None Review URL: http://codereview.chromium.org/3048036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54070 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
* Revert 53892 - Initial scriptable object implementation.rsesek@chromium.org2010-07-2810-329/+107
| | | | | | | | | | | | | | | | | | Broke ChromiumOS ARM build, reverting. Errors from log: remoting/client/plugin/chromoting_scriptable_object.cc: In member function 'virtual bool remoting::ChromotingScriptableObject::HasProperty(const pp::Var&, pp::Var*)': remoting/client/plugin/chromoting_scriptable_object.cc:48: error: NULL used in arithmetic remoting/client/plugin/chromoting_scriptable_object.cc: In member function 'virtual bool remoting::ChromotingScriptableObject::HasMethod(const pp::Var&, pp::Var*)': remoting/client/plugin/chromoting_scriptable_object.cc:63: error: NULL used in arithmetic BUG=50248 TEST=write javascript to manually setup connection. Review URL: http://codereview.chromium.org/3064009 TBR=ajwong@chromium.org Review URL: http://codereview.chromium.org/3020038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53949 0039d316-1c4b-4281-b951-d872f2087c98
* Add a very simple client HTML/JS webpage.ajwong@chromium.org2010-07-282-0/+69
| | | | | | | | | | | | | | | This should allow easier invocation of the chromoting plugin. The javascript will parse window.location.href, so the plugin should be invocable via the commandline for easier debugging. Note, this isn't tested yet, but should it should be close to right. BUG=50248 TEST=none TBR: hclam@chromium.org, garykac@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53899 0039d316-1c4b-4281-b951-d872f2087c98
* Initial scriptable object implementation.ajwong@chromium.org2010-07-2810-107/+329
| | | | | | | | | BUG=50248 TEST=write javascript to manually setup connection. Review URL: http://codereview.chromium.org/3064009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53892 0039d316-1c4b-4281-b951-d872f2087c98
* Fix class -> struct.ajwong@chromium.org2010-07-273-3/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53852 0039d316-1c4b-4281-b951-d872f2087c98
* Change ClientConfig to be a struct since it's just a dumb data carrier.ajwong@chromium.org2010-07-2710-43/+27
| | | | | | | Also, the old method of passing around a pointer was not safe due to object lifetime issues. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53851 0039d316-1c4b-4281-b951-d872f2087c98
* [chromoting] Use zlib as the default encoder and decoderhclam@chromium.org2010-07-274-10/+12
| | | | | | | | | | 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
* EncoderZlib/DecoderZlib for chromotinghclam@chromium.org2010-07-2714-18/+550
| | | | | | | | | | | | | | | | | Encoder and decoder using zlib for chromoting. This implementation has zero copy out of the decoder and encoder. The consequence is that we have to break out the zlib stream into rect boundaries which requires the synchronication flush feature in zlib. This feature will hurt compression ratio but the effect still need to be measured. This patch also provides tests for testing the Encoder and Decoder pair with zlib. TEST=remoting_unittests Review URL: http://codereview.chromium.org/2868062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53738 0039d316-1c4b-4281-b951-d872f2087c98
* Fix mismatched new[]/delete in EncoderVerbatimTest.TestEncodertimurrrr@chromium.org2010-07-241-4/+4
| | | | | | | | | | | + Fix presubmit warnings about tabs near line 270 + svn pset svn:eol-style LF remoting/base/codec_test.cc BUG=50126 TBR=hclam TEST=bots Review URL: http://codereview.chromium.org/3051012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53587 0039d316-1c4b-4281-b951-d872f2087c98
* Unit test for Encoder / Decoder for remotinghclam@chromium.org2010-07-247-6/+464
| | | | | | | | | | | | | Unit test utils for Encoder and Decoder. The tests will cover the state and messages sent out of the Encoder and Decoder are in correct order. It also make sure Decoded output matches input to the Encoder. Review URL: http://codereview.chromium.org/3011010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53566 0039d316-1c4b-4281-b951-d872f2087c98
* Moving Encoder and Decoder to remoting/basehclam@chromium.org2010-07-2331-155/+176
| | | | | | | | | | | 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-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