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

Unified Diff: remoting/host/chromoting_host.h

Issue 7134023: Notify calling web-app when Host plugin becomes connected to a client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Stop accepting connections once there is one active in Me2Mom. Created 9 years, 6 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/host/chromoting_host.cc » ('j') | remoting/host/chromoting_host.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host.h
diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h
index 20d476ad0585c0fc9b88b50125ec5942b64dc163..f5ead6f0822db35d4711549a9d2c63fe8980e7a6 100644
--- a/remoting/host/chromoting_host.h
+++ b/remoting/host/chromoting_host.h
@@ -123,6 +123,7 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
// |config| is transferred to the object. Must be called before Start().
void set_protocol_config(protocol::CandidateSessionConfig* config);
+ // TODO(wez): ChromotingHost shouldn't need to know about Me2Mom.
Jamie 2011/06/10 18:00:38 +1, although I don't think that half the lines in
Wez 2011/06/13 20:30:35 You're no fun. ;)
void set_me2mom(bool is_me2mom) {
is_me2mom_ = is_me2mom;
}
@@ -159,7 +160,7 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
std::string GenerateHostAuthToken(const std::string& encoded_client_token);
- bool HasAuthenticatedClients() const;
+ int AuthenticatedClientsCount() const;
void EnableCurtainMode(bool enable);
@@ -211,6 +212,7 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
// Whether or not the host is running in "Me2Mom" mode, in which connections
// are pre-authenticated, and hence the local login challenge can be bypassed.
+ // TODO(wez): ChromotingHost shouldn't need to know about Me2Mom.
bool is_me2mom_;
DISALLOW_COPY_AND_ASSIGN(ChromotingHost);
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | remoting/host/chromoting_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698