OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_LEVELDB_LEVELDB_APP_H_ | 5 #ifndef COMPONENTS_LEVELDB_LEVELDB_APP_H_ |
6 #define COMPONENTS_LEVELDB_LEVELDB_APP_H_ | 6 #define COMPONENTS_LEVELDB_LEVELDB_APP_H_ |
7 | 7 |
8 #include "components/leveldb/public/interfaces/leveldb.mojom.h" | 8 #include "components/leveldb/public/interfaces/leveldb.mojom.h" |
9 #include "mojo/public/cpp/bindings/binding_set.h" | 9 #include "mojo/public/cpp/bindings/binding_set.h" |
10 #include "mojo/services/tracing/public/cpp/tracing_impl.h" | 10 #include "mojo/services/tracing/public/cpp/tracing_impl.h" |
11 #include "mojo/shell/public/cpp/interface_factory.h" | 11 #include "services/shell/public/cpp/interface_factory.h" |
12 #include "mojo/shell/public/cpp/shell_client.h" | 12 #include "services/shell/public/cpp/shell_client.h" |
13 | 13 |
14 namespace leveldb { | 14 namespace leveldb { |
15 | 15 |
16 class LevelDBApp : public mojo::ShellClient, | 16 class LevelDBApp : public mojo::ShellClient, |
17 public mojo::InterfaceFactory<LevelDBService> { | 17 public mojo::InterfaceFactory<LevelDBService> { |
18 public: | 18 public: |
19 LevelDBApp(); | 19 LevelDBApp(); |
20 ~LevelDBApp() override; | 20 ~LevelDBApp() override; |
21 | 21 |
22 private: | 22 private: |
(...skipping 10 matching lines...) Expand all Loading... |
33 mojo::TracingImpl tracing_; | 33 mojo::TracingImpl tracing_; |
34 scoped_ptr<LevelDBService> service_; | 34 scoped_ptr<LevelDBService> service_; |
35 mojo::BindingSet<LevelDBService> bindings_; | 35 mojo::BindingSet<LevelDBService> bindings_; |
36 | 36 |
37 DISALLOW_COPY_AND_ASSIGN(LevelDBApp); | 37 DISALLOW_COPY_AND_ASSIGN(LevelDBApp); |
38 }; | 38 }; |
39 | 39 |
40 } // namespace leveldb | 40 } // namespace leveldb |
41 | 41 |
42 #endif // COMPONENTS_LEVELDB_LEVELDB_APP_H_ | 42 #endif // COMPONENTS_LEVELDB_LEVELDB_APP_H_ |
OLD | NEW |