#include "third_party/WebKit/public/web/WebGeolocationClient.h"
#include "third_party/WebKit/public/web/WebGeolocationPosition.h"
#include "third_party/WebKit/public/web/WebGeolocationError.h"
+#include "third_party/WebKit/public/web/WebUserGestureIndicator.h"
using blink::WebGeolocationController;
using blink::WebGeolocationError;
namespace content {
-GeolocationDispatcher::GeolocationDispatcher(RenderViewImpl* render_view)
- : RenderViewObserver(render_view),
+GeolocationDispatcher::GeolocationDispatcher(RenderFrame* render_frame)
+ : RenderFrameObserver(render_frame),
pending_permissions_(new WebGeolocationPermissionRequestManager()),
enable_high_accuracy_(false),
updating_(false) {
return handled;
}
-void GeolocationDispatcher::geolocationDestroyed() {
- controller_.reset();
- DCHECK(!updating_);
-}
-
void GeolocationDispatcher::startUpdating() {
GURL url;
Send(new GeolocationHostMsg_StartUpdating(
int bridge_id = pending_permissions_->add(permissionRequest);
base::string16 origin = permissionRequest.securityOrigin().toString();
Send(new GeolocationHostMsg_RequestPermission(
- routing_id(), bridge_id, GURL(origin)));
+ routing_id(), bridge_id, GURL(origin),
+ blink::WebUserGestureIndicator::isProcessingUserGesture()));
}
// TODO(jknotten): Change the messages to use a security origin, so no