Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(720)

Unified Diff: mojo/services/catalog/entry.h

Issue 1821383002: Moves manifest parsing to a new class, Reader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@60catref
Patch Set: . Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/catalog/catalog.cc ('k') | mojo/services/catalog/entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/catalog/entry.h
diff --git a/mojo/services/catalog/entry.h b/mojo/services/catalog/entry.h
index ac5ace5cde5970921a04e2c1c5756813a38b1f40..4a55808f4f396186fb543b6ae595f6ca75c774eb 100644
--- a/mojo/services/catalog/entry.h
+++ b/mojo/services/catalog/entry.h
@@ -5,6 +5,7 @@
#ifndef MOJO_SERVICES_CATALOG_ENTRY_H_
#define MOJO_SERVICES_CATALOG_ENTRY_H_
+#include <set>
#include <string>
#include "base/memory/scoped_ptr.h"
@@ -27,6 +28,7 @@ class Entry {
static scoped_ptr<Entry> Deserialize(const base::DictionaryValue& value);
bool operator==(const Entry& other) const;
+ bool operator<(const Entry& other) const;
const std::string& name() const { return name_; }
void set_name(const std::string& name) { name_ = name; }
@@ -40,12 +42,14 @@ class Entry {
void set_capabilities(const mojo::CapabilitySpec& capabilities) {
capabilities_ = capabilities;
}
+ const std::set<Entry>& applications() { return applications_; }
private:
std::string name_;
std::string qualifier_;
std::string display_name_;
mojo::CapabilitySpec capabilities_;
+ std::set<Entry> applications_;
};
} // namespace catalog
« no previous file with comments | « mojo/services/catalog/catalog.cc ('k') | mojo/services/catalog/entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698