Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(663)

Side by Side Diff: device/generic_sensor/platform_sensor_win.cc

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/generic_sensor/platform_sensor_win.h" 5 #include "device/generic_sensor/platform_sensor_win.h"
6 #include "base/single_thread_task_runner.h"
6 7
7 namespace device { 8 namespace device {
8 9
9 namespace { 10 namespace {
10 constexpr double kDefaultSensorReportingFrequency = 5.0; 11 constexpr double kDefaultSensorReportingFrequency = 5.0;
11 } // namespace 12 } // namespace
12 13
13 PlatformSensorWin::PlatformSensorWin( 14 PlatformSensorWin::PlatformSensorWin(
14 mojom::SensorType type, 15 mojom::SensorType type,
15 mojo::ScopedSharedBufferMapping mapping, 16 mojo::ScopedSharedBufferMapping mapping,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 base::Time::kMillisecondsPerSecond / minimal_reporting_interval_ms; 77 base::Time::kMillisecondsPerSecond / minimal_reporting_interval_ms;
77 return configuration.frequency() <= max_frequency; 78 return configuration.frequency() <= max_frequency;
78 } 79 }
79 80
80 PlatformSensorWin::~PlatformSensorWin() { 81 PlatformSensorWin::~PlatformSensorWin() {
81 sensor_reader_->SetClient(nullptr); 82 sensor_reader_->SetClient(nullptr);
82 sensor_thread_runner_->DeleteSoon(FROM_HERE, sensor_reader_); 83 sensor_thread_runner_->DeleteSoon(FROM_HERE, sensor_reader_);
83 } 84 }
84 85
85 } // namespace device 86 } // namespace device
OLDNEW
« no previous file with comments | « device/generic_sensor/platform_sensor_reader_linux.cc ('k') | device/generic_sensor/sensor_provider_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698