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

Unified Diff: trunk/src/remoting/host/client_session.cc

Issue 308743006: Revert 273652 "Host extensions" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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 | « trunk/src/remoting/host/client_session.h ('k') | trunk/src/remoting/host/client_session_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/remoting/host/client_session.cc
===================================================================
--- trunk/src/remoting/host/client_session.cc (revision 273673)
+++ trunk/src/remoting/host/client_session.cc (working copy)
@@ -18,7 +18,6 @@
#include "remoting/host/audio_capturer.h"
#include "remoting/host/audio_scheduler.h"
#include "remoting/host/desktop_environment.h"
-#include "remoting/host/host_extension_session.h"
#include "remoting/host/input_injector.h"
#include "remoting/host/screen_controls.h"
#include "remoting/host/screen_resolution.h"
@@ -99,25 +98,6 @@
connection_.reset();
}
-void ClientSession::AddExtensionSession(
- scoped_ptr<HostExtensionSession> extension_session) {
- DCHECK(CalledOnValidThread());
-
- extension_sessions_.push_back(extension_session.release());
-}
-
-void ClientSession::AddHostCapabilities(const std::string& capabilities) {
- DCHECK(CalledOnValidThread());
-
- if (capabilities.empty())
- return;
-
- if (!host_capabilities_.empty())
- host_capabilities_.append(" ");
-
- host_capabilities_.append(capabilities);
-}
-
void ClientSession::NotifyClientResolution(
const protocol::ClientResolution& resolution) {
DCHECK(CalledOnValidThread());
@@ -188,7 +168,6 @@
*client_capabilities_ = capabilities.capabilities();
VLOG(1) << "Client capabilities: " << *client_capabilities_;
- event_handler_->OnSessionClientCapabilities(this);
// Calculate the set of capabilities enabled by both client and host and
// pass it to the desktop environment if it is available.
@@ -225,13 +204,6 @@
HOST_LOG << "gnubby auth is not enabled";
}
return;
- } else {
- for(HostExtensionSessionList::iterator it = extension_sessions_.begin();
- it != extension_sessions_.end(); ++it) {
- // Extension returns |true| to indicate that the message was handled.
- if ((*it)->OnExtensionMessage(this, message))
- return;
- }
}
}
HOST_LOG << "Unexpected message received: "
@@ -281,7 +253,7 @@
return;
}
- AddHostCapabilities(desktop_environment_->GetCapabilities());
+ host_capabilities_ = desktop_environment_->GetCapabilities();
// Ignore protocol::Capabilities messages from the client if it does not
// support any capabilities.
@@ -289,8 +261,6 @@
VLOG(1) << "The client does not support any capabilities.";
client_capabilities_ = make_scoped_ptr(new std::string());
- event_handler_->OnSessionClientCapabilities(this);
-
desktop_environment_->SetCapabilities(*client_capabilities_);
}
« no previous file with comments | « trunk/src/remoting/host/client_session.h ('k') | trunk/src/remoting/host/client_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698