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

Unified Diff: blimp/engine/feature/geolocation/blimp_location_provider.h

Issue 2629743003: Remove all blimp engine code (Closed)
Patch Set: Use consistent comment style in //chrome Created 3 years, 11 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: blimp/engine/feature/geolocation/blimp_location_provider.h
diff --git a/blimp/engine/feature/geolocation/blimp_location_provider.h b/blimp/engine/feature/geolocation/blimp_location_provider.h
deleted file mode 100644
index 89fd5baf87f36a1a1aa0e5492b4a67b7c3c4d4d2..0000000000000000000000000000000000000000
--- a/blimp/engine/feature/geolocation/blimp_location_provider.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) 2016 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 BLIMP_ENGINE_FEATURE_GEOLOCATION_BLIMP_LOCATION_PROVIDER_H_
-#define BLIMP_ENGINE_FEATURE_GEOLOCATION_BLIMP_LOCATION_PROVIDER_H_
-
-#include "base/memory/weak_ptr.h"
-#include "blimp/common/proto/geolocation.pb.h"
-#include "device/geolocation/geoposition.h"
-#include "device/geolocation/location_provider.h"
-
-namespace blimp {
-namespace engine {
-
-// Location provider for Blimp using the device's provider over the network.
-class BlimpLocationProvider : public device::LocationProvider {
- public:
- // A delegate that implements a subset of LocationProvider's functions.
- // All methods will be executed on |delegate_task_runner_|.
- class Delegate {
- public:
- using GeopositionReceivedCallback =
- base::Callback<void(const device::Geoposition&)>;
- virtual ~Delegate() {}
-
- virtual void RequestAccuracy(
- GeolocationSetInterestLevelMessage::Level level) = 0;
- virtual void OnPermissionGranted() = 0;
- virtual void SetUpdateCallback(
- const GeopositionReceivedCallback& callback) = 0;
- };
-
- BlimpLocationProvider(
- base::WeakPtr<Delegate> delegate,
- scoped_refptr<base::SequencedTaskRunner> delegate_task_runner);
- ~BlimpLocationProvider() override;
-
- // device::LocationProvider implementation.
- bool StartProvider(bool high_accuracy) override;
- void StopProvider() override;
- const device::Geoposition& GetPosition() override;
- void OnPermissionGranted() override;
- void SetUpdateCallback(
- const LocationProviderUpdateCallback& callback) override;
-
- private:
- void OnLocationUpdate(const device::Geoposition& geoposition);
-
- // This delegate handles a subset of the LocationProvider functionality.
- base::WeakPtr<Delegate> delegate_;
-
- scoped_refptr<base::SequencedTaskRunner> delegate_task_runner_;
- device::Geoposition cached_position_;
-
- // True if a successful StartProvider call has occured.
- bool is_started_;
-
- LocationProviderUpdateCallback location_update_callback_;
-
- base::WeakPtrFactory<BlimpLocationProvider> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(BlimpLocationProvider);
-};
-
-} // namespace engine
-} // namespace blimp
-
-#endif // BLIMP_ENGINE_FEATURE_GEOLOCATION_BLIMP_LOCATION_PROVIDER_H_
« no previous file with comments | « blimp/engine/feature/engine_settings_feature_unittest.cc ('k') | blimp/engine/feature/geolocation/blimp_location_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698