| 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 ASH_PUBLIC_CPP_SHELF_TYPES_H_ | 5 #ifndef ASH_PUBLIC_CPP_SHELF_TYPES_H_ |
| 6 #define ASH_PUBLIC_CPP_SHELF_TYPES_H_ | 6 #define ASH_PUBLIC_CPP_SHELF_TYPES_H_ |
| 7 | 7 |
| 8 #include <cstdint> | 8 #include <cstdint> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // Deserialization returns an empty/null/default id for a null string input. | 158 // Deserialization returns an empty/null/default id for a null string input. |
| 159 std::string Serialize() const; | 159 std::string Serialize() const; |
| 160 static ShelfID Deserialize(const std::string* string); | 160 static ShelfID Deserialize(const std::string* string); |
| 161 | 161 |
| 162 // The application id associated with a set of windows. | 162 // The application id associated with a set of windows. |
| 163 std::string app_id; | 163 std::string app_id; |
| 164 // An id passed on app launch, to support multiple shelf items per app. | 164 // An id passed on app launch, to support multiple shelf items per app. |
| 165 std::string launch_id; | 165 std::string launch_id; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 ASH_PUBLIC_EXPORT std::ostream& operator<<(std::ostream& o, const ShelfID& id); |
| 169 |
| 168 } // namespace ash | 170 } // namespace ash |
| 169 | 171 |
| 170 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_ | 172 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_ |
| OLD | NEW |