Commit c9c69205 authored by rpaquay@chromium.org's avatar rpaquay@chromium.org

Add explicit constructors with field initializers.

* Also add explicit destructors (to decrease code size due to inlining)

BUG=365101.

Review URL: https://codereview.chromium.org/255943003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267054 0039d316-1c4b-4281-b951-d872f2087c98
parent 8c64ed8f
......@@ -123,6 +123,28 @@ namespace device {
// static
const int BluetoothTaskManagerWin::kPollIntervalMs = 500;
BluetoothTaskManagerWin::AdapterState::AdapterState() : powered(false) {
}
BluetoothTaskManagerWin::AdapterState::~AdapterState() {
}
BluetoothTaskManagerWin::ServiceRecordState::ServiceRecordState() {
}
BluetoothTaskManagerWin::ServiceRecordState::~ServiceRecordState() {
}
BluetoothTaskManagerWin::DeviceState::DeviceState()
: bluetooth_class(0),
visible(false),
connected(false),
authenticated(false) {
}
BluetoothTaskManagerWin::DeviceState::~DeviceState() {
}
BluetoothTaskManagerWin::BluetoothTaskManagerWin(
scoped_refptr<base::SequencedTaskRunner> ui_task_runner)
: ui_task_runner_(ui_task_runner),
......
......@@ -35,18 +35,24 @@ class BluetoothTaskManagerWin
: public base::RefCountedThreadSafe<BluetoothTaskManagerWin> {
public:
struct AdapterState {
AdapterState();
~AdapterState();
std::string name;
std::string address;
bool powered;
};
struct ServiceRecordState {
ServiceRecordState();
~ServiceRecordState();
std::string name;
std::string address;
std::vector<uint8> sdp_bytes;
};
struct DeviceState {
DeviceState();
~DeviceState();
std::string name;
std::string address;
uint32 bluetooth_class;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment