| Index: remoting/host/host_session_options.h
|
| diff --git a/remoting/host/host_session_options.h b/remoting/host/host_session_options.h
|
| index 158a4005f16e3ba9c40c9868098d963f1c3bdde4..5b231e753937cdef7c65ca44a0e0b88d504845a5 100644
|
| --- a/remoting/host/host_session_options.h
|
| +++ b/remoting/host/host_session_options.h
|
| @@ -27,9 +27,18 @@ class HostSessionOptions final {
|
| void Append(const std::string& key, const std::string& value);
|
|
|
| // Retrieves the value of |key|. Returns a true Optional if |key| has been
|
| - // found, value of the Optional wil be set to corresponding value.
|
| + // found, value of the Optional will be set to corresponding value.
|
| base::Optional<std::string> Get(const std::string& key) const;
|
|
|
| + // Retrieves the value of |key|. Returns a true Optional if |key| has been
|
| + // found, value of the Optional will be set to true if corresponding value is
|
| + // "true", "1" or empty.
|
| + base::Optional<bool> GetBool(const std::string& key) const;
|
| +
|
| + // Retrieves the value of |key|. Returns a true Optional if |key| has been
|
| + // found, and the corresponding value can be converted to an integer.
|
| + base::Optional<int> GetInt(const std::string& key) const;
|
| +
|
| // Returns a string to represent current instance. Consumers can rebuild an
|
| // exactly same instance with Import() function.
|
| std::string Export() const;
|
|
|