Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Side by Side Diff: content/child/geofencing/web_geofencing_provider_impl.cc

Issue 1972733002: Delete geofencing implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark histogram suffix as obsolete Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/child/geofencing/web_geofencing_provider_impl.h ('k') | content/common/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/child/geofencing/web_geofencing_provider_impl.h"
6
7 #include "content/child/geofencing/geofencing_dispatcher.h"
8 #include "content/child/thread_safe_sender.h"
9
10 namespace content {
11
12 WebGeofencingProviderImpl::WebGeofencingProviderImpl(
13 ThreadSafeSender* thread_safe_sender)
14 : thread_safe_sender_(thread_safe_sender) {
15 }
16
17 WebGeofencingProviderImpl::~WebGeofencingProviderImpl() {
18 }
19
20 void WebGeofencingProviderImpl::SetMockProvider(bool service_available) {
21 GetDispatcher()->SetMockProvider(service_available);
22 }
23
24 void WebGeofencingProviderImpl::ClearMockProvider() {
25 GetDispatcher()->ClearMockProvider();
26 }
27
28 void WebGeofencingProviderImpl::SetMockPosition(double latitude,
29 double longitude) {
30 GetDispatcher()->SetMockPosition(latitude, longitude);
31 }
32
33 void WebGeofencingProviderImpl::registerRegion(
34 const blink::WebString& regionId,
35 const blink::WebCircularGeofencingRegion& region,
36 blink::WebServiceWorkerRegistration* service_worker_registration,
37 blink::WebGeofencingCallbacks* callbacks) {
38 GetDispatcher()->RegisterRegion(
39 regionId, region, service_worker_registration, callbacks);
40 }
41
42 void WebGeofencingProviderImpl::unregisterRegion(
43 const blink::WebString& regionId,
44 blink::WebServiceWorkerRegistration* service_worker_registration,
45 blink::WebGeofencingCallbacks* callbacks) {
46 GetDispatcher()->UnregisterRegion(
47 regionId, service_worker_registration, callbacks);
48 }
49
50 void WebGeofencingProviderImpl::getRegisteredRegions(
51 blink::WebServiceWorkerRegistration* service_worker_registration,
52 blink::WebGeofencingRegionsCallbacks* callbacks) {
53 GetDispatcher()->GetRegisteredRegions(service_worker_registration, callbacks);
54 }
55
56 GeofencingDispatcher* WebGeofencingProviderImpl::GetDispatcher() {
57 return GeofencingDispatcher::GetOrCreateThreadSpecificInstance(
58 thread_safe_sender_.get());
59 }
60
61 } // namespace content
OLDNEW
« no previous file with comments | « content/child/geofencing/web_geofencing_provider_impl.h ('k') | content/common/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698