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

Unified Diff: content/browser/geolocation/wifi_data_provider_chromeos.h

Issue 2192683002: Reland 2:Geolocation: move from content/browser to device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ignore size_t_to_int truncation warning Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/geolocation/wifi_data_provider_chromeos.h
diff --git a/content/browser/geolocation/wifi_data_provider_chromeos.h b/content/browser/geolocation/wifi_data_provider_chromeos.h
deleted file mode 100644
index df74768fa49891bff63cd8f8c012d59b1adacfd6..0000000000000000000000000000000000000000
--- a/content/browser/geolocation/wifi_data_provider_chromeos.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_
-#define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_
-
-#include <memory>
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "content/browser/geolocation/wifi_data_provider.h"
-#include "content/browser/geolocation/wifi_polling_policy.h"
-
-namespace content {
-
-class CONTENT_EXPORT WifiDataProviderChromeOs : public WifiDataProvider {
- public:
- WifiDataProviderChromeOs();
-
- // WifiDataProvider
- void StartDataProvider() override;
- void StopDataProvider() override;
- bool GetData(WifiData* data) override;
-
- private:
- friend class GeolocationChromeOsWifiDataProviderTest;
- ~WifiDataProviderChromeOs() override;
-
- // UI thread
- void DoWifiScanTaskOnUIThread(); // The polling task
- void DoStartTaskOnUIThread();
-
- // Client thread
- void DidWifiScanTaskNoResults();
- void DidWifiScanTask(const WifiData& new_data);
-
- // Will schedule a scan; i.e. enqueue DoWifiScanTask deferred task.
- void ScheduleNextScan(int interval);
-
- // Will schedule starting of the scanning process.
- void ScheduleStart();
-
- // Will schedule stopping of the scanning process.
- void ScheduleStop();
-
- // Get access point data from chromeos.
- bool GetAccessPointData(WifiData::AccessPointDataSet* data);
-
- // Controls the polling update interval. (client thread)
- std::unique_ptr<WifiPollingPolicy> polling_policy_;
-
- // The latest wifi data. (client thread)
- WifiData wifi_data_;
-
- // Whether we have strated the data provider. (client thread)
- bool started_;
-
- // Whether we've successfully completed a scan for WiFi data. (client thread)
- bool is_first_scan_complete_;
-
- DISALLOW_COPY_AND_ASSIGN(WifiDataProviderChromeOs);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_
« no previous file with comments | « content/browser/geolocation/wifi_data_provider.cc ('k') | content/browser/geolocation/wifi_data_provider_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698