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

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

Issue 8741001: Remove sync OnTransaction{Start,End} notification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
13 class Location;
14 } // namespace tracked_objects
15
16 namespace syncable { 12 namespace syncable {
17 13
18 class TransactionObserver { 14 class TransactionObserver {
19 public: 15 public:
20 virtual void OnTransactionStart(
21 const tracked_objects::Location& location,
22 const WriterTag& writer) = 0;
23 virtual void OnTransactionWrite( 16 virtual void OnTransactionWrite(
24 const ImmutableWriteTransactionInfo& write_transaction_info, 17 const ImmutableWriteTransactionInfo& write_transaction_info,
25 const ModelTypeBitSet& models_with_changes) = 0; 18 const ModelTypeBitSet& models_with_changes) = 0;
26 virtual void OnTransactionEnd(
27 const tracked_objects::Location& location,
28 const WriterTag& writer) = 0;
29 protected: 19 protected:
30 virtual ~TransactionObserver() {} 20 virtual ~TransactionObserver() {}
31 }; 21 };
32 22
33 } // namespace syncable 23 } // namespace syncable
34 24
35 #endif // CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_ 25 #endif // CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/syncable/syncable.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698