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

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

Issue 7926001: [Sync] Move change-related methods out of SyncManager::Observer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_
6 #define CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_ 6 #define CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/sync/syncable/model_type.h" 9 #include "chrome/browser/sync/syncable/model_type.h"
10 #include "chrome/browser/sync/syncable/syncable.h" 10 #include "chrome/browser/sync/syncable/syncable.h"
11 11
12 namespace tracked_objects { 12 namespace tracked_objects {
13 class Location; 13 class Location;
14 } // namespace tracked_objects 14 } // namespace tracked_objects
15 15
16 namespace syncable { 16 namespace syncable {
17 17
18 class TransactionObserver { 18 class TransactionObserver {
19 public: 19 public:
20 virtual void OnTransactionStart( 20 virtual void OnTransactionStart(
21 const tracked_objects::Location& location, 21 const tracked_objects::Location& location,
22 const WriterTag& writer) = 0; 22 const WriterTag& writer) = 0;
23 virtual void OnTransactionMutate( 23 virtual void OnTransactionWrite(
24 const tracked_objects::Location& location, 24 const ImmutableWriteTransactionInfo& write_transaction_info,
25 const WriterTag& writer,
26 const ImmutableEntryKernelMutationMap& mutations,
27 const ModelTypeBitSet& models_with_changes) = 0; 25 const ModelTypeBitSet& models_with_changes) = 0;
28 virtual void OnTransactionEnd( 26 virtual void OnTransactionEnd(
29 const tracked_objects::Location& location, 27 const tracked_objects::Location& location,
30 const WriterTag& writer) = 0; 28 const WriterTag& writer) = 0;
31 protected: 29 protected:
32 virtual ~TransactionObserver() {} 30 virtual ~TransactionObserver() {}
33 }; 31 };
34 32
35 } // namespace syncable 33 } // namespace syncable
36 34
37 #endif // CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_ 35 #endif // CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/syncable/syncable.cc ('k') | chrome/browser/sync/test/null_directory_change_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698