blob: 12899898ee55529cbc63443619c48f216b4fe542 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_COMMON_GEOFENCING_TYPES_H_
#define CONTENT_COMMON_GEOFENCING_TYPES_H_
namespace content {
enum GeofencingStatus {
// Everything is ok.
GEOFENCING_STATUS_OK,
// Operation failed because there is no Service Worker.
GEOFENCING_STATUS_OPERATION_FAILED_NO_SERVICE_WORKER,
// Operation failed because geofencing is not available.
GEOFENCING_STATUS_OPERATION_FAILED_SERVICE_NOT_AVAILABLE,
// Unregistering failed because region was not registered.
GEOFENCING_STATUS_UNREGISTRATION_FAILED_NOT_REGISTERED,
// Generic error.
GEOFENCING_STATUS_ERROR,
// Used for IPC message range checks.
GEOFENCING_STATUS_LAST = GEOFENCING_STATUS_ERROR
};
const char* GeofencingStatusToString(GeofencingStatus status);
enum class GeofencingMockState {
// Not currently mocking, use real geofencing service.
NONE,
// Mock a geofencing service that isn't available.
SERVICE_UNAVAILABLE,
// Mock a geofencing service that is available.
SERVICE_AVAILABLE,
// Used for IPC message range checks.
LAST = SERVICE_AVAILABLE
};
} // namespace content
#endif // CONTENT_COMMON_GEOFENCING_TYPES_H_
|