// Copyright (c) 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_LOCATION_PROVIDER_BASE_H_ #define CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_BASE_H_ #include "base/macros.h" #include "content/common/content_export.h" #include "content/public/browser/location_provider.h" namespace content { class CONTENT_EXPORT LocationProviderBase : NON_EXPORTED_BASE(public LocationProvider) { public: LocationProviderBase(); ~LocationProviderBase() override; protected: void NotifyCallback(const Geoposition& position); // Overridden from LocationProvider: void SetUpdateCallback( const LocationProviderUpdateCallback& callback) override; void RequestRefresh() override; private: LocationProviderUpdateCallback callback_; DISALLOW_COPY_AND_ASSIGN(LocationProviderBase); }; } // namespace content #endif // CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_BASE_H_