blob: dd9251501d67c6152bb9b0b8e28b31c97d721a77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright (c) 2011 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.
#include "content/browser/geolocation/geolocation_permission_context.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/common/geolocation_messages.h"
// static
void GeolocationPermissionContext::SetGeolocationPermissionResponse(
int render_process_id, int render_view_id, int bridge_id, bool is_allowed) {
RenderViewHost* r = RenderViewHost::FromID(render_process_id, render_view_id);
if (r) {
r->Send(new GeolocationMsg_PermissionSet(render_view_id, bridge_id,
is_allowed));
}
}
GeolocationPermissionContext::GeolocationPermissionContext() {}
GeolocationPermissionContext::~GeolocationPermissionContext() {}
|