OLD | NEW |
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 REMOTING_TEST_REMOTE_HOST_INFO_FETCHER_H_ | 5 #ifndef REMOTING_TEST_REMOTE_HOST_INFO_FETCHER_H_ |
6 #define REMOTING_TEST_REMOTE_HOST_INFO_FETCHER_H_ | 6 #define REMOTING_TEST_REMOTE_HOST_INFO_FETCHER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "net/url_request/url_fetcher_delegate.h" | 14 #include "net/url_request/url_fetcher_delegate.h" |
15 #include "remoting/test/app_remoting_service_urls.h" | 15 #include "remoting/test/app_remoting_service_urls.h" |
16 #include "remoting/test/remote_host_info.h" | 16 #include "remoting/test/remote_host_info.h" |
17 | 17 |
18 namespace net { | |
19 class UrlFetcher; | |
20 } | |
21 namespace remoting { | 18 namespace remoting { |
22 class URLRequestContextGetter; | 19 class URLRequestContextGetter; |
23 } | 20 } |
24 | 21 |
25 namespace remoting { | 22 namespace remoting { |
26 namespace test { | 23 namespace test { |
27 | 24 |
28 // Supplied by the client for each remote host info request and returns a valid, | 25 // Supplied by the client for each remote host info request and returns a valid, |
29 // initialized RemoteHostInfo object on success. | 26 // initialized RemoteHostInfo object on success. |
30 typedef base::Callback<void(const RemoteHostInfo& remote_host_info)> | 27 typedef base::Callback<void(const RemoteHostInfo& remote_host_info)> |
(...skipping 29 matching lines...) Expand all Loading... |
60 // Caller-supplied callback used to return remote host info on success. | 57 // Caller-supplied callback used to return remote host info on success. |
61 RemoteHostInfoCallback remote_host_info_callback_; | 58 RemoteHostInfoCallback remote_host_info_callback_; |
62 | 59 |
63 DISALLOW_COPY_AND_ASSIGN(RemoteHostInfoFetcher); | 60 DISALLOW_COPY_AND_ASSIGN(RemoteHostInfoFetcher); |
64 }; | 61 }; |
65 | 62 |
66 } // namespace test | 63 } // namespace test |
67 } // namespace remoting | 64 } // namespace remoting |
68 | 65 |
69 #endif // REMOTING_TEST_REMOTE_HOST_INFO_FETCHER_H_ | 66 #endif // REMOTING_TEST_REMOTE_HOST_INFO_FETCHER_H_ |
OLD | NEW |