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

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

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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
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_WEB_SOCKET_FACTORY_IMPL_H_ 5 #ifndef MOJO_SERVICES_NETWORK_WEB_SOCKET_FACTORY_IMPL_H_
6 #define MOJO_SERVICES_NETWORK_WEB_SOCKET_FACTORY_IMPL_H_ 6 #define MOJO_SERVICES_NETWORK_WEB_SOCKET_FACTORY_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "mojo/application/public/cpp/app_lifetime_helper.h" 9 #include "mojo/application/public/cpp/app_lifetime_helper.h"
10 #include "mojo/public/cpp/bindings/strong_binding.h"
10 #include "mojo/services/network/public/interfaces/web_socket_factory.mojom.h" 11 #include "mojo/services/network/public/interfaces/web_socket_factory.mojom.h"
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 class NetworkContext; 14 class NetworkContext;
15 15
16 class WebSocketFactoryImpl : public WebSocketFactory { 16 class WebSocketFactoryImpl : public WebSocketFactory {
17 public: 17 public:
18 WebSocketFactoryImpl(NetworkContext* context, 18 WebSocketFactoryImpl(NetworkContext* context,
19 scoped_ptr<AppRefCount> app_refcount, 19 scoped_ptr<AppRefCount> app_refcount,
20 InterfaceRequest<WebSocketFactory> request); 20 InterfaceRequest<WebSocketFactory> request);
21 ~WebSocketFactoryImpl() override; 21 ~WebSocketFactoryImpl() override;
22 22
23 // WebSocketFactory methods: 23 // WebSocketFactory methods:
24 void CreateWebSocket(InterfaceRequest<WebSocket> socket) override; 24 void CreateWebSocket(InterfaceRequest<WebSocket> socket) override;
25 25
26 private: 26 private:
27 NetworkContext* context_; 27 NetworkContext* context_;
28 scoped_ptr<AppRefCount> app_refcount_; 28 scoped_ptr<AppRefCount> app_refcount_;
29 StrongBinding<WebSocketFactory> binding_; 29 StrongBinding<WebSocketFactory> binding_;
30 30
31 DISALLOW_COPY_AND_ASSIGN(WebSocketFactoryImpl); 31 DISALLOW_COPY_AND_ASSIGN(WebSocketFactoryImpl);
32 }; 32 };
33 33
34 } // namespace mojo 34 } // namespace mojo
35 35
36 #endif // MOJO_SERVICES_NETWORK_WEB_SOCKET_FACTORY_IMPL_H_ 36 #endif // MOJO_SERVICES_NETWORK_WEB_SOCKET_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/network/url_loader_impl_apptest.cc ('k') | mojo/services/network/web_socket_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698