chromium/components/sync/service/sync_service_observer.h

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_SYNC_SERVICE_SYNC_SERVICE_OBSERVER_H_
#define COMPONENTS_SYNC_SERVICE_SYNC_SERVICE_OBSERVER_H_

namespace syncer {

class SyncService;

// An observer that gets notified whenever any state in the SyncService changes.
// IMPORTANT: Observers must be removed before SyncService::Shutdown() gets
// called (during the KeyedServices shutdown sequence). If your observer is tied
// to a KeyedService itself, declare an appropriate DependsOn() relation and
// remove the observer in your service's Shutdown(). Otherwise, implement
// SyncServiceObserver::OnSyncShutdown() and remove the observer there.
class SyncServiceObserver {};

}  // namespace syncer

#endif  // COMPONENTS_SYNC_SERVICE_SYNC_SERVICE_OBSERVER_H_