Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / mojo / services / public / cpp / view_manager / lib / view_manager_client_factory.cc
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/public/cpp/view_manager/view_manager_client_factory.h"
6
7 #include "mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h"
8
9 namespace mojo {
10
11 ViewManagerClientFactory::ViewManagerClientFactory(
12     ViewManagerDelegate* delegate)
13     : delegate_(delegate) {
14 }
15
16 ViewManagerClientFactory::~ViewManagerClientFactory() {
17 }
18
19 // InterfaceFactory<ViewManagerClient> implementation.
20 void ViewManagerClientFactory::Create(
21     ApplicationConnection* connection,
22     InterfaceRequest<ViewManagerClient> request) {
23   BindToRequest(new ViewManagerClientImpl(delegate_, connection), &request);
24 }
25
26 }  // namespace mojo