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

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

Issue 1396423002: Move //mojo/services/network/public/interfaces to //mojo/services/network/interfaces. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 5 years, 2 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
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_HOST_RESOLVER_IMPL_H_ 5 #ifndef MOJO_SERVICES_NETWORK_HOST_RESOLVER_IMPL_H_
6 #define MOJO_SERVICES_NETWORK_HOST_RESOLVER_IMPL_H_ 6 #define MOJO_SERVICES_NETWORK_HOST_RESOLVER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "mojo/services/network/public/interfaces/host_resolver.mojom.h" 10 #include "mojo/services/network/interfaces/host_resolver.mojom.h"
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" 11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
12 12
13 namespace net { 13 namespace net {
14 class HostResolver; 14 class HostResolver;
15 } 15 }
16 16
17 namespace mojo { 17 namespace mojo {
18 18
19 // This is an implementation of the HostResolver Mojo interface. 19 // This is an implementation of the HostResolver Mojo interface.
20 class HostResolverImpl : public HostResolver { 20 class HostResolverImpl : public HostResolver {
21 public: 21 public:
22 explicit HostResolverImpl(InterfaceRequest<HostResolver> request); 22 explicit HostResolverImpl(InterfaceRequest<HostResolver> request);
23 ~HostResolverImpl() override; 23 ~HostResolverImpl() override;
24 24
25 void GetHostAddresses(const mojo::String& host, 25 void GetHostAddresses(const mojo::String& host,
26 NetAddressFamily family, 26 NetAddressFamily family,
27 const GetHostAddressesCallback& callback) override; 27 const GetHostAddressesCallback& callback) override;
28 28
29 private: 29 private:
30 StrongBinding<HostResolver> binding_; 30 StrongBinding<HostResolver> binding_;
31 scoped_ptr<net::HostResolver> resolver_; 31 scoped_ptr<net::HostResolver> resolver_;
32 base::ThreadChecker thread_checker_; 32 base::ThreadChecker thread_checker_;
33 33
34 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); 34 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl);
35 }; 35 };
36 36
37 } // namespace mojo 37 } // namespace mojo
38 38
39 #endif // MOJO_SERVICES_NETWORK_HOST_RESOLVER_IMPL_H_ 39 #endif // MOJO_SERVICES_NETWORK_HOST_RESOLVER_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/network/host_resolver_apptest.cc ('k') | mojo/services/network/http_connection_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698