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

Unified Diff: mojo/services/view_manager/client_connection.cc

Issue 1049993002: Get mojo_shell building inside chromium checkout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit Created 5 years, 9 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 | « mojo/services/view_manager/client_connection.h ('k') | mojo/services/view_manager/connection_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/client_connection.cc
diff --git a/mojo/services/view_manager/client_connection.cc b/mojo/services/view_manager/client_connection.cc
new file mode 100644
index 0000000000000000000000000000000000000000..41c2c59499e20574be62546e4235276f1ef8ceae
--- /dev/null
+++ b/mojo/services/view_manager/client_connection.cc
@@ -0,0 +1,39 @@
+// 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 "mojo/services/view_manager/client_connection.h"
+
+#include "mojo/services/view_manager/connection_manager.h"
+#include "mojo/services/view_manager/view_manager_service_impl.h"
+
+namespace view_manager {
+
+ClientConnection::ClientConnection(scoped_ptr<ViewManagerServiceImpl> service,
+ mojo::ViewManagerClient* client)
+ : service_(service.Pass()), client_(client) {
+}
+
+ClientConnection::~ClientConnection() {
+}
+
+DefaultClientConnection::DefaultClientConnection(
+ scoped_ptr<ViewManagerServiceImpl> service_impl,
+ ConnectionManager* connection_manager,
+ mojo::InterfaceRequest<mojo::ViewManagerService> service_request,
+ mojo::ViewManagerClientPtr client)
+ : ClientConnection(service_impl.Pass(), client.get()),
+ connection_manager_(connection_manager),
+ binding_(service(), service_request.Pass()),
+ client_(client.Pass()) {
+ binding_.set_error_handler(this);
+}
+
+DefaultClientConnection::~DefaultClientConnection() {
+}
+
+void DefaultClientConnection::OnConnectionError() {
+ connection_manager_->OnConnectionError(this);
+}
+
+} // namespace view_manager
« no previous file with comments | « mojo/services/view_manager/client_connection.h ('k') | mojo/services/view_manager/connection_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698