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

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: 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/host/policy_hack/policy_watcher.cc » ('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,
Sergey Ulanov 2014/03/24 23:37:12 nit:move out_min_port to the next line (one argume
Sergey Ulanov 2014/03/24 23:37:12 This doesn't belong in remoting/base (and I'd like
dcaiafa 2014/03/26 15:29:16 Done.
dcaiafa 2014/03/26 15:29:16 Moved to network_settings.*
+ 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/host/policy_hack/policy_watcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698