OLD | NEW |
| (Empty) |
1 // Copyright 2015 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 "mandoline/tab/frame_services.h" | |
6 | |
7 #include "mojo/application/public/cpp/connect.h" | |
8 | |
9 namespace mandoline { | |
10 | |
11 FrameServices::FrameServices() { | |
12 } | |
13 | |
14 FrameServices::~FrameServices() { | |
15 } | |
16 | |
17 void FrameServices::Init( | |
18 mojo::InterfaceRequest<mojo::ServiceProvider>* services, | |
19 mojo::ServiceProviderPtr* exposed_services) { | |
20 *services = GetProxy(&services_).Pass(); | |
21 | |
22 if (exposed_services) { | |
23 mojo::ServiceProviderPtr exposed_services_ptr; | |
24 exposed_services_.Bind(GetProxy(&exposed_services_ptr)); | |
25 *exposed_services = exposed_services_ptr.Pass(); | |
26 } | |
27 | |
28 mojo::ConnectToService(services_.get(), &frame_tree_client_); | |
29 } | |
30 | |
31 } // namespace mandoline | |
OLD | NEW |