OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/geolocation/geolocation_service_context.h" | 5 #include "device/geolocation/geolocation_service_context.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 namespace content { | 9 #include "device/geolocation/geolocation_service_impl.h" |
| 10 |
| 11 namespace device { |
10 | 12 |
11 GeolocationServiceContext::GeolocationServiceContext() : paused_(false) { | 13 GeolocationServiceContext::GeolocationServiceContext() : paused_(false) { |
12 } | 14 } |
13 | 15 |
14 GeolocationServiceContext::~GeolocationServiceContext() { | 16 GeolocationServiceContext::~GeolocationServiceContext() { |
15 } | 17 } |
16 | 18 |
17 void GeolocationServiceContext::CreateService( | 19 void GeolocationServiceContext::CreateService( |
18 const base::Closure& update_callback, | 20 const base::Closure& update_callback, |
19 mojo::InterfaceRequest<blink::mojom::GeolocationService> request) { | 21 mojo::InterfaceRequest<blink::mojom::GeolocationService> request) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 service->SetOverride(*geoposition_override_.get()); | 56 service->SetOverride(*geoposition_override_.get()); |
55 } | 57 } |
56 } | 58 } |
57 | 59 |
58 void GeolocationServiceContext::ClearOverride() { | 60 void GeolocationServiceContext::ClearOverride() { |
59 for (auto* service : services_) { | 61 for (auto* service : services_) { |
60 service->ClearOverride(); | 62 service->ClearOverride(); |
61 } | 63 } |
62 } | 64 } |
63 | 65 |
64 } // namespace content | 66 } // namespace device |
OLD | NEW |