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

Unified Diff: services/catalog/entry.h

Issue 2684433003: Files required by a service now listed in manifest. (Closed)
Patch Set: Fix build. Created 3 years, 10 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 | « services/catalog/data/required_files ('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 3e4359268adcea1226145d989c96d0a40aa47560..f7332d84e9a3395f4a212141d99678e5129c2ec9 100644
--- a/services/catalog/entry.h
+++ b/services/catalog/entry.h
@@ -16,7 +16,6 @@
#include "services/service_manager/public/interfaces/resolver.mojom.h"
namespace base {
-class DictionaryValue;
class Value;
}
@@ -29,8 +28,6 @@ class Entry {
explicit Entry(const std::string& name);
~Entry();
- std::unique_ptr<base::DictionaryValue> Serialize() const;
-
static std::unique_ptr<Entry> Deserialize(const base::Value& manifest_root);
bool ProvidesCapability(const std::string& capability) const;
@@ -67,11 +64,17 @@ class Entry {
return interface_provider_specs_;
}
+ void AddRequiredFilePath(const std::string& name, const base::FilePath& path);
+ const std::map<std::string, base::FilePath>& required_file_paths() const {
+ return required_file_paths_;
+ }
+
private:
std::string name_;
base::FilePath path_;
std::string display_name_;
service_manager::InterfaceProviderSpecMap interface_provider_specs_;
+ std::map<std::string, base::FilePath> required_file_paths_;
const Entry* parent_ = nullptr;
std::vector<std::unique_ptr<Entry>> children_;
« no previous file with comments | « services/catalog/data/required_files ('k') | services/catalog/entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698