summaryrefslogtreecommitdiffstats
path: root/remoting
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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