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

Side by Side Diff: chrome/browser/sync/syncable/transaction_observer.h

Issue 7190001: [Sync] Split DirectoryChangeListener for thread-safety (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix copyright Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync/syncable/syncable_unittest.cc ('k') | chrome/browser/sync/util/logging.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_
6 #define CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_
7 #pragma once
8
9 #include "chrome/browser/sync/syncable/model_type.h"
10 #include "chrome/browser/sync/syncable/syncable.h"
11
12 namespace tracked_objects {
13 class Location;
14 } // namespace tracked_objects
15
16 namespace syncable {
17
18 class TransactionObserver {
19 public:
20 virtual void OnTransactionStart(
21 const tracked_objects::Location& location,
22 const WriterTag& writer) = 0;
23 virtual void OnTransactionMutate(
24 const tracked_objects::Location& location,
25 const WriterTag& writer,
26 // TODO(akalin): Have pairs of old/new entries instead of just
27 // the originals.
28 const OriginalEntries& originals,
29 const ModelTypeBitSet& models_with_changes) = 0;
30 virtual void OnTransactionEnd(
31 const tracked_objects::Location& location,
32 const WriterTag& writer) = 0;
33 protected:
34 virtual ~TransactionObserver() {}
35 };
36
37 } // namespace syncable
38
39 #endif // CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/syncable/syncable_unittest.cc ('k') | chrome/browser/sync/util/logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698