summaryrefslogtreecommitdiffstats
path: root/remoting/client/client_util.h
diff options
context:
space:
mode:
authorgarykac@google.com <garykac@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-20 00:34:57 +0000
committergarykac@google.com <garykac@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-20 00:34:57 +0000
commit4d37c874d917cc370e188cfdef05bb629388421a (patch)
tree08f68e3ef47406ae69209f489832fa8f1c76448e /remoting/client/client_util.h
parent0af395eb3fa7d33473b4239a7b637fc6a7ce0e98 (diff)
downloadchromium_src-4d37c874d917cc370e188cfdef05bb629388421a.zip
chromium_src-4d37c874d917cc370e188cfdef05bb629388421a.tar.gz
chromium_src-4d37c874d917cc370e188cfdef05bb629388421a.tar.bz2
Refactor the client code for the X11 version.
Make ChromotingViews responsible for initializing themselves. Move all x11-related code into X11View. Create InputCapturer class manage client input capture. BUG=none TEST=ran Win host + X11 client Review URL: http://codereview.chromium.org/2861047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52973 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/client_util.h')
-rw-r--r--remoting/client/client_util.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/remoting/client/client_util.h b/remoting/client/client_util.h
index 44f3435..9aa1474 100644
--- a/remoting/client/client_util.h
+++ b/remoting/client/client_util.h
@@ -9,12 +9,16 @@
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 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 GetLoginInfo(int argc, char** argv,
- std::string* host_jid, std::string* username,
- std::string* auth_token);
+bool GetLoginInfoFromUrlParams(const std::string& url, ClientConfig* config);
} // namespace remoting