| OLD | NEW |
| 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_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" |
| 11 #include "sync/base/sync_export.h" |
| 11 | 12 |
| 12 namespace syncer { | 13 namespace syncer { |
| 13 | 14 |
| 14 namespace syncable { | 15 namespace syncable { |
| 15 class Directory; | 16 class Directory; |
| 16 } | 17 } |
| 17 | 18 |
| 18 // A UserShare encapsulates the syncable pieces that represent an authenticated | 19 // A UserShare encapsulates the syncable pieces that represent an authenticated |
| 19 // user and their data (share). | 20 // user and their data (share). |
| 20 // This encompasses all pieces required to build transaction objects on the | 21 // This encompasses all pieces required to build transaction objects on the |
| 21 // syncable share. | 22 // syncable share. |
| 22 struct UserShare { | 23 struct SYNC_EXPORT_PRIVATE UserShare { |
| 23 UserShare(); | 24 UserShare(); |
| 24 ~UserShare(); | 25 ~UserShare(); |
| 25 | 26 |
| 26 // The Directory itself, which is the parent of Transactions. | 27 // The Directory itself, which is the parent of Transactions. |
| 27 scoped_ptr<syncable::Directory> directory; | 28 scoped_ptr<syncable::Directory> directory; |
| 28 | 29 |
| 29 // The username of the sync user. | 30 // The username of the sync user. |
| 30 std::string name; | 31 std::string name; |
| 31 }; | 32 }; |
| 32 | 33 |
| 33 } // namespace syncer | 34 } // namespace syncer |
| 34 | 35 |
| 35 #endif // SYNC_INTERNAL_API_PUBLIC_USER_SHARE_H_ | 36 #endif // SYNC_INTERNAL_API_PUBLIC_USER_SHARE_H_ |
| OLD | NEW |