summaryrefslogtreecommitdiffstats
path: root/remoting/host/signaling_connector.h
Commit message (Collapse)AuthorAgeFilesLines
* Separate access token caching logic from signaling connector.rmsousa@chromium.org2014-02-111-47/+12
| | | | | | | | | | Right now signaling connector is the only user of OAuth tokens, but if/when we add more authenticated calls, this will allow them to share the cached access token (so that consecutive authenticated calls from different objects don't need to make separate refreshtoken calls). BUG= Review URL: https://codereview.chromium.org/141063009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250351 0039d316-1c4b-4281-b951-d872f2087c98
* Support service accounts in the chromoting host.rmsousa@chromium.org2013-08-161-1/+5
| | | | | | | | | | This change allows running a host *already configured* with service account credentials. Support for obtaining service account credentails during host setup will come in follow up CLs. BUG=224742 Review URL: https://chromiumcodereview.appspot.com/19796006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217941 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of time headers in ppapi/, printing/, remoting/.avi@chromium.org2013-06-281-2/+2
| | | | | | | | | | BUG=254986 TEST=none TBR=ben@chromium.org Review URL: https://codereview.chromium.org/18052008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209151 0039d316-1c4b-4281-b951-d872f2087c98
* Better document GaiaOAuthClient via comments and updated method name.davidroche@chromium.org2013-06-261-1/+1
| | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/17696002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208615 0039d316-1c4b-4281-b951-d872f2087c98
* Remove GaiaOauthClient and GaiaUserEmailFetcher from remoting.sergeyu@chromium.org2012-10-271-12/+12
| | | | | | | | | The OAuth functionality remoting needs is implemented in google_api module. There is no need to duplicate it in remoting. Review URL: https://codereview.chromium.org/11273024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164461 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ChromotingHostContext from SignalingConnector.wez@chromium.org2012-10-051-6/+6
| | | | | | | | | BUG=145856 Review URL: https://chromiumcodereview.appspot.com/11027021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160295 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Hook up host talkgadget policy checks.garykac@chromium.org2012-09-011-5/+13
| | | | | | | | | | | | | | | This updates the host to ping the specified talkgadget and block startup if the talkgadget is not reachable. This permits admins to DNS block the talkgadget to disable hosts from sharing out from their network. Also, update the policy watcher to watch the correct location for Chromium builds. BUG=132345,132681 Review URL: https://chromiumcodereview.appspot.com/10873050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154583 0039d316-1c4b-4281-b951-d872f2087c98
* Clean-up inline members of nested classes (remoting/)hans@chromium.org2012-08-091-0/+2
| | | | | | | | | | | | | | | | Due to a bug, the Clang-plugin style checker failed to warn about inline constructors, destructors, non-empty virtual methods, etc. for nested classes. The plugin has been fixed, and this patch is part of a clean-up of all the code that now causes the plugin to issue errors. BUG=139346 Review URL: https://chromiumcodereview.appspot.com/10855076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150913 0039d316-1c4b-4281-b951-d872f2087c98
* remoting/host: Fix cpplint warning of header guards.tfarina@chromium.org2012-07-101-3/+3
| | | | | | | | | | | Found by: $ cpplint.py remoting/host/* 2>&1 | grep "guard has wrong" R=jamiewalch@chromium.org,alexeypa@chromium.org Review URL: https://chromiumcodereview.appspot.com/10700129 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145814 0039d316-1c4b-4281-b951-d872f2087c98
* Support for navigator.connection APIdroger@google.com2012-05-241-4/+5
| | | | | | | | | | | | | | | | | | This replaces the online state (a boolean) by a more complex state (UNKNOWN/NONE /2G/3G/4G/WIFI/ETHERNET) inspired by the Network Information API (http://www.w3.org/TR/netinfo-api/). Breakdown of the modified files: - network_change_notifier.h/.cc: actual API change - network_change_notifier_*: platform specific implementations. This CL only provide a basic implementation where CONNECTION_UNKNOWN is returned when online and CONNECTION_NONE is returned when offline. - other files: call sites for the static function and observer implementations. Most of the time this only changes the test IsOffline() by (GetConnectionType() == CONNECTION_NONE). BUG=112937 TEST=NONE Review URL: https://chromiumcodereview.appspot.com/9147026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138780 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 137824 - was reverted by mistakesergeyu@chromium.org2012-05-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | Properly handle accounts that don't have GMail account. 1. Me2MeHostAuthenticatorFactory now verifies that the bare JID of the remote client matches bare JID of the host. Previously it was comparing it with the user's email, which may be different from JID. 2. GaiaOAuthClient now fetches user's email. 3. SignalingConnector verifies that user's email matches the expected value stored in xmpp_login. If it doesn't, then the auth token was generated for a different account and the host treats it as an authentication error. BUG=128102 Review URL: https://chromiumcodereview.appspot.com/10332187 TBR=dharani@chromium.org Review URL: https://chromiumcodereview.appspot.com/10332285 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138224 0039d316-1c4b-4281-b951-d872f2087c98
* This broke M20 build.dharani@chromium.org2012-05-221-2/+1
| | | | | | | | | | | | | | | | | | | | | | | Revert 137824 - Properly handle accounts that don't have GMail account. 1. Me2MeHostAuthenticatorFactory now verifies that the bare JID of the remote client matches bare JID of the host. Previously it was comparing it with the user's email, which may be different from JID. 2. GaiaOAuthClient now fetches user's email. 3. SignalingConnector verifies that user's email matches the expected value stored in xmpp_login. If it doesn't, then the auth token was generated for a different account and the host treats it as an authentication error. BUG=128102 Review URL: https://chromiumcodereview.appspot.com/10332187 TBR=sergeyu@chromium.org Review URL: https://chromiumcodereview.appspot.com/10388226 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138204 0039d316-1c4b-4281-b951-d872f2087c98
* Properly handle accounts that don't have GMail account.sergeyu@chromium.org2012-05-181-1/+2
| | | | | | | | | | | | | | | | | | 1. Me2MeHostAuthenticatorFactory now verifies that the bare JID of the remote client matches bare JID of the host. Previously it was comparing it with the user's email, which may be different from JID. 2. GaiaOAuthClient now fetches user's email. 3. SignalingConnector verifies that user's email matches the expected value stored in xmpp_login. If it doesn't, then the auth token was generated for a different account and the host treats it as an authentication error. BUG=128102 Review URL: https://chromiumcodereview.appspot.com/10332187 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137824 0039d316-1c4b-4281-b951-d872f2087c98
* Verify that xmpp_login specified in the config matches auth token.sergeyu@chromium.org2012-05-121-5/+6
| | | | | | | | | | | | | Previously the host would ignore the case when the oauth token doesn't match the xmpp_login specified in the config. That would lead to situations when host is connected with one account, but verifies incoming connections with a different account. Fix this by verifying that the JID that we receive from XMPP server matches the value in the config. Review URL: https://chromiumcodereview.appspot.com/10378110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136745 0039d316-1c4b-4281-b951-d872f2087c98
* Implement HostPortAllocator.sergeyu@chromium.org2012-05-011-3/+5
| | | | | | | | | | HostPortAllocator is a PortAllocator specific to Chromoting host. BUG=103991 Review URL: https://chromiumcodereview.appspot.com/10160013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134650 0039d316-1c4b-4281-b951-d872f2087c98
* Remoting daemon process to support unofficial client IDhclam@chromium.org2012-04-241-1/+11
| | | | | | | | | | | | | | Allow the use of unofficial client for the daemon process even if it is an official build. Which client ID to be used is chosen by the webapp. BUG=123693 TEST=Run a dev build webapp with an official daemon Review URL: http://codereview.chromium.org/10116040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133582 0039d316-1c4b-4281-b951-d872f2087c98
* Implement remoting::UrlFetcher.sergeyu@chromium.org2012-04-201-3/+0
| | | | | | | | | | The new UrlFetcher implements functionality that we need for the host. Also dropped content dependency from remoting. Review URL: http://codereview.chromium.org/10025042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133125 0039d316-1c4b-4281-b951-d872f2087c98
* Move OAuth token refreshing to SignalingConnector.sergeyu@chromium.org2012-04-181-4/+39
| | | | | | | | | BUG=118928 Review URL: http://codereview.chromium.org/9956161 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132749 0039d316-1c4b-4281-b951-d872f2087c98
* Implement SignalingConnector that reconnects XMPP when necessary.sergeyu@chromium.org2012-01-071-0/+60
BUG=107276 TEST=Me2me host is reconnects XMPP after host network connection is reset. Review URL: http://codereview.chromium.org/9053001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116805 0039d316-1c4b-4281-b951-d872f2087c98