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

Side by Side Diff: chrome/browser/sync/engine/syncapi.h

Issue 5705004: [SYNC] Sessions datatype refactor. Most things related to sessions under-the-... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebase Created 9 years, 11 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 | « chrome/browser/sessions/session_types.h ('k') | chrome/browser/sync/engine/syncapi.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This file defines the "sync API", an interface to the syncer 5 // This file defines the "sync API", an interface to the syncer
6 // backend that exposes (1) the core functionality of maintaining a consistent 6 // backend that exposes (1) the core functionality of maintaining a consistent
7 // local snapshot of a hierarchical object set; (2) a means to transactionally 7 // local snapshot of a hierarchical object set; (2) a means to transactionally
8 // access and modify those objects; (3) a means to control client/server 8 // access and modify those objects; (3) a means to control client/server
9 // synchronization tasks, namely: pushing local object modifications to a 9 // synchronization tasks, namely: pushing local object modifications to a
10 // server, pulling nonlocal object modifications from a server to this client, 10 // server, pulling nonlocal object modifications from a server to this client,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // will return FALSE. 146 // will return FALSE.
147 virtual bool InitByClientTagLookup(syncable::ModelType model_type, 147 virtual bool InitByClientTagLookup(syncable::ModelType model_type,
148 const std::string& tag) = 0; 148 const std::string& tag) = 0;
149 149
150 // Each object is identified by a 64-bit id (internally, the syncable 150 // Each object is identified by a 64-bit id (internally, the syncable
151 // metahandle). These ids are strictly local handles. They will persist 151 // metahandle). These ids are strictly local handles. They will persist
152 // on this client, but the same object on a different client may have a 152 // on this client, but the same object on a different client may have a
153 // different ID value. 153 // different ID value.
154 virtual int64 GetId() const; 154 virtual int64 GetId() const;
155 155
156 // Returns the modification time of the object (in TimeTicks internal format).
157 int64 GetModificationTime() const;
158
156 // Nodes are hierarchically arranged into a single-rooted tree. 159 // Nodes are hierarchically arranged into a single-rooted tree.
157 // InitByRootLookup on ReadNode allows access to the root. GetParentId is 160 // InitByRootLookup on ReadNode allows access to the root. GetParentId is
158 // how you find a node's parent. 161 // how you find a node's parent.
159 int64 GetParentId() const; 162 int64 GetParentId() const;
160 163
161 // Nodes are either folders or not. This corresponds to the IS_DIR property 164 // Nodes are either folders or not. This corresponds to the IS_DIR property
162 // of syncable::Entry. 165 // of syncable::Entry.
163 bool GetIsFolder() const; 166 bool GetIsFolder() const;
164 167
165 // Returns the title of the object. 168 // Returns the title of the object.
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 // This allows actual HttpPostProvider subclass implementations to be 988 // This allows actual HttpPostProvider subclass implementations to be
986 // reference counted, which is useful if a particular implementation uses 989 // reference counted, which is useful if a particular implementation uses
987 // multiple threads to serve network requests. 990 // multiple threads to serve network requests.
988 virtual void Destroy(HttpPostProviderInterface* http) = 0; 991 virtual void Destroy(HttpPostProviderInterface* http) = 0;
989 virtual ~HttpPostProviderFactory() { } 992 virtual ~HttpPostProviderFactory() { }
990 }; 993 };
991 994
992 } // namespace sync_api 995 } // namespace sync_api
993 996
994 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_H_ 997 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_types.h ('k') | chrome/browser/sync/engine/syncapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698