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_ |