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

Side by Side Diff: sync/internal_api/public/read_node.h

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights Created 8 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_INTERNAL_API_PUBLIC_READ_NODE_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_READ_NODE_H_
6 #define SYNC_INTERNAL_API_PUBLIC_READ_NODE_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_READ_NODE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 12 matching lines...) Expand all
23 // of Init to populate the ReadNode with a database entry. 23 // of Init to populate the ReadNode with a database entry.
24 explicit ReadNode(const BaseTransaction* transaction); 24 explicit ReadNode(const BaseTransaction* transaction);
25 virtual ~ReadNode(); 25 virtual ~ReadNode();
26 26
27 // A client must use one (and only one) of the following Init variants to 27 // A client must use one (and only one) of the following Init variants to
28 // populate the node. 28 // populate the node.
29 29
30 // BaseNode implementation. 30 // BaseNode implementation.
31 virtual InitByLookupResult InitByIdLookup(int64 id) OVERRIDE; 31 virtual InitByLookupResult InitByIdLookup(int64 id) OVERRIDE;
32 virtual InitByLookupResult InitByClientTagLookup( 32 virtual InitByLookupResult InitByClientTagLookup(
33 syncable::ModelType model_type, 33 syncer::ModelType model_type,
34 const std::string& tag) OVERRIDE; 34 const std::string& tag) OVERRIDE;
35 35
36 // There is always a root node, so this can't fail. The root node is 36 // There is always a root node, so this can't fail. The root node is
37 // never mutable, so root lookup is only possible on a ReadNode. 37 // never mutable, so root lookup is only possible on a ReadNode.
38 void InitByRootLookup(); 38 void InitByRootLookup();
39 39
40 // Each server-created permanent node is tagged with a unique string. 40 // Each server-created permanent node is tagged with a unique string.
41 // Look up the node with the particular tag. If it does not exist, 41 // Look up the node with the particular tag. If it does not exist,
42 // return false. 42 // return false.
43 InitByLookupResult InitByTagLookup(const std::string& tag); 43 InitByLookupResult InitByTagLookup(const std::string& tag);
(...skipping 13 matching lines...) Expand all
57 57
58 // The sync API transaction that is the parent of this node. 58 // The sync API transaction that is the parent of this node.
59 const BaseTransaction* transaction_; 59 const BaseTransaction* transaction_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(ReadNode); 61 DISALLOW_COPY_AND_ASSIGN(ReadNode);
62 }; 62 };
63 63
64 } // namespace syncer 64 } // namespace syncer
65 65
66 #endif // SYNC_INTERNAL_API_PUBLIC_READ_NODE_H_ 66 #endif // SYNC_INTERNAL_API_PUBLIC_READ_NODE_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/engine/sync_status.h ('k') | sync/internal_api/public/sessions/model_neutral_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698