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

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

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: convert everything over, remove ApplicationConnection::AddService Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_NETWORK_SERVICE_IMPL_H_ 5 #ifndef MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_
6 #define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ 6 #define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "mojo/public/cpp/bindings/interface_impl.h" 9 #include "mojo/public/cpp/bindings/interface_impl.h"
10 #include "mojo/services/public/interfaces/network/network_service.mojom.h" 10 #include "mojo/services/public/interfaces/network/network_service.mojom.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 class ApplicationConnection;
14 class NetworkContext; 13 class NetworkContext;
15 14
16 class NetworkServiceImpl : public InterfaceImpl<NetworkService> { 15 class NetworkServiceImpl : public InterfaceImpl<NetworkService> {
17 public: 16 public:
18 NetworkServiceImpl(ApplicationConnection* connection, 17 explicit NetworkServiceImpl(NetworkContext* context);
19 NetworkContext* context);
20 virtual ~NetworkServiceImpl(); 18 virtual ~NetworkServiceImpl();
21 19
22 // NetworkService methods: 20 // NetworkService methods:
23 virtual void CreateURLLoader(InterfaceRequest<URLLoader> loader) OVERRIDE; 21 virtual void CreateURLLoader(InterfaceRequest<URLLoader> loader) OVERRIDE;
24 22
25 private: 23 private:
26 NetworkContext* context_; 24 NetworkContext* context_;
27 }; 25 };
28 26
29 } // namespace mojo 27 } // namespace mojo
30 28
31 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ 29 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698