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

Unified Diff: components/leveldb/leveldb_service_impl.h

Issue 1720603002: Revert of mojo: Get mojo:leveldb and mojo:filesystem compiled into content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/leveldb/leveldb_app.cc ('k') | components/leveldb/leveldb_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/leveldb/leveldb_service_impl.h
diff --git a/components/leveldb/leveldb_service_impl.h b/components/leveldb/leveldb_service_impl.h
deleted file mode 100644
index 54b2942eba24fcf5a2d1d6a3c39529d4ac165a8a..0000000000000000000000000000000000000000
--- a/components/leveldb/leveldb_service_impl.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// 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 COMPONENTS_LEVELDB_LEVELDB_SERVICE_IMPL_H_
-#define COMPONENTS_LEVELDB_LEVELDB_SERVICE_IMPL_H_
-
-#include "base/memory/ref_counted.h"
-#include "components/leveldb/leveldb_file_thread.h"
-#include "components/leveldb/public/interfaces/leveldb.mojom.h"
-
-namespace leveldb {
-
-// Creates LevelDBDatabases based scoped to a |directory|/|dbname|.
-class LevelDBServiceImpl : public LevelDBService {
- public:
- LevelDBServiceImpl();
- ~LevelDBServiceImpl() override;
-
- // Overridden from LevelDBService:
- void Open(filesystem::DirectoryPtr directory,
- const mojo::String& dbname,
- mojo::InterfaceRequest<LevelDBDatabase> database,
- const OpenCallback& callback) override;
-
- private:
- // Thread to own the mojo message pipe. Because leveldb spawns multiple
- // threads that want to call file stuff, we create a dedicated thread to send
- // and receive mojo message calls.
- scoped_refptr<LevelDBFileThread> thread_;
-
- DISALLOW_COPY_AND_ASSIGN(LevelDBServiceImpl);
-};
-
-} // namespace leveldb
-
-#endif // COMPONENTS_LEVELDB_LEVELDB_SERVICE_IMPL_H_
« no previous file with comments | « components/leveldb/leveldb_app.cc ('k') | components/leveldb/leveldb_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698