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

Unified Diff: remoting/client/client_util.h

Issue 2861047: Refactor the client code. Move all x11-related code into X11View and create... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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
Index: remoting/client/client_util.h
===================================================================
--- remoting/client/client_util.h (revision 52921)
+++ remoting/client/client_util.h (working copy)
@@ -9,13 +9,17 @@
namespace remoting {
+class ClientConfig;
+
// Get the login info from the cmdline args (or request from the console if
-// not present) and write values into |host_jid|, |username| and |auth_token|.
+// not present) and write values into |config|.
// Return true if successful.
-bool GetLoginInfo(int argc, char** argv,
- std::string* host_jid, std::string* username,
- std::string* auth_token);
+bool GetLoginInfoFromArgs(int argc, char** argv, ClientConfig* config);
+// Get the login info from the URL params and write values into |config|.
+// Return true if successful.
+bool GetLoginInfoFromUrlParams(const std::string& url, ClientConfig* config);
+
} // namespace remoting
#endif // REMOTING_CLIENT_CLIENT_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698