| Index: services/service_manager/public/cpp/shared_file_util.h
|
| diff --git a/services/service_manager/public/cpp/shared_file_util.h b/services/service_manager/public/cpp/shared_file_util.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b184b29e4917062d126580ae38405c48049cb0bb
|
| --- /dev/null
|
| +++ b/services/service_manager/public/cpp/shared_file_util.h
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SHARED_FILE_UTIL_H_
|
| +#define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SHARED_FILE_UTIL_H_
|
| +
|
| +#include <map>
|
| +#include <string>
|
| +
|
| +#include "base/command_line.h"
|
| +#include "base/optional.h"
|
| +
|
| +namespace service_manager {
|
| +
|
| +class SharedFileSwitchValueBuilder final {
|
| + public:
|
| + void AddEntry(const std::string& key_str, int key_id);
|
| + const std::string& switch_value() const { return switch_value_; }
|
| +
|
| + private:
|
| + std::string switch_value_;
|
| +};
|
| +
|
| +base::Optional<std::map<int, std::string>> ParseSharedFileSwitchValue(
|
| + const std::string& value);
|
| +
|
| +} // namespace service_manager
|
| +
|
| +#endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SHARED_FILE_UTIL_H_
|
|
|