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

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

Issue 6597044: Revert 76228 - Move core pieces of geolocation from chrome to content.This is... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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/win7_location_provider_win.h
===================================================================
--- content/browser/geolocation/win7_location_provider_win.h (revision 76230)
+++ content/browser/geolocation/win7_location_provider_win.h (working copy)
@@ -1,44 +0,0 @@
-// Copyright (c) 2010 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_WIN7_LOCATION_PROVIDER_WIN_H_
-#define CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_PROVIDER_WIN_H_
-
-#include "base/scoped_ptr.h"
-#include "base/task.h"
-#include "content/browser/geolocation/location_provider.h"
-#include "content/browser/geolocation/win7_location_api_win.h"
-#include "chrome/common/geoposition.h"
-
-// Location provider for Windows 7 that uses the Location and Sensors platform
-// to obtain position fixes.
-// TODO(allanwoj): Remove polling and let the api signal when a new location.
-// TODO(allanwoj): Possibly derive this class and the linux gps provider class
-// from a single SystemLocationProvider class as their implementation is very
-// similar.
-class Win7LocationProvider : public LocationProviderBase {
- public:
- Win7LocationProvider(Win7LocationApi* api);
- virtual ~Win7LocationProvider();
-
- // LocationProvider.
- virtual bool StartProvider(bool high_accuracy);
- virtual void StopProvider();
- virtual void GetPosition(Geoposition* position);
- virtual void UpdatePosition();
- virtual void OnPermissionGranted(const GURL& requesting_frame);
-
- private:
- // Task which runs in the child thread.
- void DoPollTask();
- // Will schedule a poll; i.e. enqueue DoPollTask deferred task.
- void ScheduleNextPoll(int interval);
-
- scoped_ptr<Win7LocationApi> api_;
- Geoposition position_;
- // Holder for the tasks which run on the thread; takes care of cleanup.
- ScopedRunnableMethodFactory<Win7LocationProvider> task_factory_;
-};
-
-#endif // CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_PROVIDER_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698