forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Webapp Refactor] Remove remoting.SessionConnector.
remoting.SessionConnector is currently responsible for creating the plugin, the signal strategy and the clientSession. It also magically disposes the plugin when the clientSession finishes. However, the session is not exposed to the caller elsewhere, which makes it hard for the caller to dispose of the session before it is connected, e.g. Cancel a PIN entry. It is currently a stateful object that keeps track of the host, credentials provider, strategy of the created session, which is redundant. This CL 1. Offloads the creation of the clientSession to the remoting.ClientSessionFactory. It also allow the caller to configure a clientSession prior to connecting. The remoting.ClientSessionFactory is essentially stateless except for a few predefined ClientSession construction parameters. 2. Allow the caller to have a different instance of ClientSession.EventHandler for each instance ClientSession created. 3. Revives remoting.MockClientPlugin and uses it for remoting.ClientSessionFactory unittests. Ownership graph before: Activity -> SessionConenctor -> ClientSession Ownership graph after: Activity -> ClientSession BUG=477522 TEST=All browser tests passed on https://chromium-swarm.appspot.com/user/tasks?sort=created_ts&state=all&limit=10&task_name=chromoting_integration_tests Review URL: https://codereview.chromium.org/1047413006 Cr-Commit-Position: refs/heads/master@{#325745}
- Loading branch information
kelvinp
authored and
Commit bot
committed
Apr 18, 2015
1 parent
565fe20
commit 4c69287
Showing
14 changed files
with
410 additions
and
599 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.