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

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

Issue 1290323002: HTMLViewer no longer connects to NetworkService interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 4 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/url_loader_factory_impl.cc ('k') | mojo/services/network/web_socket_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/web_socket_factory_impl.h
diff --git a/mojo/services/network/web_socket_factory_impl.h b/mojo/services/network/web_socket_factory_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..64fd1be90df7fcdc9028274b98e50a7bcce04523
--- /dev/null
+++ b/mojo/services/network/web_socket_factory_impl.h
@@ -0,0 +1,36 @@
+// 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_WEB_SOCKET_FACTORY_IMPL_H_
+#define MOJO_SERVICES_NETWORK_WEB_SOCKET_FACTORY_IMPL_H_
+
+#include "base/compiler_specific.h"
+#include "mojo/application/public/cpp/app_lifetime_helper.h"
+#include "mojo/services/network/public/interfaces/web_socket_factory.mojom.h"
+#include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
+
+namespace mojo {
+class NetworkContext;
+
+class WebSocketFactoryImpl : public WebSocketFactory {
+ public:
+ WebSocketFactoryImpl(NetworkContext* context,
+ scoped_ptr<AppRefCount> app_refcount,
+ InterfaceRequest<WebSocketFactory> request);
+ ~WebSocketFactoryImpl() override;
+
+ // WebSocketFactory methods:
+ void CreateWebSocket(InterfaceRequest<WebSocket> socket) override;
+
+ private:
+ NetworkContext* context_;
+ scoped_ptr<AppRefCount> app_refcount_;
+ StrongBinding<WebSocketFactory> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebSocketFactoryImpl);
+};
+
+} // namespace mojo
+
+#endif // MOJO_SERVICES_NETWORK_WEB_SOCKET_FACTORY_IMPL_H_
« no previous file with comments | « mojo/services/network/url_loader_factory_impl.cc ('k') | mojo/services/network/web_socket_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698