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

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

Issue 302173004: sync: Specialize functions that fetch type root (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/GET_BY_SERVER_TAG_DEPRECATED/GET_BY_SERVER_TAG/ Created 6 years, 6 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
« no previous file with comments | « sync/syncable/entry.cc ('k') | sync/syncable/model_neutral_mutable_entry.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_MODEL_NEUTRAL_MUTABLE_ENTRY_H_ 5 #ifndef SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_
6 #define SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_ 6 #define SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_
7 7
8 #include "sync/base/sync_export.h" 8 #include "sync/base/sync_export.h"
9 #include "sync/internal_api/public/base/model_type.h" 9 #include "sync/internal_api/public/base/model_type.h"
10 #include "sync/syncable/entry.h" 10 #include "sync/syncable/entry.h"
(...skipping 20 matching lines...) Expand all
31 CreateNewUpdateItem, 31 CreateNewUpdateItem,
32 const Id& id); 32 const Id& id);
33 ModelNeutralMutableEntry(BaseWriteTransaction* trans, GetByHandle, int64); 33 ModelNeutralMutableEntry(BaseWriteTransaction* trans, GetByHandle, int64);
34 ModelNeutralMutableEntry(BaseWriteTransaction* trans, GetById, const Id&); 34 ModelNeutralMutableEntry(BaseWriteTransaction* trans, GetById, const Id&);
35 ModelNeutralMutableEntry( 35 ModelNeutralMutableEntry(
36 BaseWriteTransaction* trans, 36 BaseWriteTransaction* trans,
37 GetByClientTag, 37 GetByClientTag,
38 const std::string& tag); 38 const std::string& tag);
39 ModelNeutralMutableEntry( 39 ModelNeutralMutableEntry(
40 BaseWriteTransaction* trans, 40 BaseWriteTransaction* trans,
41 GetByServerTag, 41 GetTypeRoot,
42 const std::string& tag); 42 ModelType type);
43 43
44 inline BaseWriteTransaction* base_write_transaction() const { 44 inline BaseWriteTransaction* base_write_transaction() const {
45 return base_write_transaction_; 45 return base_write_transaction_;
46 } 46 }
47 47
48 // Non-model-changing setters. These setters will change properties internal 48 // Non-model-changing setters. These setters will change properties internal
49 // to the node. These fields are important for bookkeeping in the sync 49 // to the node. These fields are important for bookkeeping in the sync
50 // internals, but it is not necessary to communicate changes in these fields 50 // internals, but it is not necessary to communicate changes in these fields
51 // to the local models. 51 // to the local models.
52 // 52 //
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // Scope: Set on construction, never changed after that. 107 // Scope: Set on construction, never changed after that.
108 BaseWriteTransaction* const base_write_transaction_; 108 BaseWriteTransaction* const base_write_transaction_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(ModelNeutralMutableEntry); 110 DISALLOW_COPY_AND_ASSIGN(ModelNeutralMutableEntry);
111 }; 111 };
112 112
113 } // namespace syncable 113 } // namespace syncable
114 } // namespace syncer 114 } // namespace syncer
115 115
116 #endif // SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_ 116 #endif // SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_
OLDNEW
« no previous file with comments | « sync/syncable/entry.cc ('k') | sync/syncable/model_neutral_mutable_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698