summaryrefslogtreecommitdiffstats
path: root/remoting/host
Commit message (Collapse)AuthorAgeFilesLines
* Move some files from base to base/memory.levin@chromium.org2011-03-2827-56/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* Fix permissions broken in r79114.simonmorris@chromium.org2011-03-232-0/+0
| | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/6725026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79119 0039d316-1c4b-4281-b951-d872f2087c98
* ChromotingHost can have multiple connections, but only onesimonmorris@chromium.org2011-03-239-213/+310
| | | | | | | | | | | | | | | | | | | | authenticated connection. When a connection is authenticated, the host disconnects all other connections. The result is that if a client has disconnected without the host noticing, another client can connect immediately, without having to wait for the older connection to time out. The new ClientSession class encapsulates a ConnectionToClient and per-client state. It has taken the HostStub implementation away from DesktopEnvironment. BUG=70013 TEST=extra unit test; also see repro steps in BUG Review URL: http://codereview.chromium.org/6711033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79114 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented shared memory capture method.jamiewalch@chromium.org2011-03-213-70/+333
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/6677083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78874 0039d316-1c4b-4281-b951-d872f2087c98
* Fix leak in HeartbeatSenderTest.DoSendStanza and remove valgrind suppression.lambroslambrou@chromium.org2011-03-151-0/+17
| | | | | | | | | BUG=74850 TEST=Valgrind bots stay green. Review URL: http://codereview.chromium.org/6624095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78205 0039d316-1c4b-4281-b951-d872f2087c98
* Use deprecated mouse API that actually works.jamiewalch@chromium.org2011-03-152-37/+32
| | | | | | | | | BUG= TEST=Use the mouse to double-click or drag something. Review URL: http://codereview.chromium.org/6627077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78191 0039d316-1c4b-4281-b951-d872f2087c98
* Invalidate the entire screen after registering for refresh callbacks.jamiewalch@chromium.org2011-03-112-8/+41
| | | | | | | | | BUG= TEST=Make a chromoting connection to a Mac host and verify that the full screen is initially visible. Connect sooner rather than later, otherwise it's likely that the full screen would have been visible even without this fix. Review URL: http://codereview.chromium.org/6651024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77808 0039d316-1c4b-4281-b951-d872f2087c98
* Tidy up after CL 6573005.simonmorris@chromium.org2011-03-1012-55/+44
| | | | | | | | | | | | Replace width/height pairs with gfx::Size objects. Avoid overloading Capturer::InvalidateFullScreen. BUG=none TEST=none Review URL: http://codereview.chromium.org/6635039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77625 0039d316-1c4b-4281-b951-d872f2087c98
* Replace libjingle's HttpPortAllocatorSession with Pepper's http clienthclam@google.com2011-03-082-1/+2
| | | | | | | | | | | | | | | | | HttpPortAllocatorSession uses libjingle's http client to establish relay connection. This will not work in the sanboxed case since it access OS level of network directly. This patch replaces the http client with URL loader in pepper. This goes through the standard URL fetching system for chrome to get around the sandbox problem. BUG=51198 TEST=Force libjingle to use relay and try it with this code. Review URL: http://codereview.chromium.org/6623048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77218 0039d316-1c4b-4281-b951-d872f2087c98
* Support keyboard input on Macjamiewalch@chromium.org2011-03-072-4/+203
| | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/6610024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77155 0039d316-1c4b-4281-b951-d872f2087c98
* Added missing commas. Fixed lint warnings.jamiewalch@chromium.org2011-03-071-15/+15
| | | | | | | | | BUG=None TEST=Check that square brackets can be entered via Chromoting. Review URL: http://codereview.chromium.org/6623054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77143 0039d316-1c4b-4281-b951-d872f2087c98
* Linux capturer to invalidate the full screen by using screen width and heighthclam@chromium.org2011-03-073-3/+11
| | | | | | | | | | | | | Linux capturer didn't use the right width and height to invalidate the screen region for capturing. Leading to a NULL pointer exception when doing a XGetImage() on an empty rect. BUG=None TEST=Linux host doesn't crash Review URL: http://codereview.chromium.org/6627025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77114 0039d316-1c4b-4281-b951-d872f2087c98
* Block event processing on host/client until the client has authenticated.garykac@chromium.org2011-03-043-14/+39
| | | | | | | | | | | | | | | | | | Input events: * Client will not send them * Host will not process them Control events: * Client will only process BeginSessionResponse * Host will only process BeginSessionRequest All other control messages will be ignored. BUG=72466 TEST=manual+tests Review URL: http://codereview.chromium.org/6594138 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76974 0039d316-1c4b-4281-b951-d872f2087c98
* Don't translate dirty rectangles in Mac capturer.lambroslambrou@chromium.org2011-03-041-4/+1
| | | | | | | | | BUG=74809 TEST=Follow repro steps in bug report Review URL: http://codereview.chromium.org/6631003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76939 0039d316-1c4b-4281-b951-d872f2087c98
* Let the host change resolution.simonmorris@chromium.org2011-03-0415-113/+228
| | | | | | | | | | | | | | | | The screen size flows through the video pipeline, instead of being set statically when that pipeline is constructed. Only the Windows host actually detects when the screen size has changed. BUG=72469 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76747 Review URL: http://codereview.chromium.org/6573005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76908 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the need for ReplayPortAllocator.ajwong@chromium.org2011-03-041-2/+3
| | | | | | | | | BUG=none TEST=still connects. Review URL: http://codereview.chromium.org/6603003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76849 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 76747 - Let the host change resolution.simonmorris@chromium.org2011-03-0314-226/+111
| | | | | | | | | | | | | | | | | The screen size flows through the video pipeline, instead of being set statically when that pipeline is constructed. Only the Windows host actually detects when the screen size has changed. BUG=72469 TEST=none Review URL: http://codereview.chromium.org/6573005 TBR=simonmorris@chromium.org Review URL: http://codereview.chromium.org/6610018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76748 0039d316-1c4b-4281-b951-d872f2087c98
* Let the host change resolution.simonmorris@chromium.org2011-03-0314-111/+226
| | | | | | | | | | | | | | The screen size flows through the video pipeline, instead of being set statically when that pipeline is constructed. Only the Windows host actually detects when the screen size has changed. BUG=72469 TEST=none Review URL: http://codereview.chromium.org/6573005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76747 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor JingleClient to support thunking the xmpp signaling into Javascript.ajwong@chromium.org2011-03-035-41/+64
| | | | | | | | | | | We do this so that we may make HTTP requests using the javascript libraries available to Google Talk. This is required to allow us to sandbox. BUG=none TEST=none Review URL: http://codereview.chromium.org/6597092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76746 0039d316-1c4b-4281-b951-d872f2087c98
* Local Login on Mac, using OS X Security frameworklambroslambrou@chromium.org2011-03-032-2/+90
| | | | | | | | | BUG=None TEST=Connect to Mac host, and try correct or incorrect username/password for Local Login. Review URL: http://codereview.chromium.org/6605001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76739 0039d316-1c4b-4281-b951-d872f2087c98
* Fix up mac capturer to flip image.dmaclach@chromium.org2011-03-032-6/+18
| | | | | | | | | BUG=74078 TEST=Connect to a mac host. Image should come right side up. Review URL: http://codereview.chromium.org/6610007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76713 0039d316-1c4b-4281-b951-d872f2087c98
* SocketWrapper for interfacing between JingleSession and SSL socketshclam@chromium.org2011-03-021-2/+5
| | | | | | | | | | | | | | | | Remoting code allows sockets to be destroyed on threads other than the network thread, although they are only accessed on network thread. If SSL sockets are destroyed too early some remotings objects will crash accessing them. This patch introduces a SocketWrapper that destroys SSL sockets on the network thread but stay alive so that remoting objects can operate safely. BUG=72670 TEST=None Review URL: http://codereview.chromium.org/6525007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76635 0039d316-1c4b-4281-b951-d872f2087c98
* Fix up mac test client and simple host for remoting.dmaclach@chromium.org2011-03-021-0/+5
| | | | | | | | | | | | | Remoting's test client and simple host weren't initializing the NSApplication correctly which is required for MessageLoops to work on the Mac. These are just test apps that we use, so I felt it was ok to bring in code from base/test. Also added a check to message_pump_mac.mm to verify that NSApp is initialized before we attempt to use it. BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/6461023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76624 0039d316-1c4b-4281-b951-d872f2087c98
* Update comment to include relevant bug Id.wez@chromium.org2011-03-011-1/+1
| | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/6594078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76416 0039d316-1c4b-4281-b951-d872f2087c98
* Add some missing VK to KeySym mappings, and some logging to aid debug.wez@chromium.org2011-03-011-28/+32
| | | | | | | | | BUG=73733 TEST=See bug repro steps. Review URL: http://codereview.chromium.org/6592036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76369 0039d316-1c4b-4281-b951-d872f2087c98
* Report authentication failure on the host side of chromotinghclam@chromium.org2011-02-284-0/+19
| | | | | | | | | BUG=74436 TEST=Try a random username, it will ask for password again. Review URL: http://codereview.chromium.org/6592040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76275 0039d316-1c4b-4281-b951-d872f2087c98
* Don't clean up the Display now that we no longer own it.jamiewalch@chromium.org2011-02-281-24/+1
| | | | | | | | | BUG=none TEST=Service process does not report an error closing the X display when it closes normally. Review URL: http://codereview.chromium.org/6588009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76212 0039d316-1c4b-4281-b951-d872f2087c98
* Fix style mistakes in r75477.ajwong@chromium.org2011-02-251-1/+1
| | | | | | | | | | | Associated review at: http://codereview.chromium.org/6489031/ BUG=none TEST=none Review URL: http://codereview.chromium.org/6532102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76074 0039d316-1c4b-4281-b951-d872f2087c98
* Use PAM auth on Linux, and stubs on other platforms.lambroslambrou@chromium.org2011-02-2511-4/+183
| | | | | | | | | BUG=None TEST=Enter correct or incorrect user/password into Local Login prompt. Review URL: http://codereview.chromium.org/6566006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76050 0039d316-1c4b-4281-b951-d872f2087c98
* Support MouseEvent input in Chromoting host for Mac.wez@chromium.org2011-02-242-1/+65
| | | | | | | | | BUG=73847 TEST=Connect to Chromoting host for Mac and try to click or drag a window. Review URL: http://codereview.chromium.org/6580001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75865 0039d316-1c4b-4281-b951-d872f2087c98
* Add DesktopEnvironment class and refactor.lambroslambrou@chromium.org2011-02-238-121/+153
| | | | | | | | | BUG=none TEST=It builds and runs Review URL: http://codereview.chromium.org/6541018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75739 0039d316-1c4b-4281-b951-d872f2087c98
* Change chromoting images to upright by defaulthclam@chromium.org2011-02-222-15/+6
| | | | | | | | | | | Remove all the ugly code to have reverse rows. All images are upright now. BUG=71872 TEST=Everything in chromoting still works and upright. Review URL: http://codereview.chromium.org/6546057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75609 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed SlowBlit along the same lines as FastBlit.jamiewalch@chromium.org2011-02-221-11/+8
| | | | | | | | | BUG=71697 TEST=Connect to an X server that is not running with 32-bpp (or hack the code to always use SlowBlit--that's what I did...). Review URL: http://codereview.chromium.org/6312123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75591 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Capturer for Mac to cope gracefully when there are no invalid rects.wez@chromium.org2011-02-211-8/+1
| | | | | | | | | BUG=73095 TEST=Run Chromoting host for Mac and connect to it. Service process should NOT crash. Review URL: http://codereview.chromium.org/6541026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75551 0039d316-1c4b-4281-b951-d872f2087c98
* Run event executor on the ui thread to remove the need to explicitly ↵ajwong@chromium.org2011-02-1913-64/+50
| | | | | | | | | | | | XFlush() the XTest calls. BUG=none TEST=Connect to a host and try moving the mouse and typing. Both inputs should be reflected correctly. Review URL: http://codereview.chromium.org/6489031 Patch from Jamie Walch <jamiewalch@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75477 0039d316-1c4b-4281-b951-d872f2087c98
* Fix key missing problem on windowshclam@chromium.org2011-02-181-0/+2
| | | | | | | | | | | | | Initialize INPUT struct. The dwFlags member of INPUT struct is not properly initialized so sometimes the key event is interpreted as a key up and thus keys are missed. BUG=70167 TEST=keyboard input is fine on windows Review URL: http://codereview.chromium.org/6542015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75385 0039d316-1c4b-4281-b951-d872f2087c98
* Chromoting: UserAuthenticator interface and its implementation for PAM.sergeyu@chromium.org2011-02-163-0/+182
| | | | | | | | | | BUG=none TEST=manual Review URL: http://codereview.chromium.org/6484002 Patch from Lambros Lambrou <lambroslambrou@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75069 0039d316-1c4b-4281-b951-d872f2087c98
* Use case-insensitive comparison when comparing JIDs.sergeyu@chromium.org2011-02-142-2/+15
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/6518012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74866 0039d316-1c4b-4281-b951-d872f2087c98
* Carnitas: Delete stub src/gfx/* headerssail@chromium.org2011-02-131-1/+0
| | | | | | | | | | | The last references to src/gfx/* have been updated so it's safe to delete the stub headers. BUG=None TEST=None Review URL: http://codereview.chromium.org/6474031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74741 0039d316-1c4b-4281-b951-d872f2087c98
* Resubmit - Use SSE2 block differ for chromotinghclam@chromium.org2011-02-117-109/+168
| | | | | | | | | | | | | Put the SSE2 block differ code back in. TBR=dhollowa BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6501005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74671 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 74571 - Use SSE2 block differ for chromotingdhollowa@chromium.org2011-02-117-168/+109
| | | | | | | | | | | | | | | | | | | | | | We have the SSE2 lying around in the tree just never being used. This will allow us to use it. A number of Windows bots have gone red in media_tests on the waterfall: http://build.chromium.org/p/chromium/builders/XP%20Tests%20%281%29 http://build.chromium.org/p/chromium/builders/XP%20Tests%20%281%29/builds/501/steps/media_unittests/logs/stdio This seems to be related to r74571. So am reverting to see. BUG=None TEST=Chromoting to a host machine and the diff will work correctly Review URL: http://codereview.chromium.org/6469022 TBR=hclam@chromium.org Review URL: http://codereview.chromium.org/6502002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74630 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 74583 - Revert 74571 - Use SSE2 block differ for chromotingfinnur@chromium.org2011-02-117-109/+168
| | | | | | | | | | | | | | | | | | | | (Quick test to see if it is the cause of crashes in media_unittests) (Test showed this CL is not to blame) We have the SSE2 lying around in the tree just never being used. This will allow us to use it. BUG=None TEST=Chromoting to a host machine and the diff will work correctly Review URL: http://codereview.chromium.org/6469022 TBR=hclam@chromium.org Review URL: http://codereview.chromium.org/6488023 TBR=finnur@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74588 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 74571 - Use SSE2 block differ for chromotingfinnur@chromium.org2011-02-117-168/+109
| | | | | | | | | | | | | | | | | (Quick test to see if it is the cause of crashes in media_unittests) We have the SSE2 lying around in the tree just never being used. This will allow us to use it. BUG=None TEST=Chromoting to a host machine and the diff will work correctly Review URL: http://codereview.chromium.org/6469022 TBR=hclam@chromium.org Review URL: http://codereview.chromium.org/6488023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74583 0039d316-1c4b-4281-b951-d872f2087c98
* Use SSE2 block differ for chromotinghclam@chromium.org2011-02-117-109/+168
| | | | | | | | | | | | We have the SSE2 lying around in the tree just never being used. This will allow us to use it. BUG=None TEST=Chromoting to a host machine and the diff will work correctly Review URL: http://codereview.chromium.org/6469022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74571 0039d316-1c4b-4281-b951-d872f2087c98
* Invalidate fullscreen when a new client connects to chromoting hosthclam@chromium.org2011-02-097-4/+31
| | | | | | | | | BUG=72252 TEST=Reconnect and screen looks right Review URL: http://codereview.chromium.org/6469004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74365 0039d316-1c4b-4281-b951-d872f2087c98
* Another big out-of-lining of test code. Hits a lot of gmock objectserg@google.com2011-02-081-1/+1
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/6413036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74168 0039d316-1c4b-4281-b951-d872f2087c98
* More out-of-lining of test code, along with a bunch of GMOCK objects.erg@google.com2011-02-084-10/+29
| | | | | | | | | | | Most notably, rename various mock_objects.h files in remoting/ because after deinlining, there were compile failures. This fixes Windows compiling because you can't have two implementation files with the same name in a project, even if they are in different directories. (The output from one compile will clobber the others!) BUG=none TEST=compiles Review URL: http://codereview.chromium.org/6250198 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74059 0039d316-1c4b-4281-b951-d872f2087c98
* Change includes of gfx/* to ui/gfx/*sail@chromium.org2011-02-054-4/+4
| | | | | | | | | BUG=71063 TEST=compiled Review URL: http://codereview.chromium.org/6312156 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73890 0039d316-1c4b-4281-b951-d872f2087c98
* Remove auto generation of certificate when chromoting client connectshclam@chromium.org2011-02-041-7/+8
| | | | | | | | | | | Generate certificate once and reuse it in all chromoting session. BUG=None TEST=None Review URL: http://codereview.chromium.org/6246077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73781 0039d316-1c4b-4281-b951-d872f2087c98
* Added XFlush calls.ajwong@chromium.org2011-02-041-2/+35
| | | | | | | | | | | | Fixed mouse button mapping. BUG=71663 TEST=Connect to a Linux host and try to move the mouse and type text. Both should work as they would at the console. Review URL: http://codereview.chromium.org/6368052 Patch from Jamie Walch <jamiewalch@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73755 0039d316-1c4b-4281-b951-d872f2087c98