blob: ab307189737042ac223d00e93ca1cb8fe2836bf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "mojo/services/view_manager/view_manager_init_service_impl.h"
#include "base/bind.h"
#include "mojo/services/view_manager/ids.h"
#include "mojo/services/view_manager/view_manager_init_service_context.h"
#include "mojo/services/view_manager/view_manager_service_impl.h"
namespace mojo {
namespace service {
ViewManagerInitServiceImpl::ViewManagerInitServiceImpl(
ApplicationConnection* connection,
ViewManagerInitServiceContext* context)
: context_(context) {
context_->AddConnection(this);
}
ViewManagerInitServiceImpl::~ViewManagerInitServiceImpl() {
context_->RemoveConnection(this);
}
void ViewManagerInitServiceImpl::Embed(
const String& url,
ServiceProviderPtr service_provider,
const Callback<void(bool)>& callback) {
context_->Embed(url, service_provider.Pass(), callback);
}
} // namespace service
} // namespace mojo
|