| Index: content/browser/geolocation/location_provider_base.h
|
| diff --git a/content/browser/geolocation/location_provider_base.h b/content/browser/geolocation/location_provider_base.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a95efa1546caf3c4f91b8da81ab8df7402e8a3e9
|
| --- /dev/null
|
| +++ b/content/browser/geolocation/location_provider_base.h
|
| @@ -0,0 +1,36 @@
|
| +// 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_
|
|
|