Chromium Code Reviews| Index: content/public/common/geofencing_status.h |
| diff --git a/content/public/common/geofencing_status.h b/content/public/common/geofencing_status.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2bb96e9dd91d597f5fd34c39546daa066843a2c6 |
| --- /dev/null |
| +++ b/content/public/common/geofencing_status.h |
| @@ -0,0 +1,31 @@ |
| +// 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_PUBLIC_COMMON_GEOFENCING_STATUS_H_ |
|
jochen (gone - plz use gerrit)
2014/09/11 12:47:27
why is this in content/public?
Marijn Kruisselbrink
2014/09/11 17:57:52
That's what I was wondering... Probably because wh
jochen (gone - plz use gerrit)
2014/09/12 13:52:54
it should be in public/ if somebody outside of con
|
| +#define CONTENT_PUBLIC_COMMON_GEOFENCING_STATUS_H_ |
| + |
| +namespace content { |
| + |
| +enum GeofencingStatus { |
| + // Everything is ok. |
| + GEOFENCING_STATUS_OK, |
| + |
| + // Registration failed because there is no Service Worker. |
| + GEOFENCING_STATUS_REGISTRATION_FAILED_NO_SERVICE_WORKER, |
| + |
| + // Registration failed because geofencing is not available. |
| + GEOFENCING_STATUS_REGISTRATION_FAILED_SERVICE_NOT_AVAILABLE, |
| + |
| + // Generic error. |
| + GEOFENCING_STATUS_ERROR, |
| + |
| + // Used for IPC message range checks. |
| + GEOFENCING_STATUS_LAST = GEOFENCING_STATUS_ERROR |
| +}; |
| + |
| +const char* GeofencingStatusToString(GeofencingStatus status); |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_COMMON_GEOFENCING_STATUS_H_ |