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

Side by Side Diff: components/sync/syncable/mutable_entry.h

Issue 2240613002: [Sync] Convert sync to a static library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try getting rid of sync_core source set. Created 4 years, 4 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
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 COMPONENTS_SYNC_SYNCABLE_MUTABLE_ENTRY_H_ 5 #ifndef COMPONENTS_SYNC_SYNCABLE_MUTABLE_ENTRY_H_
6 #define COMPONENTS_SYNC_SYNCABLE_MUTABLE_ENTRY_H_ 6 #define COMPONENTS_SYNC_SYNCABLE_MUTABLE_ENTRY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "components/sync/base/model_type.h" 13 #include "components/sync/base/model_type.h"
14 #include "components/sync/base/sync_export.h"
15 #include "components/sync/syncable/entry.h" 14 #include "components/sync/syncable/entry.h"
16 #include "components/sync/syncable/metahandle_set.h" 15 #include "components/sync/syncable/metahandle_set.h"
17 #include "components/sync/syncable/model_neutral_mutable_entry.h" 16 #include "components/sync/syncable/model_neutral_mutable_entry.h"
18 17
19 namespace syncer { 18 namespace syncer {
20 class WriteNode; 19 class WriteNode;
21 20
22 namespace syncable { 21 namespace syncable {
23 22
24 enum Create { CREATE }; 23 enum Create { CREATE };
25 24
26 class WriteTransaction; 25 class WriteTransaction;
27 26
28 // A mutable meta entry. Changes get committed to the database when the 27 // A mutable meta entry. Changes get committed to the database when the
29 // WriteTransaction is destroyed. 28 // WriteTransaction is destroyed.
30 class SYNC_EXPORT MutableEntry : public ModelNeutralMutableEntry { 29 class MutableEntry : public ModelNeutralMutableEntry {
31 void Init(WriteTransaction* trans, 30 void Init(WriteTransaction* trans,
32 ModelType model_type, 31 ModelType model_type,
33 const Id& parent_id, 32 const Id& parent_id,
34 const std::string& name); 33 const std::string& name);
35 34
36 public: 35 public:
37 MutableEntry(WriteTransaction* trans, CreateNewUpdateItem, const Id& id); 36 MutableEntry(WriteTransaction* trans, CreateNewUpdateItem, const Id& id);
38 MutableEntry(WriteTransaction* trans, 37 MutableEntry(WriteTransaction* trans,
39 Create, 38 Create,
40 ModelType model_type, 39 ModelType model_type,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 DISALLOW_COPY_AND_ASSIGN(MutableEntry); 86 DISALLOW_COPY_AND_ASSIGN(MutableEntry);
88 }; 87 };
89 88
90 // This function sets only the flags needed to get this entry to sync. 89 // This function sets only the flags needed to get this entry to sync.
91 bool MarkForSyncing(syncable::MutableEntry* e); 90 bool MarkForSyncing(syncable::MutableEntry* e);
92 91
93 } // namespace syncable 92 } // namespace syncable
94 } // namespace syncer 93 } // namespace syncer
95 94
96 #endif // COMPONENTS_SYNC_SYNCABLE_MUTABLE_ENTRY_H_ 95 #endif // COMPONENTS_SYNC_SYNCABLE_MUTABLE_ENTRY_H_
OLDNEW
« no previous file with comments | « components/sync/syncable/model_neutral_mutable_entry.h ('k') | components/sync/syncable/nigori_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698