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

Unified Diff: mojo/services/network/network_service_delegate.h

Issue 1179413010: mandoline filesystem: Save cookie data to the mojo:filesystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sqlite-fs
Patch Set: Have mojo_runner responsible for handling the temporary directory. Created 5 years, 6 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: mojo/services/network/network_service_delegate.h
diff --git a/mojo/services/network/network_service_delegate.h b/mojo/services/network/network_service_delegate.h
index 2c1718ff7ee99e1ae5fc02401ee3b25633dc377a..3580648b40d5f54a8f8af6965c0103160f7d87e4 100644
--- a/mojo/services/network/network_service_delegate.h
+++ b/mojo/services/network/network_service_delegate.h
@@ -5,6 +5,8 @@
#ifndef MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_
#define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_
+#include "base/threading/thread.h"
+#include "components/filesystem/public/interfaces/file_system.mojom.h"
#include "mojo/application/public/cpp/application_delegate.h"
#include "mojo/application/public/cpp/application_impl.h"
#include "mojo/application/public/cpp/interface_factory.h"
@@ -13,6 +15,10 @@
#include "mojo/services/network/public/interfaces/url_loader_factory.mojom.h"
#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_ptr.h"
+namespace sql {
+class ScopedMojoFilesystemVFS;
+}
+
class NetworkServiceDelegate
: public mojo::ApplicationDelegate,
public mojo::InterfaceFactory<mojo::NetworkService>,
@@ -38,6 +44,14 @@ class NetworkServiceDelegate
private:
mojo::ApplicationImpl* app_;
+
+ // A worker thread that blocks for file IO.
+ scoped_ptr<base::Thread> io_worker_thread_;
+
+ // Our connection to the filesystem service, which stores our cookies and
+ // other data.
+ filesystem::FileSystemPtr files_;
+
scoped_ptr<mojo::NetworkContext> context_;
};

Powered by Google App Engine
This is Rietveld 408576698