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

Unified Diff: content/common/geofencing_status.h

Issue 476293002: Pass through geofencing API calls to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and add region_id sanity check Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/common/geofencing_status.h
diff --git a/content/common/geofencing_status.h b/content/common/geofencing_status.h
new file mode 100644
index 0000000000000000000000000000000000000000..7cbf380a378a5aa7b548ff6c2bc4c29c91634b11
--- /dev/null
+++ b/content/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_COMMON_GEOFENCING_STATUS_H_
+#define CONTENT_COMMON_GEOFENCING_STATUS_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,
+
+ // 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_COMMON_GEOFENCING_STATUS_H_

Powered by Google App Engine
This is Rietveld 408576698