blob: 0c95c769e732a9ef57cb8db20140f797b5131593 [file] [log] [blame]
// 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 COMPONENTS_SYNC_ENGINE_IMPL_NUDGE_SOURCE_H_
#define COMPONENTS_SYNC_ENGINE_IMPL_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 // COMPONENTS_SYNC_ENGINE_IMPL_NUDGE_SOURCE_H_