Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2210)

Unified Diff: remoting/host/host_session_options.h

Issue 2858813002: [Chromoting] Use ProcessStatsSender in host process
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/desktop_environment_options.cc ('k') | remoting/host/host_session_options.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « remoting/host/desktop_environment_options.cc ('k') | remoting/host/host_session_options.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698