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

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

Issue 1873463003: Remove mojo network service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index 709893954daf2df5359c4f34477eb38cc1a3db3c..0000000000000000000000000000000000000000
--- a/mojo/services/network/network_service_delegate.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_
-#define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_
-
-#include "base/macros.h"
-#include "base/observer_list.h"
-#include "base/threading/thread.h"
-#include "mojo/services/network/network_context.h"
-#include "mojo/services/network/public/interfaces/cookie_store.mojom.h"
-#include "mojo/services/network/public/interfaces/network_service.mojom.h"
-#include "mojo/services/network/public/interfaces/url_loader_factory.mojom.h"
-#include "mojo/services/network/public/interfaces/web_socket_factory.mojom.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 mojo {
-class NetworkServiceDelegateObserver;
-
-class NetworkServiceDelegate : public ShellClient,
- public InterfaceFactory<NetworkService>,
- public InterfaceFactory<CookieStore>,
- public InterfaceFactory<WebSocketFactory>,
- public InterfaceFactory<URLLoaderFactory> {
- public:
- NetworkServiceDelegate();
- ~NetworkServiceDelegate() override;
-
- void AddObserver(NetworkServiceDelegateObserver* observer);
- void RemoveObserver(NetworkServiceDelegateObserver* observer);
-
- private:
- // mojo::ShellClient implementation.
- void Initialize(Connector* connector, const Identity& identity,
- uint32_t id) override;
- bool AcceptConnection(Connection* connection) override;
-
- // InterfaceFactory<NetworkService> implementation.
- void Create(Connection* connection,
- InterfaceRequest<NetworkService> request) override;
-
- // InterfaceFactory<CookieStore> implementation.
- void Create(Connection* connection,
- InterfaceRequest<CookieStore> request) override;
-
- // InterfaceFactory<WebSocketFactory> implementation.
- void Create(Connection* connection,
- InterfaceRequest<WebSocketFactory> request) override;
-
- // InterfaceFactory<URLLoaderFactory> implementation.
- void Create(Connection* connection,
- InterfaceRequest<URLLoaderFactory> request) override;
-
- private:
- void Quit();
-
- mojo::TracingImpl tracing_;
-
- // Observers that want notifications that our worker thread is going away.
- base::ObserverList<NetworkServiceDelegateObserver> observers_;
-
- scoped_ptr<NetworkContext> context_;
-
- mojo::MessageLoopRefFactory ref_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(NetworkServiceDelegate);
-};
-
-} // namespace mojo
-
-#endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_
« 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