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

Unified Diff: services/catalog/entry.h

Issue 2230283003: Revert of Establish MojoChildConnection from BrowserChildProcessHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderer-channel
Patch Set: Created 4 years, 4 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 | « content/public/test/test_utils.cc ('k') | services/catalog/entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/catalog/entry.h
diff --git a/services/catalog/entry.h b/services/catalog/entry.h
index 90f9c1cfe9273cc1c78853d448263bd791fa76ff..74c302239995a7a9ed9b20de98a385ccfbe7b381 100644
--- a/services/catalog/entry.h
+++ b/services/catalog/entry.h
@@ -6,8 +6,8 @@
#define SERVICES_CATALOG_ENTRY_H_
#include <memory>
+#include <set>
#include <string>
-#include <vector>
#include "base/files/file_path.h"
#include "services/catalog/public/interfaces/catalog.mojom.h"
@@ -24,6 +24,7 @@
public:
Entry();
explicit Entry(const std::string& name);
+ explicit Entry(const Entry& other);
~Entry();
std::unique_ptr<base::DictionaryValue> Serialize() const;
@@ -54,10 +55,7 @@
}
const Entry* package() const { return package_; }
void set_package(Entry* package) { package_ = package; }
-
- std::vector<std::unique_ptr<Entry>> TakeChildren() {
- return std::move(children_);
- }
+ const std::set<Entry*>& services() { return services_; }
private:
std::string name_;
@@ -66,7 +64,7 @@
std::string display_name_;
shell::CapabilitySpec capabilities_;
Entry* package_ = nullptr;
- std::vector<std::unique_ptr<Entry>> children_;
+ std::set<Entry*> services_;
};
} // namespace catalog
« no previous file with comments | « content/public/test/test_utils.cc ('k') | services/catalog/entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698