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

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

Issue 11515009: [sync] Componentize sync: Part 2: Add SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR Feedback Created 8 years 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 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "sync/base/sync_export.h"
12 #include "sync/internal_api/public/base/model_type.h" 13 #include "sync/internal_api/public/base/model_type.h"
13 #include "sync/internal_api/public/base_node.h" 14 #include "sync/internal_api/public/base_node.h"
14 15
15 namespace syncer { 16 namespace syncer {
16 17
17 // ReadNode wraps a syncable::Entry to provide the functionality of a 18 // ReadNode wraps a syncable::Entry to provide the functionality of a
18 // read-only BaseNode. 19 // read-only BaseNode.
19 class ReadNode : public BaseNode { 20 class SYNC_EXPORT ReadNode : public BaseNode {
20 public: 21 public:
21 // Create an unpopulated ReadNode on the given transaction. Call some flavor 22 // Create an unpopulated ReadNode on the given transaction. Call some flavor
22 // of Init to populate the ReadNode with a database entry. 23 // of Init to populate the ReadNode with a database entry.
23 explicit ReadNode(const BaseTransaction* transaction); 24 explicit ReadNode(const BaseTransaction* transaction);
24 virtual ~ReadNode(); 25 virtual ~ReadNode();
25 26
26 // 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
27 // populate the node. 28 // populate the node.
28 29
29 // BaseNode implementation. 30 // BaseNode implementation.
(...skipping 26 matching lines...) Expand all
56 57
57 // The sync API transaction that is the parent of this node. 58 // The sync API transaction that is the parent of this node.
58 const BaseTransaction* transaction_; 59 const BaseTransaction* transaction_;
59 60
60 DISALLOW_COPY_AND_ASSIGN(ReadNode); 61 DISALLOW_COPY_AND_ASSIGN(ReadNode);
61 }; 62 };
62 63
63 } // namespace syncer 64 } // namespace syncer
64 65
65 #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/internal_components_factory_impl.h ('k') | sync/internal_api/public/read_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698