Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / html_viewer / geolocation_client_impl.h
blob6257d407e4c25b343c9108ba3c10d4c260b7ebd3
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/macros.h"
6 #include "base/memory/scoped_ptr.h"
7 #include "third_party/WebKit/public/web/WebGeolocationClient.h"
9 namespace html_viewer {
11 class GeolocationClientImpl : public blink::WebGeolocationClient {
12 public:
13 GeolocationClientImpl();
14 ~GeolocationClientImpl() override;
16 // WebGeolocationClient methods:
17 void startUpdating() override;
18 void stopUpdating() override;
19 void setEnableHighAccuracy(bool) override;
20 bool lastPosition(blink::WebGeolocationPosition&) override;
21 void requestPermission(
22 const blink::WebGeolocationPermissionRequest&) override;
23 void cancelPermissionRequest(
24 const blink::WebGeolocationPermissionRequest&) override;
25 void setController(blink::WebGeolocationController* controller) override;
27 private:
28 scoped_ptr<blink::WebGeolocationController> controller_;
30 DISALLOW_COPY_AND_ASSIGN(GeolocationClientImpl);
33 } // namespace html_viewer