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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "mojo/services/view_manager/client_connection.h"
6
7 #include "mojo/services/view_manager/connection_manager.h"
8 #include "mojo/services/view_manager/view_manager_service_impl.h"
9
10 namespace mojo {
11 namespace service {
12
13 ClientConnection::ClientConnection(scoped_ptr<ViewManagerServiceImpl> service)
14 : service_(service.Pass()), client_(nullptr) {
15 }
16
17 ClientConnection::~ClientConnection() {
18 }
19
20 DefaultClientConnection::DefaultClientConnection(
21 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.
22 scoped_ptr<ViewManagerServiceImpl> service_impl)
23 : ClientConnection(service_impl.Pass()),
24 connection_manager_(connection_manager),
25 binding_(service()) {
26 binding_.set_error_handler(this);
27 }
28
29 DefaultClientConnection::~DefaultClientConnection() {
30 }
31
32 void DefaultClientConnection::OnConnectionError() {
33 connection_manager_->OnConnectionError(this);
34 }
35
36 } // namespace service
37 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698