Add remoting and PPAPI tests to GN build
[chromium-blink-merge.git] / content / common / geofencing_types.h
blob12899898ee55529cbc63443619c48f216b4fe542
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.
5 #ifndef CONTENT_COMMON_GEOFENCING_TYPES_H_
6 #define CONTENT_COMMON_GEOFENCING_TYPES_H_
8 namespace content {
10 enum GeofencingStatus {
11 // Everything is ok.
12 GEOFENCING_STATUS_OK,
14 // Operation failed because there is no Service Worker.
15 GEOFENCING_STATUS_OPERATION_FAILED_NO_SERVICE_WORKER,
17 // Operation failed because geofencing is not available.
18 GEOFENCING_STATUS_OPERATION_FAILED_SERVICE_NOT_AVAILABLE,
20 // Unregistering failed because region was not registered.
21 GEOFENCING_STATUS_UNREGISTRATION_FAILED_NOT_REGISTERED,
23 // Generic error.
24 GEOFENCING_STATUS_ERROR,
26 // Used for IPC message range checks.
27 GEOFENCING_STATUS_LAST = GEOFENCING_STATUS_ERROR
30 const char* GeofencingStatusToString(GeofencingStatus status);
32 enum class GeofencingMockState {
33 // Not currently mocking, use real geofencing service.
34 NONE,
36 // Mock a geofencing service that isn't available.
37 SERVICE_UNAVAILABLE,
39 // Mock a geofencing service that is available.
40 SERVICE_AVAILABLE,
42 // Used for IPC message range checks.
43 LAST = SERVICE_AVAILABLE
46 } // namespace content
48 #endif // CONTENT_COMMON_GEOFENCING_TYPES_H_