summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/engine/nudge_source.h
blob: 9968b8a7c9c386e943d15b611d22c710dcf15701 (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
25
26
27
// 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 CHROME_BROWSER_SYNC_ENGINE_NUDGE_SOURCE_H_
#define CHROME_BROWSER_SYNC_ENGINE_NUDGE_SOURCE_H_
#pragma once

namespace browser_sync {

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 previous sync cycle did not fully complete (e.g. HTTP error).
  NUDGE_SOURCE_CONTINUATION,
  // A local event is triggering an optimistic datatype refresh.
  NUDGE_SOURCE_LOCAL_REFRESH,
};

const char* GetNudgeSourceString(NudgeSource nudge_source);

}  // namespace browser_sync

#endif  // CHROME_BROWSER_SYNC_ENGINE_NUDGE_SOURCE_H_