1 // Copyright 2015 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.
4 
5 #ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_STATUS_H_
6 #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_STATUS_H_
7 
8 namespace content {
9 
10 // The status of BackgroundSyncManager actions. These are recorded in histograms
11 // (as BackgroundSyncResult) so don't remove any entries and always append to
12 // the end.
13 enum BackgroundSyncStatus {
14   BACKGROUND_SYNC_STATUS_OK = 0,
15   BACKGROUND_SYNC_STATUS_STORAGE_ERROR,
16   BACKGROUND_SYNC_STATUS_NOT_FOUND,
17   BACKGROUND_SYNC_STATUS_NO_SERVICE_WORKER,
18   BACKGROUND_SYNC_STATUS_NOT_ALLOWED,
19   BACKGROUND_SYNC_STATUS_PERMISSION_DENIED,
20   BACKGROUND_SYNC_STATUS_MAX = BACKGROUND_SYNC_STATUS_PERMISSION_DENIED
21 };
22 
23 }  // namespace content
24 
25 #endif  // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_STATUS_H_
26