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

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

Issue 7904021: [Sync] Rework SharedValue<T> into Immutable<T> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename vars 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 OnTransactionMutate(
24 const tracked_objects::Location& location, 24 const tracked_objects::Location& location,
25 const WriterTag& writer, 25 const WriterTag& writer,
26 const SharedEntryKernelMutationMap& mutations, 26 const ImmutableEntryKernelMutationMap& mutations,
27 const ModelTypeBitSet& models_with_changes) = 0; 27 const ModelTypeBitSet& models_with_changes) = 0;
28 virtual void OnTransactionEnd( 28 virtual void OnTransactionEnd(
29 const tracked_objects::Location& location, 29 const tracked_objects::Location& location,
30 const WriterTag& writer) = 0; 30 const WriterTag& writer) = 0;
31 protected: 31 protected:
32 virtual ~TransactionObserver() {} 32 virtual ~TransactionObserver() {}
33 }; 33 };
34 34
35 } // namespace syncable 35 } // namespace syncable
36 36
37 #endif // CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_ 37 #endif // CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698