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

Side by Side Diff: sync/syncable/syncable_write_transaction.h

Issue 629733002: replace OVERRIDE and FINAL with override and final in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « sync/syncable/syncable_unittest.cc ('k') | sync/test/accounts_client/test_accounts_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 SYNC_SYNCABLE_SYNCABLE_WRITE_TRANSACTION_H_ 5 #ifndef SYNC_SYNCABLE_SYNCABLE_WRITE_TRANSACTION_H_
6 #define SYNC_SYNCABLE_SYNCABLE_WRITE_TRANSACTION_H_ 6 #define SYNC_SYNCABLE_SYNCABLE_WRITE_TRANSACTION_H_
7 7
8 #include "sync/base/sync_export.h" 8 #include "sync/base/sync_export.h"
9 #include "sync/syncable/entry_kernel.h" 9 #include "sync/syncable/entry_kernel.h"
10 #include "sync/syncable/syncable_base_write_transaction.h" 10 #include "sync/syncable/syncable_base_write_transaction.h"
(...skipping 12 matching lines...) Expand all
23 // Constructor used for getting back transaction version after making sync 23 // Constructor used for getting back transaction version after making sync
24 // API changes to one model. If model is changed by the transaction, 24 // API changes to one model. If model is changed by the transaction,
25 // the new transaction version of the model and modified nodes will be saved 25 // the new transaction version of the model and modified nodes will be saved
26 // in |transaction_version| upon destruction of the transaction. If model is 26 // in |transaction_version| upon destruction of the transaction. If model is
27 // not changed, |transaction_version| will be kInvalidTransactionVersion. 27 // not changed, |transaction_version| will be kInvalidTransactionVersion.
28 WriteTransaction(const tracked_objects::Location& from_here, 28 WriteTransaction(const tracked_objects::Location& from_here,
29 Directory* directory, int64* transaction_version); 29 Directory* directory, int64* transaction_version);
30 30
31 virtual ~WriteTransaction(); 31 virtual ~WriteTransaction();
32 32
33 virtual void TrackChangesTo(const EntryKernel* entry) OVERRIDE; 33 virtual void TrackChangesTo(const EntryKernel* entry) override;
34 34
35 protected: 35 protected:
36 // Overridden by tests. 36 // Overridden by tests.
37 virtual void NotifyTransactionComplete(ModelTypeSet models_with_changes); 37 virtual void NotifyTransactionComplete(ModelTypeSet models_with_changes);
38 38
39 private: 39 private:
40 friend class MutableEntry; 40 friend class MutableEntry;
41 41
42 // Clears |mutations_|. 42 // Clears |mutations_|.
43 ImmutableEntryKernelMutationMap RecordMutations(); 43 ImmutableEntryKernelMutationMap RecordMutations();
(...skipping 15 matching lines...) Expand all
59 // indeed changed. kInvalidTransactionVersion otherwise. Not owned. 59 // indeed changed. kInvalidTransactionVersion otherwise. Not owned.
60 int64* transaction_version_; 60 int64* transaction_version_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(WriteTransaction); 62 DISALLOW_COPY_AND_ASSIGN(WriteTransaction);
63 }; 63 };
64 64
65 } // namespace syncable 65 } // namespace syncable
66 } // namespace syncer 66 } // namespace syncer
67 67
68 #endif // SYNC_SYNCABLE_SYNCABLE_WRITE_TRANSACTION_H_ 68 #endif // SYNC_SYNCABLE_SYNCABLE_WRITE_TRANSACTION_H_
OLDNEW
« no previous file with comments | « sync/syncable/syncable_unittest.cc ('k') | sync/test/accounts_client/test_accounts_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698