1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MOJO_TOOLS_PACKAGE_MANAGER_MANIFEST_H_
6 #define MOJO_TOOLS_PACKAGE_MANAGER_MANIFEST_H_
11 #include "mojo/public/cpp/system/macros.h"
16 class DictionaryValue;
27 // Parses the manifest from raw data. Returns true on success. On failure,
28 // populates the "err_msg" string with an error.
29 bool Parse(const std::string& str, std::string* err_msg);
31 // Like Parse but reads the data from a file.
32 bool ParseFromFile(const base::FilePath& file_name, std::string* err_msg);
34 const std::vector<GURL>& deps() const { return deps_; }
37 bool PopulateDeps(const base::DictionaryValue* root, std::string* err_msg);
39 std::vector<GURL> deps_;
41 MOJO_DISALLOW_COPY_AND_ASSIGN(Manifest);
46 #endif // MOJO_TOOLS_PACKAGE_MANAGER_MANIFEST_H_