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

Unified Diff: chrome/renderer/render_view.h

Issue 5612005: Client-based geolocation support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on trunk Created 10 years 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/renderer/render_view.h
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index cdd210271264834f0ab89b6b781a39994d08f6f8..8b0fb5bb5c7a03f566ac1007f4ca49617f503ca4 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -64,6 +64,7 @@ class DomAutomationController;
class DOMUIBindings;
class ExternalHostBindings;
class FilePath;
+class GeolocationDispatcher;
class GeolocationDispatcherOld;
class GURL;
class ListValue;
@@ -120,6 +121,7 @@ class WebDataSource;
class WebDocument;
class WebDragData;
class WebFrame;
+class WebGeolocationClient;
class WebGeolocationServiceInterface;
class WebImage;
class WebInputElement;
@@ -482,7 +484,11 @@ class RenderView : public RenderWidget,
virtual void didClearAutoFillSelection(const WebKit::WebNode& node);
virtual void didAcceptAutocompleteSuggestion(
const WebKit::WebInputElement& element);
+#if defined(ENABLE_CLIENT_BASED_GEOLOCATION)
+ virtual WebKit::WebGeolocationClient* geolocationClient();
+#else
virtual WebKit::WebGeolocationService* geolocationService();
+#endif
virtual WebKit::WebSpeechInputController* speechInputController(
WebKit::WebSpeechInputListener* listener);
virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient();
@@ -1374,7 +1380,11 @@ class RenderView : public RenderWidget,
scoped_refptr<AudioMessageFilter> audio_message_filter_;
// The geolocation dispatcher attached to this view, lazily initialized.
+#if ENABLE_CLIENT_BASED_GEOLOCATION
+ scoped_ptr<GeolocationDispatcher> geolocation_dispatcher_;
+#else
scoped_ptr<GeolocationDispatcherOld> geolocation_dispatcher_;
+#endif
// Handles accessibility requests into the renderer side, as well as
// maintains the cache and other features of the accessibility tree.

Powered by Google App Engine
This is Rietveld 408576698