| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SHARED_FILE_UTIL_H_ | 5 #ifndef SERVICES_SERVICE_MANAGER_EMBEDDER_SHARED_FILE_UTIL_H_ |
| 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SHARED_FILE_UTIL_H_ | 6 #define SERVICES_SERVICE_MANAGER_EMBEDDER_SHARED_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/optional.h" | 12 #include "base/optional.h" |
| 13 #include "services/service_manager/embedder/service_manager_embedder_export.h" |
| 13 | 14 |
| 14 namespace service_manager { | 15 namespace service_manager { |
| 15 | 16 |
| 16 class SharedFileSwitchValueBuilder final { | 17 class SERVICE_MANAGER_EMBEDDER_EXPORT SharedFileSwitchValueBuilder final { |
| 17 public: | 18 public: |
| 18 void AddEntry(const std::string& key_str, int key_id); | 19 void AddEntry(const std::string& key_str, int key_id); |
| 19 const std::string& switch_value() const { return switch_value_; } | 20 const std::string& switch_value() const { return switch_value_; } |
| 20 | 21 |
| 21 private: | 22 private: |
| 22 std::string switch_value_; | 23 std::string switch_value_; |
| 23 }; | 24 }; |
| 24 | 25 |
| 25 base::Optional<std::map<int, std::string>> ParseSharedFileSwitchValue( | 26 SERVICE_MANAGER_EMBEDDER_EXPORT base::Optional<std::map<int, std::string>> |
| 26 const std::string& value); | 27 ParseSharedFileSwitchValue(const std::string& value); |
| 27 | 28 |
| 28 } // namespace service_manager | 29 } // namespace service_manager |
| 29 | 30 |
| 30 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SHARED_FILE_UTIL_H_ | 31 #endif // SERVICES_SERVICE_MANAGER_EMBEDDER_SHARED_FILE_UTIL_H_ |
| OLD | NEW |