Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Side by Side Diff: components/leveldb/leveldb_app.h

Issue 1737933002: mojo leveldb: Get profile and leveldb connected to DOMStorageContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp-ify all the tracing stuff. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "mojo/shell/public/cpp/interface_factory.h"
12 #include "mojo/shell/public/cpp/shell_client.h" 12 #include "mojo/shell/public/cpp/shell_client.h"
13 13
14 namespace leveldb { 14 namespace leveldb {
15 15
16 scoped_ptr<mojo::ShellClient> CreateLevelDBApp();
michaeln 2016/02/26 21:59:24 The terminology is going to take some getting used
17
16 class LevelDBApp : public mojo::ShellClient, 18 class LevelDBApp : public mojo::ShellClient,
17 public mojo::InterfaceFactory<LevelDBService> { 19 public mojo::InterfaceFactory<LevelDBService> {
18 public: 20 public:
19 LevelDBApp(); 21 LevelDBApp();
20 ~LevelDBApp() override; 22 ~LevelDBApp() override;
21 23
22 private: 24 private:
23 // |ShellClient| override: 25 // |ShellClient| override:
24 void Initialize(mojo::Shell* shell, 26 void Initialize(mojo::Shell* shell,
25 const std::string& url, 27 const std::string& url,
(...skipping 11 matching lines...) Expand all
37 mojo::TracingImpl tracing_; 39 mojo::TracingImpl tracing_;
38 scoped_ptr<LevelDBService> service_; 40 scoped_ptr<LevelDBService> service_;
39 mojo::BindingSet<LevelDBService> bindings_; 41 mojo::BindingSet<LevelDBService> bindings_;
40 42
41 DISALLOW_COPY_AND_ASSIGN(LevelDBApp); 43 DISALLOW_COPY_AND_ASSIGN(LevelDBApp);
42 }; 44 };
43 45
44 } // namespace leveldb 46 } // namespace leveldb
45 47
46 #endif // COMPONENTS_LEVELDB_LEVELDB_APP_H_ 48 #endif // COMPONENTS_LEVELDB_LEVELDB_APP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698