| 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 SERVICES_CATALOG_ENTRY_H_ | 5 #ifndef SERVICES_CATALOG_ENTRY_H_ |
| 6 #define SERVICES_CATALOG_ENTRY_H_ | 6 #define SERVICES_CATALOG_ENTRY_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 const std::string& name() const { return name_; } | 39 const std::string& name() const { return name_; } |
| 40 void set_name(const std::string& name) { name_ = name; } | 40 void set_name(const std::string& name) { name_ = name; } |
| 41 const base::FilePath& path() const { return path_; } | 41 const base::FilePath& path() const { return path_; } |
| 42 void set_path(const base::FilePath& path) { path_ = path; } | 42 void set_path(const base::FilePath& path) { path_ = path; } |
| 43 const std::string& qualifier() const { return qualifier_; } | 43 const std::string& qualifier() const { return qualifier_; } |
| 44 void set_qualifier(const std::string& qualifier) { qualifier_ = qualifier; } | 44 void set_qualifier(const std::string& qualifier) { qualifier_ = qualifier; } |
| 45 const std::string& display_name() const { return display_name_; } | 45 const std::string& display_name() const { return display_name_; } |
| 46 void set_display_name(const std::string& display_name) { | 46 void set_display_name(const std::string& display_name) { |
| 47 display_name_ = display_name; | 47 display_name_ = display_name; |
| 48 } | 48 } |
| 49 const mojo::CapabilitySpec& capabilities() const { return capabilities_; } | 49 const shell::CapabilitySpec& capabilities() const { return capabilities_; } |
| 50 void set_capabilities(const mojo::CapabilitySpec& capabilities) { | 50 void set_capabilities(const shell::CapabilitySpec& capabilities) { |
| 51 capabilities_ = capabilities; | 51 capabilities_ = capabilities; |
| 52 } | 52 } |
| 53 const Entry* package() const { return package_; } | 53 const Entry* package() const { return package_; } |
| 54 void set_package(Entry* package) { package_ = package; } | 54 void set_package(Entry* package) { package_ = package; } |
| 55 const std::set<Entry*>& applications() { return applications_; } | 55 const std::set<Entry*>& applications() { return applications_; } |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 std::string name_; | 58 std::string name_; |
| 59 base::FilePath path_; | 59 base::FilePath path_; |
| 60 std::string qualifier_; | 60 std::string qualifier_; |
| 61 std::string display_name_; | 61 std::string display_name_; |
| 62 mojo::CapabilitySpec capabilities_; | 62 shell::CapabilitySpec capabilities_; |
| 63 Entry* package_ = nullptr; | 63 Entry* package_ = nullptr; |
| 64 std::set<Entry*> applications_; | 64 std::set<Entry*> applications_; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace catalog | 67 } // namespace catalog |
| 68 | 68 |
| 69 namespace mojo { | 69 namespace mojo { |
| 70 template <> | 70 template <> |
| 71 struct TypeConverter<shell::mojom::ResolveResultPtr, catalog::Entry> { | 71 struct TypeConverter<shell::mojom::ResolveResultPtr, catalog::Entry> { |
| 72 static shell::mojom::ResolveResultPtr Convert(const catalog::Entry& input); | 72 static shell::mojom::ResolveResultPtr Convert(const catalog::Entry& input); |
| 73 }; | 73 }; |
| 74 } | 74 } |
| 75 | 75 |
| 76 #endif // SERVICES_CATALOG_ENTRY_H_ | 76 #endif // SERVICES_CATALOG_ENTRY_H_ |
| OLD | NEW |