summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/bluetooth_device_win.cc
Commit message (Collapse)AuthorAgeFilesLines
* There was a missing check to return the right record.etienneb@chromium.org2013-07-311-1/+2
| | | | | | | | | R=erikwright@chromium.org, youngki@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/21089002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214751 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of strings headers in crypto/, dbus/, device/.avi@chromium.org2013-06-111-1/+1
| | | | | | | | | | BUG=247723 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/16123026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205457 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented BluetoothDeviceWin::ConnectToProfile()youngki@chromium.org2013-05-051-23/+13
| | | | | | | | | | | | I mostly reused BluetoothServiceRecordWin to implement this method (for now). Even if we deprecate BluetoothServiceRecord, I think we could keep BluetoothServiceRecordWin for Windows platform. After I submit this I will send out cleanup CLs to delete the unused code. BUG=229636 Review URL: https://chromiumcodereview.appspot.com/14582010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198350 0039d316-1c4b-4281-b951-d872f2087c98
* Bluetooth: gather usage metricskeybuk@chromium.org2013-04-291-0/+12
| | | | | | | | | | | Resubmit; this was reverted in 196993 due to a missing initialization in a unit test. BUG=233820 TEST=chrome:///histograms Review URL: https://codereview.chromium.org/14109028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197148 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 196990 "Bluetooth: gather usage metrics"thakis@chromium.org2013-04-281-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Broke this test on the CrOs main waterfall bots: MetricsLogTest.RecordEnvironment: [19521:19521:0428/105537:1031147919:FATAL:dbus_thread_manager.cc(562)] Check failed: g_dbus_thread_manager. DBusThreadManager::Get() called before Initialize() [0x7fd74d7ce060] base::debug::StackTrace::StackTrace() [0x7fd74d8085ab] logging::LogMessage::~LogMessage() [0x7fd744a60cfe] chromeos::DBusThreadManager::Get() [0x000003d84f8f] chromeos::BluetoothAdapterChromeOS::BluetoothAdapterChromeOS() [0x000003d82c19] device::BluetoothAdapterFactory::GetAdapter() [0x0000026f1274] MetricsLog::RecordEnvironmentProto() [0x0000026f0bf2] MetricsLog::RecordEnvironment() [0x0000013ad864] MetricsLogTest::TestRecordEnvironment() [0x0000013a95d1] MetricsLogTest_RecordEnvironment_Test::TestBody() [0x000002f37967] testing::internal::HandleSehExceptionsInMethodIfSupported<>() [0x000002f35132] testing::internal::HandleExceptionsInMethodIfSupported<>() [0x000002f2a4e6] testing::Test::Run() [0x000002f2ad0a] testing::TestInfo::Run() [0x000002f2b438] testing::TestCase::Run() [0x000002f303e3] testing::internal::UnitTestImpl::RunAllTests() [0x000002f3876e] testing::internal::HandleSehExceptionsInMethodIfSupported<>() [0x000002f358f7] testing::internal::HandleExceptionsInMethodIfSupported<>() [0x000002f2eeb2] testing::UnitTest::Run() [0x0000045f17ac] base::TestSuite::Run() [0x0000042fe020] content::UnitTestTestSuite::Run() [0x00000306ea62] main [0x7fd73e27b76d] __libc_start_ > Bluetooth: gather usage metrics > > BUG=233820 > TEST=chrome:///histograms > R=isherman@chromium.org, satorux@chromium.org, youngki@chromium.org > > Review URL: https://codereview.chromium.org/13872017 TBR=keybuk@chromium.org Review URL: https://codereview.chromium.org/14001008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196993 0039d316-1c4b-4281-b951-d872f2087c98
* Bluetooth: gather usage metricskeybuk@chromium.org2013-04-281-0/+12
| | | | | | | | | | BUG=233820 TEST=chrome:///histograms R=isherman@chromium.org, satorux@chromium.org, youngki@chromium.org Review URL: https://codereview.chromium.org/13872017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196990 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented BluetoothDeviceMac::ConnectToProfile().youngki@chromium.org2013-04-241-0/+1
| | | | | | | | | | | | This CL implements BluetoothProfileMac::Connect(), which makes an explicit outgoing connection to the device. I will add unittests once I get a preliminary review from reviewers. BUG=229636 Review URL: https://chromiumcodereview.appspot.com/14405008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196099 0039d316-1c4b-4281-b951-d872f2087c98
* Add abstract BluetoothProfile classkeybuk@chromium.org2013-04-191-0/+6
| | | | | | | | | | | | | This class will form the base of the 4.0 BR+LE compatible API, allowing for both incoming connections for profiles we're clients for and implementing services within Chrome. BUG=229636 TEST=none Review URL: https://chromiumcodereview.appspot.com/13862023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195280 0039d316-1c4b-4281-b951-d872f2087c98
* Bluetooth: clean up Bluetooth classeskeybuk@chromium.org2013-04-051-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The abstract BluetoothDevice class has a few problems inherited from its origin as a ChromeOS-specific class split between implementation and platform-specific components. Clean those problems up, specifically: - replace bluetooth_class_, name_ and address_ non-abstract members with getter functions that the platform should implement. - also make IsConnected(), IsConnectable() and IsConnecting() abstract functions rather than providing an implementation - remove IsVisible() which was a CrOS-specific hack - remove IsBonded(), use IsPaired() instead - remove service_uuids_ non-abstract member; make GetServices return a copy of the list to allow implementations to fetch it on demand BluetoothDevice retains implementations for GetName(), GetDisplayType() and ProvidesServiceWithUUID() since those can be implemented entirely using platform-provided information functions and would be identical in each platform. Also rename BluetoothAdapter::address() and BluetoothAdapter::name() to GetAddress() and GetName() to match since they are also pure virtual. BUG=none TEST=device_unittests, browser_tests, unit_tests Review URL: https://chromiumcodereview.appspot.com/13416005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192474 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented BluetoothDeviceWin.youngki@chromium.org2013-02-251-12/+25
| | | | | | | | BUG=135470 Review URL: https://chromiumcodereview.appspot.com/12217157 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184432 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented Device/Service discovery with incremented timeout values.youngki@chromium.org2013-02-211-2/+63
| | | | | | | | | | | BluetoothTaskManagerWin::StartDiscovery() calls BluetoothTaskManagerWin::DiscoverDevices() with timeout = 1. DiscoverDevices() then issues a device inquiry for timeout period, then posts another DiscoverDevices() with timeout+1. DiscoverDevices() stops posting itself when StopDiscovery() is called, or timeout reaches maximum (48). BUG=135470,168361 Review URL: https://chromiumcodereview.appspot.com/12041035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183869 0039d316-1c4b-4281-b951-d872f2087c98
* bluetooth: ConnectErrorCode added in the BluetoothDevice::Connect error callbackdeymo@chromium.org2012-12-181-1/+1
| | | | | | | | | | | | Currently, only the interface is changed to accept an error callback with one ConnectErrorCode argument, but all the functions will pass UNKNOW_ERROR. BUG=chromium-os:27902 TEST=build it for chromeos daisy. Review URL: https://chromiumcodereview.appspot.com/11485014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173656 0039d316-1c4b-4281-b951-d872f2087c98
* Added empty implementations for Bluetooth Windows files.youngki@chromium.org2012-10-221-0/+121
BUG=135470 Review URL: https://chromiumcodereview.appspot.com/11229012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163399 0039d316-1c4b-4281-b951-d872f2087c98