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

Unified Diff: chrome/browser/geolocation/core_location_provider_mac.h

Issue 3092015: Add CoreLocation support to Chrome (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Final rearrangements and merge with trunk Created 10 years, 3 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: chrome/browser/geolocation/core_location_provider_mac.h
diff --git a/chrome/browser/geolocation/core_location_provider_mac.h b/chrome/browser/geolocation/core_location_provider_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..0d7d74706f8c3194dea5fca78790903ddea86954
--- /dev/null
+++ b/chrome/browser/geolocation/core_location_provider_mac.h
@@ -0,0 +1,36 @@
+// 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.
+
+// This file declares a CoreLocation provider that runs on Mac OS X (10.6).
+// Public for testing only - for normal usage this header should not be
+// required, as location_provider.h declares the needed factory function.
+
+#ifndef CHROME_BROWSER_GEOLOCATION_CORE_LOCATION_PROVIDER_MAC_H_
+#define CHROME_BROWSER_GEOLOCATION_CORE_LOCATION_PROVIDER_MAC_H_
+#pragma once
+
+#include "chrome/browser/geolocation/location_provider.h"
+#include "chrome/common/geoposition.h"
+
+class CoreLocationDataProviderMac;
+
+class CoreLocationProviderMac : public LocationProviderBase {
+ public:
+ explicit CoreLocationProviderMac();
+ ~CoreLocationProviderMac();
+
+ // LocationProvider
+ virtual bool StartProvider(bool high_accuracy);
+ virtual void StopProvider();
+ virtual void GetPosition(Geoposition* position);
+
+ // Receives new positions and calls UpdateListeners
+ void SetPosition(Geoposition* position);
+
+ private:
+ CoreLocationDataProviderMac* data_provider_;
+ Geoposition position_;
+};
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698