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

Side by Side 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, 8 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 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 view_manager {
11
12 ClientConnection::ClientConnection(scoped_ptr<ViewManagerServiceImpl> service,
13 mojo::ViewManagerClient* client)
14 : service_(service.Pass()), client_(client) {
15 }
16
17 ClientConnection::~ClientConnection() {
18 }
19
20 DefaultClientConnection::DefaultClientConnection(
21 scoped_ptr<ViewManagerServiceImpl> service_impl,
22 ConnectionManager* connection_manager,
23 mojo::InterfaceRequest<mojo::ViewManagerService> service_request,
24 mojo::ViewManagerClientPtr client)
25 : ClientConnection(service_impl.Pass(), client.get()),
26 connection_manager_(connection_manager),
27 binding_(service(), service_request.Pass()),
28 client_(client.Pass()) {
29 binding_.set_error_handler(this);
30 }
31
32 DefaultClientConnection::~DefaultClientConnection() {
33 }
34
35 void DefaultClientConnection::OnConnectionError() {
36 connection_manager_->OnConnectionError(this);
37 }
38
39 } // namespace view_manager
OLDNEW
« 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