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

Side by Side Diff: mojo/services/network/network_service_delegate.h

Issue 1225673006: Revert of mandoline filesystem: Save cookie data to the mojo:filesystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sqlite-fs
Patch Set: Created 5 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_ 5 #ifndef MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_
6 #define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_ 6 #define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_
7 7
8 #include "base/threading/thread.h"
9 #include "components/filesystem/public/interfaces/file_system.mojom.h"
10 #include "mojo/application/public/cpp/application_delegate.h" 8 #include "mojo/application/public/cpp/application_delegate.h"
11 #include "mojo/application/public/cpp/application_impl.h" 9 #include "mojo/application/public/cpp/application_impl.h"
12 #include "mojo/application/public/cpp/interface_factory.h" 10 #include "mojo/application/public/cpp/interface_factory.h"
13 #include "mojo/services/network/network_context.h" 11 #include "mojo/services/network/network_context.h"
14 #include "mojo/services/network/public/interfaces/network_service.mojom.h" 12 #include "mojo/services/network/public/interfaces/network_service.mojom.h"
15 #include "mojo/services/network/public/interfaces/url_loader_factory.mojom.h" 13 #include "mojo/services/network/public/interfaces/url_loader_factory.mojom.h"
16 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_ptr.h" 14 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_ptr.h"
17 15
18 namespace sql {
19 class ScopedMojoFilesystemVFS;
20 }
21
22 class NetworkServiceDelegate 16 class NetworkServiceDelegate
23 : public mojo::ApplicationDelegate, 17 : public mojo::ApplicationDelegate,
24 public mojo::InterfaceFactory<mojo::NetworkService>, 18 public mojo::InterfaceFactory<mojo::NetworkService>,
25 public mojo::InterfaceFactory<mojo::URLLoaderFactory> { 19 public mojo::InterfaceFactory<mojo::URLLoaderFactory> {
26 public: 20 public:
27 NetworkServiceDelegate(); 21 NetworkServiceDelegate();
28 ~NetworkServiceDelegate() override; 22 ~NetworkServiceDelegate() override;
29 23
30 private: 24 private:
31 // mojo::ApplicationDelegate implementation. 25 // mojo::ApplicationDelegate implementation.
32 void Initialize(mojo::ApplicationImpl* app) override; 26 void Initialize(mojo::ApplicationImpl* app) override;
33 bool ConfigureIncomingConnection( 27 bool ConfigureIncomingConnection(
34 mojo::ApplicationConnection* connection) override; 28 mojo::ApplicationConnection* connection) override;
35 void Quit() override; 29 void Quit() override;
36 30
37 // mojo::InterfaceFactory<mojo::NetworkService> implementation. 31 // mojo::InterfaceFactory<mojo::NetworkService> implementation.
38 void Create(mojo::ApplicationConnection* connection, 32 void Create(mojo::ApplicationConnection* connection,
39 mojo::InterfaceRequest<mojo::NetworkService> request) override; 33 mojo::InterfaceRequest<mojo::NetworkService> request) override;
40 34
41 // mojo::InterfaceFactory<mojo::URLLoaderFactory> implementation. 35 // mojo::InterfaceFactory<mojo::URLLoaderFactory> implementation.
42 void Create(mojo::ApplicationConnection* connection, 36 void Create(mojo::ApplicationConnection* connection,
43 mojo::InterfaceRequest<mojo::URLLoaderFactory> request) override; 37 mojo::InterfaceRequest<mojo::URLLoaderFactory> request) override;
44 38
45 private: 39 private:
46 mojo::ApplicationImpl* app_; 40 mojo::ApplicationImpl* app_;
47
48 // A worker thread that blocks for file IO.
49 scoped_ptr<base::Thread> io_worker_thread_;
50
51 // Our connection to the filesystem service, which stores our cookies and
52 // other data.
53 filesystem::FileSystemPtr files_;
54
55 scoped_ptr<mojo::NetworkContext> context_; 41 scoped_ptr<mojo::NetworkContext> context_;
56 }; 42 };
57 43
58 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_ 44 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_
OLDNEW
« no previous file with comments | « mojo/services/network/network_context.cc ('k') | mojo/services/network/network_service_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698