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.
device::BluetoothAdapterChromeOS: Implement reference counted sessions.
Paving the way towards the new DiscoverySession API that's in the works, this patch modifies BluetoothAdapterChromeOS to keep a count of device discovery sessions that have been added and removed by clients, to prevent concurrent sessions from cancelling eachother out. This patch also introduces two new internal API methods (AddDiscoverySession and RemoveDiscoverySession) which will be used by the new DiscoverySession class once we add it. BUG=345006,239702 TEST=1. device_unittests. 2. - Start two concurrent discovery sessions, one via chrome://settings and the other via the Aura Shell. - Close the aura shell menu. Device discovery should continue, until the "Add Bluetooth Device" overlay in chrome://settings is dismissed by clicking "Cancel". Review URL: https://codereview.chromium.org/169663003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253517 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
armansito@chromium.org
committed
Feb 26, 2014
1 parent
3f85526
commit 52f6b5f
Showing
12 changed files
with
795 additions
and
95 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
Oops, something went wrong.