blob: a7ba1f9cff36d69d538df4af0fd42b5d0f8ed826 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// 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 CONTENT_COMMON_SHARED_FILE_UTIL_H_
#define CONTENT_COMMON_SHARED_FILE_UTIL_H_
#include <map>
#include <string>
#include "base/command_line.h"
#include "base/component_export.h"
#include "content/common/content_export.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
namespace content {
class CONTENT_EXPORT 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_;
};
CONTENT_EXPORT
absl::optional<std::map<int, std::string>> ParseSharedFileSwitchValue(
const std::string& value);
} // namespace content
#endif // CONTENT_COMMON_SHARED_FILE_UTIL_H_
|