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_HOST_LIST_FETCHER_H_ | 5 #ifndef REMOTING_TEST_HOST_LIST_FETCHER_H_ |
6 #define REMOTING_TEST_HOST_LIST_FETCHER_H_ | 6 #define REMOTING_TEST_HOST_LIST_FETCHER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "net/url_request/url_fetcher_delegate.h" | 15 #include "net/url_request/url_fetcher_delegate.h" |
16 #include "remoting/test/host_info.h" | 16 #include "remoting/test/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 // Used by the HostlistFetcher to make HTTP requests and also by the | 25 // Used by the HostlistFetcher to make HTTP requests and also by the |
29 // unittests for this class to set fake response data for these URLs. | 26 // unittests for this class to set fake response data for these URLs. |
30 const char kHostListProdRequestUrl[] = "https://www.googleapis.com/" | 27 const char kHostListProdRequestUrl[] = "https://www.googleapis.com/" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Caller-supplied callback used to return hostlist on success. | 63 // Caller-supplied callback used to return hostlist on success. |
67 HostlistCallback hostlist_callback_; | 64 HostlistCallback hostlist_callback_; |
68 | 65 |
69 DISALLOW_COPY_AND_ASSIGN(HostListFetcher); | 66 DISALLOW_COPY_AND_ASSIGN(HostListFetcher); |
70 }; | 67 }; |
71 | 68 |
72 } // namespace test | 69 } // namespace test |
73 } // namespace remoting | 70 } // namespace remoting |
74 | 71 |
75 #endif // REMOTING_TEST_HOST_LIST_FETCHER_H_ | 72 #endif // REMOTING_TEST_HOST_LIST_FETCHER_H_ |
OLD | NEW |