Update V8 to version 4.7.24.
[chromium-blink-merge.git] / mojo / services / network / web_socket_factory_impl.h
blob64fd1be90df7fcdc9028274b98e50a7bcce04523
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
3 // found in the LICENSE file.
5 #ifndef MOJO_SERVICES_NETWORK_WEB_SOCKET_FACTORY_IMPL_H_
6 #define MOJO_SERVICES_NETWORK_WEB_SOCKET_FACTORY_IMPL_H_
8 #include "base/compiler_specific.h"
9 #include "mojo/application/public/cpp/app_lifetime_helper.h"
10 #include "mojo/services/network/public/interfaces/web_socket_factory.mojom.h"
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
13 namespace mojo {
14 class NetworkContext;
16 class WebSocketFactoryImpl : public WebSocketFactory {
17 public:
18 WebSocketFactoryImpl(NetworkContext* context,
19 scoped_ptr<AppRefCount> app_refcount,
20 InterfaceRequest<WebSocketFactory> request);
21 ~WebSocketFactoryImpl() override;
23 // WebSocketFactory methods:
24 void CreateWebSocket(InterfaceRequest<WebSocket> socket) override;
26 private:
27 NetworkContext* context_;
28 scoped_ptr<AppRefCount> app_refcount_;
29 StrongBinding<WebSocketFactory> binding_;
31 DISALLOW_COPY_AND_ASSIGN(WebSocketFactoryImpl);
34 } // namespace mojo
36 #endif // MOJO_SERVICES_NETWORK_WEB_SOCKET_FACTORY_IMPL_H_