| 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 #ifndef CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include "content/common/geofencing_status.h" | 8 #include "content/common/geofencing_types.h" |
| 9 #include "content/public/browser/browser_message_filter.h" | 9 #include "content/public/browser/browser_message_filter.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 struct WebCircularGeofencingRegion; | 12 struct WebCircularGeofencingRegion; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 class GeofencingManager; | 17 class GeofencingManager; |
| 18 class ServiceWorkerContextWrapper; | 18 class ServiceWorkerContextWrapper; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 const std::string& region_id, | 32 const std::string& region_id, |
| 33 const blink::WebCircularGeofencingRegion& region, | 33 const blink::WebCircularGeofencingRegion& region, |
| 34 int64 service_worker_registration_id); | 34 int64 service_worker_registration_id); |
| 35 void OnUnregisterRegion(int thread_id, | 35 void OnUnregisterRegion(int thread_id, |
| 36 int request_id, | 36 int request_id, |
| 37 const std::string& region_id, | 37 const std::string& region_id, |
| 38 int64 service_worker_registration_id); | 38 int64 service_worker_registration_id); |
| 39 void OnGetRegisteredRegions(int thread_id, | 39 void OnGetRegisteredRegions(int thread_id, |
| 40 int request_id, | 40 int request_id, |
| 41 int64 service_worker_registration_id); | 41 int64 service_worker_registration_id); |
| 42 void OnSetMockProvider(int64 service_worker_registration_id, |
| 43 GeofencingMockState mock_state); |
| 44 void OnSetMockPosition(int64 service_worker_registration_id, |
| 45 double latitude, |
| 46 double longitude); |
| 42 | 47 |
| 43 void RegisterRegionCompleted(int thread_id, | 48 void RegisterRegionCompleted(int thread_id, |
| 44 int request_id, | 49 int request_id, |
| 45 GeofencingStatus result); | 50 GeofencingStatus result); |
| 46 void UnregisterRegionCompleted(int thread_id, | 51 void UnregisterRegionCompleted(int thread_id, |
| 47 int request_id, | 52 int request_id, |
| 48 GeofencingStatus result); | 53 GeofencingStatus result); |
| 49 | 54 |
| 50 scoped_refptr<GeofencingManager> manager_; | 55 scoped_refptr<GeofencingManager> manager_; |
| 51 base::WeakPtrFactory<GeofencingDispatcherHost> weak_factory_; | 56 base::WeakPtrFactory<GeofencingDispatcherHost> weak_factory_; |
| 52 | 57 |
| 53 DISALLOW_COPY_AND_ASSIGN(GeofencingDispatcherHost); | 58 DISALLOW_COPY_AND_ASSIGN(GeofencingDispatcherHost); |
| 54 }; | 59 }; |
| 55 | 60 |
| 56 } // namespace content | 61 } // namespace content |
| 57 | 62 |
| 58 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_ | 63 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_ |
| OLD | NEW |