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

Unified Diff: components/profile_service/profile_service_impl.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: Add OWNERS file by request. 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 side-by-side diff with in-line comments
Download patch
Index: components/profile_service/profile_service_impl.h
diff --git a/components/profile_service/profile_service_impl.h b/components/profile_service/profile_service_impl.h
index 72f7ce8c6fc24004a31adbdf275bc52d0587af8f..be58b1b20b21fb28cd08d9ae1853887de7f9cffe 100644
--- a/components/profile_service/profile_service_impl.h
+++ b/components/profile_service/profile_service_impl.h
@@ -16,6 +16,10 @@ namespace filesystem {
class LockTable;
}
+namespace mojo {
+class MessageLoopRef;
+}
+
namespace profile {
// A service which serves directories to callers.
@@ -23,15 +27,24 @@ class ProfileServiceImpl : public ProfileService {
public:
ProfileServiceImpl(mojo::Connection* connection,
mojo::InterfaceRequest<ProfileService> request,
- base::FilePath base_profile_dir,
+ scoped_ptr<mojo::MessageLoopRef> ref,
+ const base::FilePath& base_profile_dir,
filesystem::LockTable* lock_table);
~ProfileServiceImpl() override;
// Overridden from ProfileService:
void GetDirectory(
- mojo::InterfaceRequest<filesystem::Directory> request) override;
+ mojo::InterfaceRequest<filesystem::Directory> request,
+ const GetDirectoryCallback& callback) override;
+ void GetSubDirectory(
+ const mojo::String& dir_name,
+ mojo::InterfaceRequest<filesystem::Directory> request,
+ const GetSubDirectoryCallback& callback) override;
private:
+ // Causes our application to quit when we go out of scope.
+ scoped_ptr<mojo::MessageLoopRef> message_loop_ref_;
+
mojo::StrongBinding<ProfileService> binding_;
filesystem::LockTable* lock_table_;
base::FilePath path_;

Powered by Google App Engine
This is Rietveld 408576698