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" |
(...skipping 11 matching lines...) Expand all Loading... |
22 private: | 22 private: |
23 // |ShellClient| override: | 23 // |ShellClient| override: |
24 void Initialize(mojo::Connector* connector, | 24 void Initialize(mojo::Connector* connector, |
25 const mojo::Identity& identity, | 25 const mojo::Identity& identity, |
26 uint32_t id) override; | 26 uint32_t id) override; |
27 bool AcceptConnection(mojo::Connection* connection) override; | 27 bool AcceptConnection(mojo::Connection* connection) override; |
28 void ShellConnectionLost() override; | 28 void ShellConnectionLost() override; |
29 | 29 |
30 // |InterfaceFactory<LevelDBService>| implementation: | 30 // |InterfaceFactory<LevelDBService>| implementation: |
31 void Create(mojo::Connection* connection, | 31 void Create(mojo::Connection* connection, |
32 mojo::InterfaceRequest<LevelDBService> request) override; | 32 leveldb::LevelDBServiceRequest request) override; |
33 | 33 |
34 mojo::TracingImpl tracing_; | 34 mojo::TracingImpl tracing_; |
35 scoped_ptr<LevelDBService> service_; | 35 scoped_ptr<LevelDBService> service_; |
36 mojo::BindingSet<LevelDBService> bindings_; | 36 mojo::BindingSet<LevelDBService> bindings_; |
37 | 37 |
38 DISALLOW_COPY_AND_ASSIGN(LevelDBApp); | 38 DISALLOW_COPY_AND_ASSIGN(LevelDBApp); |
39 }; | 39 }; |
40 | 40 |
41 } // namespace leveldb | 41 } // namespace leveldb |
42 | 42 |
43 #endif // COMPONENTS_LEVELDB_LEVELDB_APP_H_ | 43 #endif // COMPONENTS_LEVELDB_LEVELDB_APP_H_ |
OLD | NEW |