summaryrefslogtreecommitdiffstats
path: root/content/browser/geolocation/location_provider_base.cc
blob: 2a2d087dd82e90701f6cdf1ea10f45deaa959865 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) 2013 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/location_provider_base.h"

namespace content {

LocationProviderBase::LocationProviderBase() {
}

LocationProviderBase::~LocationProviderBase() {
}

void LocationProviderBase::NotifyCallback(const Geoposition& position) {
  if (!callback_.is_null())
    callback_.Run(this, position);
}

void LocationProviderBase::SetUpdateCallback(
    const LocationProviderUpdateCallback& callback) {
  callback_ = callback;
}

void LocationProviderBase::RequestRefresh() {
}

}  // namespace content