Index: components/profile_service/profile_app.h |
diff --git a/components/profile_service/profile_app.h b/components/profile_service/profile_app.h |
index 80c0130d5d4a4a6ea7048ff149dc8a7b2948fde4..ae589b015c4e5acb32c26595ed00ac1d709284ee 100644 |
--- a/components/profile_service/profile_app.h |
+++ b/components/profile_service/profile_app.h |
@@ -6,11 +6,11 @@ |
#define COMPONENTS_PROFILE_SERVICE_PROFILE_APP_H_ |
#include "components/filesystem/lock_table.h" |
-#include "components/leveldb/public/interfaces/leveldb.mojom.h" |
#include "components/profile_service/public/interfaces/profile.mojom.h" |
#include "mojo/public/cpp/bindings/binding_set.h" |
#include "mojo/services/tracing/public/cpp/tracing_impl.h" |
#include "mojo/shell/public/cpp/interface_factory.h" |
+#include "mojo/shell/public/cpp/message_loop_ref.h" |
#include "mojo/shell/public/cpp/shell_client.h" |
namespace filesystem { |
@@ -23,16 +23,14 @@ scoped_ptr<mojo::ShellClient> CreateProfileApp(); |
// Application which hands off per-profile services. |
// |
-// This Application serves ProfileService, and serves LevelDBService since most |
-// of the users of leveldb will want to write directly to the Directory |
-// provided by the ProfileService; we want file handling to be done in the same |
-// process to minimize IPC. |
-// |
-// In the future, this application will probably also offer any service that |
-// most Profile using applications will need, such as preferences. |
+// This Application serves ProfileService. In the future, this application will |
+// probably also offer any service that most Profile using applications will |
+// need, such as preferences, but these will need to be served off of separate |
+// threads; this class will have to be made into a application which is an |
+// InterfaceProvider which internally spawns threads for different |
+// sub-applications. |
class ProfileApp : public mojo::ShellClient, |
- public mojo::InterfaceFactory<ProfileService>, |
- public mojo::InterfaceFactory<leveldb::LevelDBService> { |
+ public mojo::InterfaceFactory<ProfileService> { |
public: |
ProfileApp(); |
~ProfileApp() override; |
@@ -65,22 +63,17 @@ class ProfileApp : public mojo::ShellClient, |
void Create(mojo::Connection* connection, |
mojo::InterfaceRequest<ProfileService> request) override; |
- // |InterfaceFactory<LevelDBService>| implementation: |
- void Create(mojo::Connection* connection, |
- mojo::InterfaceRequest<leveldb::LevelDBService> request) override; |
- |
mojo::TracingImpl tracing_; |
scoped_ptr<ProfileService> profile_service_; |
mojo::BindingSet<ProfileService> profile_bindings_; |
- scoped_ptr<leveldb::LevelDBService> leveldb_service_; |
- mojo::BindingSet<leveldb::LevelDBService> leveldb_bindings_; |
- |
scoped_ptr<filesystem::LockTable> lock_table_; |
base::FilePath profile_data_dir_; |
+ mojo::MessageLoopRefFactory ref_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ProfileApp); |
}; |