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

Unified Diff: remoting/base/util.h

Issue 209323002: New policies: enable/disable relay; port range (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a few more tests. Created 6 years, 9 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 | « no previous file | remoting/base/util.cc » ('j') | remoting/jingle_glue/network_settings.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/util.h
diff --git a/remoting/base/util.h b/remoting/base/util.h
index c8c70210f686051ee474ffe0fbfe6931a2da6ebe..d11d407d281ad4e30c1a56f5ebb90fce67ade20b 100644
--- a/remoting/base/util.h
+++ b/remoting/base/util.h
@@ -96,6 +96,11 @@ bool StringIsUtf8(const char* data, size_t length);
bool DoesRectContain(const webrtc::DesktopRect& a,
const webrtc::DesktopRect& b);
+// Parse string in the form "<min_port>-<max_port>". E.g. "12400-12409".
+// Returns true if string was parsed successfuly.
+bool ParsePortRange(const std::string& port_range, int* out_min_port,
+ int* out_max_port);
+
} // namespace remoting
#endif // REMOTING_BASE_UTIL_H_
« no previous file with comments | « no previous file | remoting/base/util.cc » ('j') | remoting/jingle_glue/network_settings.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698