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

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

Issue 721243003: Changes ViewManagerServiceImpl so that it no longer subclasses InterfaceImpl (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: format Created 6 years, 1 month 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
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..949f062b44ea8a9bab52350a44c66d1c2d4ffba8
--- /dev/null
+++ b/mojo/services/view_manager/client_connection.cc
@@ -0,0 +1,37 @@
+// 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 mojo {
+namespace service {
+
+ClientConnection::ClientConnection(scoped_ptr<ViewManagerServiceImpl> service)
+ : service_(service.Pass()), client_(nullptr) {
+}
+
+ClientConnection::~ClientConnection() {
+}
+
+DefaultClientConnection::DefaultClientConnection(
+ ConnectionManager* connection_manager,
msw 2014/11/14 01:42:18 nit: swap the arg order to match the base class an
sky 2014/11/14 20:56:03 Done.
+ scoped_ptr<ViewManagerServiceImpl> service_impl)
+ : ClientConnection(service_impl.Pass()),
+ connection_manager_(connection_manager),
+ binding_(service()) {
+ binding_.set_error_handler(this);
+}
+
+DefaultClientConnection::~DefaultClientConnection() {
+}
+
+void DefaultClientConnection::OnConnectionError() {
+ connection_manager_->OnConnectionError(this);
+}
+
+} // namespace service
+} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698