190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved.
22a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
32a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// found in the LICENSE file.
42a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
52385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch#ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_STATUS_H_
62385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch#define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_STATUS_H_
72a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
82a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)namespace sync_file_system {
92a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)enum SyncFileStatus {
112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  // The file has unknown sync status (e.g. the file is missing or there
122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  // was an error while retrieving the sync status for the file).
132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  SYNC_FILE_STATUS_UNKNOWN,
142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  // The file has no pending local changes (may have pending remote changes
162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  // though).
172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  SYNC_FILE_STATUS_SYNCED,
182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  // The file has pending local changes that haven't been reflected to the
202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  // remote side.
212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  SYNC_FILE_STATUS_HAS_PENDING_CHANGES,
222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  // The file is in conflicting state.
242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  SYNC_FILE_STATUS_CONFLICTING,
252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)};
262a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
27424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)}  // namespace sync_file_system
282a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
292385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch#endif  // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_STATUS_H_
30