summaryrefslogtreecommitdiffstats
path: root/remoting/host/simple_host_process.cc
Commit message (Collapse)AuthorAgeFilesLines
* Get the timeout period from the cloud instead of hard-coding it (b/5049410).jamiewalch@chromium.org2011-07-231-1/+2
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/7466012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93767 0039d316-1c4b-4281-b951-d872f2087c98
* Conenct Chromoting plugin debug log to JS UI.garykac@chromium.org2011-07-071-2/+6
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7262015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91779 0039d316-1c4b-4281-b951-d872f2087c98
* Chromoting: Move host input and window mgmt into DesktopEnvironmentgarykac@chromium.org2011-07-071-1/+1
| | | | | | | | | | | | | | Hide details of window management and continue timers in the DesktopEnvironment class and expose OnConnect, OnLastDisconnect and OnPause methods. Move all host input monitor code into DesktopEnvironment as well. BUG=none TEST=none Review URL: http://codereview.chromium.org/7312019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91764 0039d316-1c4b-4281-b951-d872f2087c98
* Use the correct Chrome UI thread when creating the chromoting continue window.garykac@google.com2011-06-221-1/+2
| | | | | | | | | | | Also, rename the ChromotingHostContext's |ui_thread_| to |desktop_thread_| to reduce the likelihood that we'll make this mistake in the future. BUG=none TEST=none Review URL: http://codereview.chromium.org/7218018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90121 0039d316-1c4b-4281-b951-d872f2087c98
* Reduced host secret to five digits. Removed hyphen from access code and ↵jamiewalch@google.com2011-06-211-1/+1
| | | | | | | | | | | display in groups of four. BUG=None TEST=Manual Review URL: http://codereview.chromium.org/7211002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89927 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanups in the host shutdown logic and some minor fixes.sergeyu@chromium.org2011-06-201-27/+23
| | | | | | | | | | | | | | - replaced me2mom with it2me, - Remove refcounting in HostStatusObserver, - Cleanup shutdown logic in ChromotingHost, - Cleanup shutdown logic in host plugin, particularly it now uses main host thread instead of the plugin thread to start/stop the host. BUG=None TEST=Don't crash when closing a tab. Review URL: http://codereview.chromium.org/7182005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89728 0039d316-1c4b-4281-b951-d872f2087c98
* Interface and stubs for continuation window.jamiewalch@chromium.org2011-06-161-1/+5
| | | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/7003160 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89401 0039d316-1c4b-4281-b951-d872f2087c98
* Retrying submission of http://codereview.chromium.org/7144010/lambroslambrou@google.com2011-06-161-0/+6
| | | | | | | | | | | | | | | Run DisconnectWindow::Show/Hide on correct thread. This is to ensure that the DisconnectWindow UI actions are carried out on the proper thread for making platform-native GUI API calls (for example, GTK on Linux). BUG=None TEST=Manual Review URL: http://codereview.chromium.org/7180001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89359 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 89227 - Run DisconnectWindow::Show/Hide on correct thread.lambroslambrou@google.com2011-06-151-6/+0
| | | | | | | | | | | | | | | | | This is to ensure that the DisconnectWindow UI actions are carried out on the proper thread for making platform-native GUI API calls (for example, GTK on Linux). BUG=None TEST=Manual Review URL: http://codereview.chromium.org/7144010 TBR=lambroslambrou@chromium.org Review URL: http://codereview.chromium.org/7172024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89230 0039d316-1c4b-4281-b951-d872f2087c98
* Run DisconnectWindow::Show/Hide on correct thread.lambroslambrou@chromium.org2011-06-151-0/+6
| | | | | | | | | | | | | | This is to ensure that the DisconnectWindow UI actions are carried out on the proper thread for making platform-native GUI API calls (for example, GTK on Linux). BUG=None TEST=Manual Review URL: http://codereview.chromium.org/7144010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89227 0039d316-1c4b-4281-b951-d872f2087c98
* Initial Disconnect window implementation for Chromoting (Windows).garykac@google.com2011-06-141-0/+6
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7150002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89084 0039d316-1c4b-4281-b951-d872f2087c98
* Block remote mouse inputs for a short time when local input is received.jamiewalch@google.com2011-06-131-1/+4
| | | | | | | | | | | BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88878 Review URL: http://codereview.chromium.org/7134048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88915 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 88878 - Block remote mouse inputs for a short time when local input ↵asargent@chromium.org2011-06-131-4/+1
| | | | | | | | | | | | | | is received. BUG= TEST= Review URL: http://codereview.chromium.org/7134048 TBR=jamiewalch@google.com Review URL: http://codereview.chromium.org/7134099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88882 0039d316-1c4b-4281-b951-d872f2087c98
* Block remote mouse inputs for a short time when local input is received.jamiewalch@google.com2011-06-131-1/+4
| | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/7134048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88878 0039d316-1c4b-4281-b951-d872f2087c98
* Add fix suggestion for me2mom failure case.jamiewalch@chromium.org2011-06-081-1/+4
| | | | | | | | | | BUG=None TEST=Run remoting_simple_host --me2mom without cached credentials. Review URL: http://codereview.chromium.org/7041006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88394 0039d316-1c4b-4281-b951-d872f2087c98
* Initial disconnect window framework and mac implementation.jamiewalch@google.com2011-06-071-1/+5
| | | | | | | | | BUG=None TEST=Manual Review URL: http://codereview.chromium.org/7077038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88138 0039d316-1c4b-4281-b951-d872f2087c98
* Initial curtain mode implementation.jamiewalch@google.com2011-05-311-1/+1
| | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/6849027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87350 0039d316-1c4b-4281-b951-d872f2087c98
* Wire in OAuth2 support into non-sandboxed connections in libjingle.ajwong@chromium.org2011-05-251-0/+10
| | | | | | | | | BUG=none TEST=can connect w/o ClientLogin token. Review URL: http://codereview.chromium.org/7008003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86685 0039d316-1c4b-4281-b951-d872f2087c98
* fix up mac simple hostdmaclach@chromium.org2011-05-201-1/+2
| | | | | | | | | | | | Mac simple host wasn't doing screen captures because the os runloop wasn't being spun. BUG=NONE TEST=Use simple host on mac. Review URL: http://codereview.chromium.org/7057013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86126 0039d316-1c4b-4281-b951-d872f2087c98
* Remove local login prompt for me2mom.jamiewalch@chromium.org2011-05-191-6/+7
| | | | | | | | | BUG=None TEST=Verify that the webapp does not prompt for a local login when using the --me2mom flag (but that chromoting.googleplex still does when not using that flag). Review URL: http://codereview.chromium.org/7034041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85955 0039d316-1c4b-4281-b951-d872f2087c98
* Make the UI-integration thread a non-UI thread in the Chrome sense.wez@chromium.org2011-05-181-2/+4
| | | | | | | | | | BUG= TEST=remoting_simple_host should continue to work after this change is applied. Review URL: http://codereview.chromium.org/6975035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85738 0039d316-1c4b-4281-b951-d872f2087c98
* Cleaned up access-code printing.jamiewalch@chromium.org2011-05-171-14/+23
| | | | | | | | | | BUG=None TEST=Manual Review URL: http://codereview.chromium.org/7029013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85675 0039d316-1c4b-4281-b951-d872f2087c98
* Store (and check) support id in SupportAccessVerifier.jamiewalch@chromium.org2011-05-161-11/+9
| | | | | | | | | BUG=None TEST=Manual Review URL: http://codereview.chromium.org/7013065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85492 0039d316-1c4b-4281-b951-d872f2087c98
* Fix web-app nomenclature.jamiewalch@chromium.org2011-05-141-3/+3
| | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/7021010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85355 0039d316-1c4b-4281-b951-d872f2087c98
* Host access code verification for Me2Mom scenario.sergeyu@chromium.org2011-05-111-2/+24
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/7003006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84906 0039d316-1c4b-4281-b951-d872f2087c98
* Me2Mom support in simple_host.sergeyu@chromium.org2011-05-101-70/+131
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/6931001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84735 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 84724 - Me2Mom support in simple_host.sergeyu@chromium.org2011-05-101-131/+70
| | | | | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/6931001 TBR=sergeyu@chromium.org Review URL: http://codereview.chromium.org/6993004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84728 0039d316-1c4b-4281-b951-d872f2087c98
* Me2Mom support in simple_host.sergeyu@chromium.org2011-05-101-70/+131
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/6931001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84724 0039d316-1c4b-4281-b951-d872f2087c98
* Add HostObserverInterface and decouple HeartbeatSender and ChromotingHost.sergeyu@chromium.org2011-05-031-0/+8
| | | | | | | | | BUG=None TEST=Everything still works. Review URL: http://codereview.chromium.org/6911024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83951 0039d316-1c4b-4281-b951-d872f2087c98
* Move crypto files out of base, to a top level directory.rvargas@google.com2011-04-141-2/+2
| | | | | | | | | | | | | src/crypto is now an independent project that contains our cryptographic primitives (except md5 and sha1). This removes the base dependency from nss, openssl and sqlite. BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6805019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81611 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up remoting projectdmaclach@chromium.org2011-04-041-3/+3
| | | | | | | | | | | | | | Cleaned up some file names so it simplifies our project, and gets us more inline with chromium standards. Removed several unnecessary headers that were cluttering the remoting namespace. Simplified some of the double pimpl implementations that we had on Linux to hide X11 stuff. Got HostAuthentication working reasonably well as a mock. BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/6780014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80385 0039d316-1c4b-4281-b951-d872f2087c98
* Curtain mode interface, hooks and unit tests.jamiewalch@chromium.org2011-03-301-1/+4
| | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/6735010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79816 0039d316-1c4b-4281-b951-d872f2087c98
* Capturer is now pure virtual. The implementation it used tosimonmorris@chromium.org2011-03-291-1/+1
| | | | | | | | | | | contain is now in CapturerHelper. BUG=none TEST=none Review URL: http://codereview.chromium.org/6717020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79679 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
* Add DesktopEnvironment class and refactor.lambroslambrou@chromium.org2011-02-231-2/+4
| | | | | | | | | 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
* Run event executor on the ui thread to remove the need to explicitly ↵ajwong@chromium.org2011-02-191-4/+11
| | | | | | | | | | | | 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
* Resubmit "Fix crashes in ChromotingHost"hclam@chromium.org2011-01-281-2/+6
| | | | | | | | | | | | Simplified the test to run on the main message loop. Also fixed a possible memory leak caught by valgrind. BUG=70903 TEST=None Review URL: http://codereview.chromium.org/6245016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73023 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Fix crashes in ChromotingHost"hclam@chromium.org2011-01-261-6/+2
| | | | | | | | | | | | | | Reverting the patch since it exposed several memory leaks and threading problems. TBR=thakis BUG=70935 TEST=None Review URL: http://codereview.chromium.org/6266023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72679 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crashes in ChromotingHosthclam@chromium.org2011-01-251-2/+6
| | | | | | | | | | | | Capturer should be owned by ScreenRecoder. This patch also addes test to test reconnection of ChromotingHost. BUG=69969 TEST=ChromotingHostTest.* Review URL: http://codereview.chromium.org/6266010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72543 0039d316-1c4b-4281-b951-d872f2087c98
* Move base/thread.h to base/threading, fix up callers to use the new location.brettw@chromium.org2011-01-011-1/+1
| | | | | | | | TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6028009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70345 0039d316-1c4b-4281-b951-d872f2087c98
* Use VP8 over PseudoTCP by default.sergeyu@chromium.org2010-11-231-9/+50
| | | | | | | | | | | Added option in simple_host to choose video codec. Removed ugly ifdefs from chromoting_host.cc. BUG=None TEST=Unittests Review URL: http://codereview.chromium.org/5298001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67164 0039d316-1c4b-4281-b951-d872f2087c98
* Remove capture thread in Chromoting hosthclam@chromium.org2010-11-181-1/+1
| | | | | | | | | | Move operations from capture thread to main thread. Also move operations in SessionManager on main thread to network thread. BUG=None TEST=None Review URL: http://codereview.chromium.org/5123002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66696 0039d316-1c4b-4281-b951-d872f2087c98
* Move creation of capturer, input stub into ChromotingHosthclam@chromium.org2010-11-171-43/+10
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/5065001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66390 0039d316-1c4b-4281-b951-d872f2087c98
* Inject MessageLoop into Capturerhclam@chromium.org2010-11-171-4/+7
| | | | | | | | | | | Simple patch to juse inject the message loop. BUG=None TEST=None Review URL: http://codereview.chromium.org/4971003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66387 0039d316-1c4b-4281-b951-d872f2087c98
* Implement input stub in the host side for chromotinghclam@chromium.org2010-11-161-10/+13
| | | | | | | | | | | Implement InputStub for the host. BUG=None TEST=None Review URL: http://codereview.chromium.org/4726003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66314 0039d316-1c4b-4281-b951-d872f2087c98
* Add VideoReader and VideoWriter interfaces.sergeyu@chromium.org2010-11-031-24/+1
| | | | | | | | | | | Implemented VideoReader and VideoWriter for RTP and Protobuf. BUG=53986 TEST=None Review URL: http://codereview.chromium.org/4229003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64878 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanups in the video encoding decoding code. Reenable VP8.sergeyu@chromium.org2010-11-021-5/+24
| | | | | | | | | | | | | | | 1. Moved video-related protobuf messages from event.proto to video.proto. Removed those that we don't need anymore 2. Fixed naming for enums and some types. 3. Reenabled VP8. 4. Proper RGB-YUV converter for VP8 encoder. 5. Changed the capturer_fake to show more meaningful picture. BUG=57374 TEST=unittests Review URL: http://codereview.chromium.org/4136010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64700 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 64672 - Cleanups in the video encoding decoding code. Reenable VP8.sergeyu@chromium.org2010-11-011-24/+5
| | | | | | | | | | | | | | | | | | 1. Moved video-related protobuf messages from event.proto to video.proto. Removed those that we don't need anymore 2. Fixed naming for enums and some types. 3. Reenabled VP8. 4. Proper RGB-YUV converter for VP8 encoder. 5. Changed the capturer_fake to show more meaningful picture. BUG=57374 TEST=unittests Review URL: http://codereview.chromium.org/4136010 TBR=sergeyu@chromium.org Review URL: http://codereview.chromium.org/4255001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64677 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanups in the video encoding decoding code. Reenable VP8.sergeyu@chromium.org2010-11-011-5/+24
| | | | | | | | | | | | | | | 1. Moved video-related protobuf messages from event.proto to video.proto. Removed those that we don't need anymore 2. Fixed naming for enums and some types. 3. Reenabled VP8. 4. Proper RGB-YUV converter for VP8 encoder. 5. Changed the capturer_fake to show more meaningful picture. BUG=57374 TEST=unittests Review URL: http://codereview.chromium.org/4136010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64672 0039d316-1c4b-4281-b951-d872f2087c98
* Convert implicit scoped_refptr constructor calls to explicit ones, part 1thakis@chromium.org2010-11-011-2/+2
| | | | | | | | | | | This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2776043/ . I manually fixed a few rough spots of the rewriter output (doh1-3) and fixed all presubmit errors. BUG=28083 TEST=None Review URL: http://codereview.chromium.org/4192012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64573 0039d316-1c4b-4281-b951-d872f2087c98