Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_USER_SHARE_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_USER_SHARE_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_USER_SHARE_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_USER_SHARE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 // syncable share. | 21 // syncable share. |
| 22 struct UserShare { | 22 struct UserShare { |
| 23 UserShare(); | 23 UserShare(); |
| 24 ~UserShare(); | 24 ~UserShare(); |
| 25 | 25 |
| 26 // The Directory itself, which is the parent of Transactions. | 26 // The Directory itself, which is the parent of Transactions. |
| 27 scoped_ptr<syncable::Directory> directory; | 27 scoped_ptr<syncable::Directory> directory; |
| 28 | 28 |
| 29 // The username of the sync user. | 29 // The username of the sync user. |
| 30 std::string name; | 30 std::string name; |
| 31 | |
| 32 // The cache guid of the sync directory. | |
| 33 std::string cache_guid(); | |
|
tim (not reviewing)
2012/09/28 19:00:54
structs shouldn't have methods :/ make it a class
| |
| 31 }; | 34 }; |
| 32 | 35 |
| 33 } // namespace syncer | 36 } // namespace syncer |
| 34 | 37 |
| 35 #endif // SYNC_INTERNAL_API_PUBLIC_USER_SHARE_H_ | 38 #endif // SYNC_INTERNAL_API_PUBLIC_USER_SHARE_H_ |
| OLD | NEW |