diff options
author | fsamuel <fsamuel@chromium.org> | 2015-10-15 20:40:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-16 03:40:44 +0000 |
commit | 2b2412200a7d14ab31f5c866d3d4eb1bab8ab58a (patch) | |
tree | c726b9832eb43de0adbea9d2c2c27dba84951240 /components/mus/ws/client_connection.cc | |
parent | 8045de4985ef19fe5c6c6eb920a9237f4152ccaa (diff) | |
download | chromium_src-2b2412200a7d14ab31f5c866d3d4eb1bab8ab58a.zip chromium_src-2b2412200a7d14ab31f5c866d3d4eb1bab8ab58a.tar.gz chromium_src-2b2412200a7d14ab31f5c866d3d4eb1bab8ab58a.tar.bz2 |
mus: components/mus/vm => components/mus/ws
Renaming the View manager to Window Server.
BUG=542848
TBR=ben@chromium.org
Review URL: https://codereview.chromium.org/1405983002
Cr-Commit-Position: refs/heads/master@{#354440}
Diffstat (limited to 'components/mus/ws/client_connection.cc')
-rw-r--r-- | components/mus/ws/client_connection.cc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/components/mus/ws/client_connection.cc b/components/mus/ws/client_connection.cc new file mode 100644 index 0000000..06fa39a2 --- /dev/null +++ b/components/mus/ws/client_connection.cc @@ -0,0 +1,33 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "components/mus/ws/client_connection.h" + +#include "components/mus/ws/connection_manager.h" +#include "components/mus/ws/view_tree_impl.h" + +namespace mus { + +ClientConnection::ClientConnection(scoped_ptr<ViewTreeImpl> service, + mojo::ViewTreeClient* client) + : service_(service.Pass()), client_(client) {} + +ClientConnection::~ClientConnection() {} + +DefaultClientConnection::DefaultClientConnection( + scoped_ptr<ViewTreeImpl> service_impl, + ConnectionManager* connection_manager, + mojo::InterfaceRequest<mojo::ViewTree> service_request, + mojo::ViewTreeClientPtr client) + : ClientConnection(service_impl.Pass(), client.get()), + connection_manager_(connection_manager), + binding_(service(), service_request.Pass()), + client_(client.Pass()) { + binding_.set_connection_error_handler( + [this]() { connection_manager_->OnConnectionError(this); }); +} + +DefaultClientConnection::~DefaultClientConnection() {} + +} // namespace mus |