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

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

Issue 1459453003: mandoline: write this after lunch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TracingImpls to mus and mash, fix naming. Created 5 years, 1 month 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
« no previous file with comments | « mojo/services/network/BUILD.gn ('k') | mojo/services/network/network_service_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/observer_list.h" 8 #include "base/observer_list.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "components/filesystem/public/interfaces/file_system.mojom.h" 10 #include "components/filesystem/public/interfaces/file_system.mojom.h"
11 #include "mojo/application/public/cpp/application_delegate.h" 11 #include "mojo/application/public/cpp/application_delegate.h"
12 #include "mojo/application/public/cpp/application_impl.h" 12 #include "mojo/application/public/cpp/application_impl.h"
13 #include "mojo/application/public/cpp/interface_factory.h" 13 #include "mojo/application/public/cpp/interface_factory.h"
14 #include "mojo/services/network/network_context.h" 14 #include "mojo/services/network/network_context.h"
15 #include "mojo/services/network/public/interfaces/cookie_store.mojom.h" 15 #include "mojo/services/network/public/interfaces/cookie_store.mojom.h"
16 #include "mojo/services/network/public/interfaces/network_service.mojom.h" 16 #include "mojo/services/network/public/interfaces/network_service.mojom.h"
17 #include "mojo/services/network/public/interfaces/url_loader_factory.mojom.h" 17 #include "mojo/services/network/public/interfaces/url_loader_factory.mojom.h"
18 #include "mojo/services/network/public/interfaces/web_socket_factory.mojom.h" 18 #include "mojo/services/network/public/interfaces/web_socket_factory.mojom.h"
19 #include "mojo/services/tracing/public/cpp/tracing_impl.h"
19 20
20 namespace sql { 21 namespace sql {
21 class ScopedMojoFilesystemVFS; 22 class ScopedMojoFilesystemVFS;
22 } 23 }
23 24
24 namespace mojo { 25 namespace mojo {
25 class NetworkServiceDelegateObserver; 26 class NetworkServiceDelegateObserver;
26 27
27 class NetworkServiceDelegate : public ApplicationDelegate, 28 class NetworkServiceDelegate : public ApplicationDelegate,
28 public InterfaceFactory<NetworkService>, 29 public InterfaceFactory<NetworkService>,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 63
63 // InterfaceFactory<URLLoaderFactory> implementation. 64 // InterfaceFactory<URLLoaderFactory> implementation.
64 void Create(ApplicationConnection* connection, 65 void Create(ApplicationConnection* connection,
65 InterfaceRequest<URLLoaderFactory> request) override; 66 InterfaceRequest<URLLoaderFactory> request) override;
66 67
67 // Overridden from FileSystemClient: 68 // Overridden from FileSystemClient:
68 void OnFileSystemShutdown() override; 69 void OnFileSystemShutdown() override;
69 70
70 private: 71 private:
71 ApplicationImpl* app_; 72 ApplicationImpl* app_;
73 mojo::TracingImpl tracing_;
72 74
73 // Observers that want notifications that our worker thread is going away. 75 // Observers that want notifications that our worker thread is going away.
74 base::ObserverList<NetworkServiceDelegateObserver> observers_; 76 base::ObserverList<NetworkServiceDelegateObserver> observers_;
75 77
76 Binding<filesystem::FileSystemClient> binding_; 78 Binding<filesystem::FileSystemClient> binding_;
77 79
78 // A worker thread that blocks for file IO. 80 // A worker thread that blocks for file IO.
79 scoped_ptr<base::Thread> io_worker_thread_; 81 scoped_ptr<base::Thread> io_worker_thread_;
80 82
81 // Our connection to the filesystem service, which stores our cookies and 83 // Our connection to the filesystem service, which stores our cookies and
82 // other data. 84 // other data.
83 filesystem::FileSystemPtr files_; 85 filesystem::FileSystemPtr files_;
84 86
85 scoped_ptr<NetworkContext> context_; 87 scoped_ptr<NetworkContext> context_;
86 }; 88 };
87 89
88 } // namespace mojo 90 } // namespace mojo
89 91
90 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_ 92 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_
OLDNEW
« no previous file with comments | « mojo/services/network/BUILD.gn ('k') | mojo/services/network/network_service_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698