| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_SHELF_ID_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_SHELF_ID_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_SHELF_ID_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_SHELF_ID_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 // Represents Arc app shelf id that consists from app id and optional shelf | 10 // Represents ARC app shelf id that consists from app id and optional shelf |
| 11 // group id. | 11 // group id. |
| 12 namespace arc { | 12 namespace arc { |
| 13 | 13 |
| 14 class ArcAppShelfId { | 14 class ArcAppShelfId { |
| 15 public: | 15 public: |
| 16 ArcAppShelfId(const std::string& shelf_group_id, const std::string& app_id); | 16 ArcAppShelfId(const std::string& shelf_group_id, const std::string& app_id); |
| 17 ArcAppShelfId(const ArcAppShelfId& other); | 17 ArcAppShelfId(const ArcAppShelfId& other); |
| 18 ~ArcAppShelfId(); | 18 ~ArcAppShelfId(); |
| 19 | 19 |
| 20 // Returns id from string representation which has syntax | 20 // Returns id from string representation which has syntax |
| (...skipping 18 matching lines...) Expand all Loading... |
| 39 const std::string& app_id() const { return app_id_; } | 39 const std::string& app_id() const { return app_id_; } |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 const std::string shelf_group_id_; | 42 const std::string shelf_group_id_; |
| 43 const std::string app_id_; | 43 const std::string app_id_; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace arc | 46 } // namespace arc |
| 47 | 47 |
| 48 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_SHELF_ID_H_ | 48 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_SHELF_ID_H_ |
| OLD | NEW |