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

Unified Diff: content/renderer/geolocation_dispatcher.h

Issue 1367853002: Move GeolocationDispatcher into blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/geolocation_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/geolocation_dispatcher.h
diff --git a/content/renderer/geolocation_dispatcher.h b/content/renderer/geolocation_dispatcher.h
deleted file mode 100644
index 8d8d9d217c809f358ae95d328d3272a1edb11c06..0000000000000000000000000000000000000000
--- a/content/renderer/geolocation_dispatcher.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2012 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_RENDERER_GEOLOCATION_DISPATCHER_H_
-#define CONTENT_RENDERER_GEOLOCATION_DISPATCHER_H_
-
-#include <memory>
-
-#include "content/public/renderer/render_frame_observer.h"
-#include "third_party/WebKit/public/platform/modules/geolocation/geolocation.mojom.h"
-#include "third_party/WebKit/public/platform/modules/permissions/permission.mojom.h"
-#include "third_party/WebKit/public/web/WebGeolocationClient.h"
-#include "third_party/WebKit/public/web/WebGeolocationController.h"
-
-namespace blink {
-class WebGeolocationController;
-class WebGeolocationPermissionRequest;
-class WebGeolocationPermissionRequestManager;
-class WebGeolocationPosition;
-}
-
-namespace content {
-struct Geoposition;
-
-// GeolocationDispatcher is a delegate for Geolocation messages used by
-// WebKit.
-// It's the complement of GeolocationDispatcherHost.
-class GeolocationDispatcher
- : public RenderFrameObserver,
- public blink::WebGeolocationClient {
- public:
- explicit GeolocationDispatcher(RenderFrame* render_frame);
- ~GeolocationDispatcher() override;
-
- private:
- // WebGeolocationClient
- void startUpdating() override;
- void stopUpdating() override;
- void setEnableHighAccuracy(bool enable_high_accuracy) override;
- void setController(blink::WebGeolocationController* controller) override;
- bool lastPosition(blink::WebGeolocationPosition& position) override;
- void requestPermission(
- const blink::WebGeolocationPermissionRequest& permissionRequest) override;
- void cancelPermissionRequest(
- const blink::WebGeolocationPermissionRequest& permissionRequest) override;
-
- void QueryNextPosition();
- void OnPositionUpdate(blink::mojom::GeopositionPtr geoposition);
-
- // Permission for using geolocation has been set.
- void OnPermissionSet(int permission_request_id,
- blink::mojom::PermissionStatus status);
-
- std::unique_ptr<blink::WebGeolocationController> controller_;
-
- size_t num_pending_permission_requests_ = 0;
- std::unique_ptr<blink::WebGeolocationPermissionRequestManager>
- pending_permissions_;
- blink::mojom::GeolocationServicePtr geolocation_service_;
- bool enable_high_accuracy_;
- blink::mojom::PermissionServicePtr permission_service_;
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_GEOLOCATION_DISPATCHER_H_
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/geolocation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698