Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: components/sync/api/local_change_observer.h

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync/api/fake_syncable_service.cc ('k') | components/sync/api/metadata_batch.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/api/local_change_observer.h
diff --git a/components/sync/api/local_change_observer.h b/components/sync/api/local_change_observer.h
deleted file mode 100644
index 1c9f7d20785cb0c53b58d48f278f67262ac07af1..0000000000000000000000000000000000000000
--- a/components/sync/api/local_change_observer.h
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2016 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_API_LOCAL_CHANGE_OBSERVER_H_
-#define COMPONENTS_SYNC_API_LOCAL_CHANGE_OBSERVER_H_
-
-namespace syncer {
-
-class SyncChange;
-namespace syncable {
-class Entry;
-} // namespace syncable
-
-// Interface for observers that want to be notified of local sync changes.
-// The OnLocalChange function will be called when a local change made through
-// ProcessSyncChanges is about to be applied to the directory. This is useful
-// for inspecting the specifics of sync data being written locally and comparing
-// it against the current state of the directory. Registering a local change
-// observer is done by calling the AddLocalChangeObserver function on an
-// instance of SyncChangeProcessor.
-class LocalChangeObserver {
- public:
- virtual ~LocalChangeObserver() {}
- // Function called to notify observer of the local change. current_entry
- // should reflect the state of the entry *before* change is applied.
- virtual void OnLocalChange(const syncable::Entry* current_entry,
- const SyncChange& change) = 0;
-};
-} // namespace syncer
-
-#endif // COMPONENTS_SYNC_API_LOCAL_CHANGE_OBSERVER_H_
« no previous file with comments | « components/sync/api/fake_syncable_service.cc ('k') | components/sync/api/metadata_batch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698