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

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

Issue 2188933002: Revert of Reland: Geolocation: move from content/browser to device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « content/browser/geolocation/OWNERS ('k') | content/browser/geolocation/empty_wifi_data_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/geolocation/empty_wifi_data_provider.h
diff --git a/content/browser/geolocation/empty_wifi_data_provider.h b/content/browser/geolocation/empty_wifi_data_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..e591b9b5a55518173036be64e89b23021eab8ae6
--- /dev/null
+++ b/content/browser/geolocation/empty_wifi_data_provider.h
@@ -0,0 +1,32 @@
+// Copyright 2013 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_EMPTY_WIFI_DATA_PROVIDER_H_
+#define CONTENT_BROWSER_GEOLOCATION_EMPTY_WIFI_DATA_PROVIDER_H_
+
+#include "base/macros.h"
+#include "content/browser/geolocation/wifi_data_provider.h"
+
+namespace content {
+
+// An implementation of WifiDataProvider that does not provide any
+// data. Used on platforms where a real implementation is not available.
+class EmptyWifiDataProvider : public WifiDataProvider {
+ public:
+ EmptyWifiDataProvider();
+
+ // WifiDataProvider implementation
+ void StartDataProvider() override { }
+ void StopDataProvider() override { }
+ bool GetData(WifiData* data) override;
+
+ private:
+ ~EmptyWifiDataProvider() override;
+
+ DISALLOW_COPY_AND_ASSIGN(EmptyWifiDataProvider);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_GEOLOCATION_EMPTY_WIFI_DATA_PROVIDER_H_
« no previous file with comments | « content/browser/geolocation/OWNERS ('k') | content/browser/geolocation/empty_wifi_data_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698