blob: ad024114ed2c0cb529348f748e71ef8aff6a8f7a (
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
35
36
37
38
39
40
41
42
43
44
45
|
// Copyright 2016 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.
#ifndef MOJO_SERVICES_CATALOG_LOADER_H_
#define MOJO_SERVICES_CATALOG_LOADER_H_
#include "base/memory/scoped_ptr.h"
#include "mojo/services/catalog/store.h"
#include "mojo/shell/loader.h"
namespace base {
class BlockingPool;
}
namespace mojo {
class ShellClient;
class ShellConnection;
}
namespace catalog {
class Store;
class Loader : public mojo::shell::Loader {
public:
Loader(base::TaskRunner* blocking_pool, scoped_ptr<Store> store);
~Loader() override;
// mojo::shell::Loader:
void Load(const std::string& name,
mojo::shell::mojom::ShellClientRequest request) override;
private:
base::TaskRunner* blocking_pool_;
scoped_ptr<Store> store_;
scoped_ptr<mojo::ShellClient> client_;
scoped_ptr<mojo::ShellConnection> connection_;
DISALLOW_COPY_AND_ASSIGN(Loader);
};
} // namespace catalog
#endif // MOJO_SERVICES_CATALOG_LOADER_H_
|