summaryrefslogtreecommitdiffstats
path: root/sync/engine/nudge_source.h
blob: d60b51558defb38f6b14d9dc9ba3b70aa8b00b95 (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
// Copyright (c) 2012 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 SYNC_ENGINE_NUDGE_SOURCE_H_
#define SYNC_ENGINE_NUDGE_SOURCE_H_

namespace syncer {

enum NudgeSource {
  NUDGE_SOURCE_UNKNOWN = 0,
  // We received an invalidation message and are nudging to check for updates.
  NUDGE_SOURCE_NOTIFICATION,
  // A local change occurred (e.g. bookmark moved).
  NUDGE_SOURCE_LOCAL,
  // A local event is triggering an optimistic datatype refresh.
  NUDGE_SOURCE_LOCAL_REFRESH,
};

const char* GetNudgeSourceString(NudgeSource nudge_source);

}  // namespace syncer

#endif  // SYNC_ENGINE_NUDGE_SOURCE_H_