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

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

Issue 11028086: Cleanup: IWYU for base/time.h in sync/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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_BASE_NODE_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_
6 #define SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/time.h"
14 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
15 #include "sync/internal_api/public/base/model_type.h" 16 #include "sync/internal_api/public/base/model_type.h"
16 #include "sync/protocol/sync.pb.h" 17 #include "sync/protocol/sync.pb.h"
17 18
18 // Forward declarations of internal class types so that sync API objects 19 // Forward declarations of internal class types so that sync API objects
19 // may have opaque pointers to these types. 20 // may have opaque pointers to these types.
20 namespace base { 21 namespace base {
21 class DictionaryValue; 22 class DictionaryValue;
22 } 23 }
23 24
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 ModelType model_type, 82 ModelType model_type,
82 const std::string& tag) = 0; 83 const std::string& tag) = 0;
83 84
84 // Each object is identified by a 64-bit id (internally, the syncable 85 // Each object is identified by a 64-bit id (internally, the syncable
85 // metahandle). These ids are strictly local handles. They will persist 86 // metahandle). These ids are strictly local handles. They will persist
86 // on this client, but the same object on a different client may have a 87 // on this client, but the same object on a different client may have a
87 // different ID value. 88 // different ID value.
88 virtual int64 GetId() const; 89 virtual int64 GetId() const;
89 90
90 // Returns the modification time of the object. 91 // Returns the modification time of the object.
91 const base::Time& GetModificationTime() const; 92 base::Time GetModificationTime() const;
92 93
93 // Nodes are hierarchically arranged into a single-rooted tree. 94 // Nodes are hierarchically arranged into a single-rooted tree.
94 // InitByRootLookup on ReadNode allows access to the root. GetParentId is 95 // InitByRootLookup on ReadNode allows access to the root. GetParentId is
95 // how you find a node's parent. 96 // how you find a node's parent.
96 int64 GetParentId() const; 97 int64 GetParentId() const;
97 98
98 // Nodes are either folders or not. This corresponds to the IS_DIR property 99 // Nodes are either folders or not. This corresponds to the IS_DIR property
99 // of syncable::Entry. 100 // of syncable::Entry.
100 bool GetIsFolder() const; 101 bool GetIsFolder() const;
101 102
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 247
247 // Same as |unencrypted_data_|, but for legacy password encryption. 248 // Same as |unencrypted_data_|, but for legacy password encryption.
248 scoped_ptr<sync_pb::PasswordSpecificsData> password_data_; 249 scoped_ptr<sync_pb::PasswordSpecificsData> password_data_;
249 250
250 DISALLOW_COPY_AND_ASSIGN(BaseNode); 251 DISALLOW_COPY_AND_ASSIGN(BaseNode);
251 }; 252 };
252 253
253 } // namespace syncer 254 } // namespace syncer
254 255
255 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ 256 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/base/model_type.h ('k') | sync/internal_api/public/engine/sync_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698