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

Side by Side Diff: mojo/services/public/cpp/view_manager/lib/view_manager_client_factory.cc

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix network_service_loader Created 6 years, 5 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 | Annotate | Revision Log
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/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 namespace view_manager {
11
12 ViewManagerClientFactory::ViewManagerClientFactory(
13 ViewManagerDelegate* delegate)
14 : delegate_(delegate) {
15 }
16
17 ViewManagerClientFactory::~ViewManagerClientFactory() {
18 }
19
20 // InterfaceFactory<ViewManagerClient> implementation.
21 void ViewManagerClientFactory::Create(
22 ApplicationConnection* connection,
23 InterfaceRequest<ViewManagerClient> request) {
24 BindToRequest(new ViewManagerClientImpl(delegate_), &request);
25 }
26
27 } // namespace view_manager
28 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/network/url_loader_impl.cc ('k') | mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698