| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SERVICES_SHELL_SERVICE_OVERRIDES_H_ | |
| 6 #define SERVICES_SHELL_SERVICE_OVERRIDES_H_ | |
| 7 | |
| 8 #include <map> | |
| 9 #include <memory> | |
| 10 #include <string> | |
| 11 | |
| 12 #include "base/files/file_path.h" | |
| 13 #include "base/macros.h" | |
| 14 #include "base/values.h" | |
| 15 | |
| 16 namespace shell { | |
| 17 | |
| 18 class ServiceOverrides { | |
| 19 public: | |
| 20 struct Entry { | |
| 21 Entry(); | |
| 22 ~Entry(); | |
| 23 | |
| 24 base::FilePath executable_path; | |
| 25 std::string package_name; | |
| 26 }; | |
| 27 | |
| 28 explicit ServiceOverrides(std::unique_ptr<base::Value> overrides); | |
| 29 ~ServiceOverrides(); | |
| 30 | |
| 31 bool GetExecutablePathOverride(const std::string& service_name, | |
| 32 base::FilePath* path) const; | |
| 33 | |
| 34 const std::map<std::string, Entry>& entries() const { return entries_; } | |
| 35 | |
| 36 private: | |
| 37 std::map<std::string, Entry> entries_; | |
| 38 | |
| 39 DISALLOW_COPY_AND_ASSIGN(ServiceOverrides); | |
| 40 }; | |
| 41 | |
| 42 } // namespace shell | |
| 43 | |
| 44 #endif // SERVICES_SHELL_SERVICE_OVERRIDES_H_ | |
| OLD | NEW |