OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 HEADLESS_PUBLIC_UTIL_URL_FETCHER_H_ | 5 #ifndef HEADLESS_PUBLIC_UTIL_URL_FETCHER_H_ |
6 #define HEADLESS_PUBLIC_UTIL_URL_FETCHER_H_ | 6 #define HEADLESS_PUBLIC_UTIL_URL_FETCHER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 virtual ~ResultListener() {} | 56 virtual ~ResultListener() {} |
57 | 57 |
58 private: | 58 private: |
59 DISALLOW_COPY_AND_ASSIGN(ResultListener); | 59 DISALLOW_COPY_AND_ASSIGN(ResultListener); |
60 }; | 60 }; |
61 | 61 |
62 // Instructs the sub-class to fetch the resource. | 62 // Instructs the sub-class to fetch the resource. |
63 virtual void StartFetch(const GURL& rewritten_url, | 63 virtual void StartFetch(const GURL& rewritten_url, |
64 const std::string& method, | 64 const std::string& method, |
65 const net::HttpRequestHeaders& request_headers, | 65 const net::HttpRequestHeaders& request_headers, |
66 ResultListener* result_listener) = 0; | 66 const std::string& devtools_request_id, |
| 67 ResultListener* result_listener); |
| 68 // TODO(alexclarke): Make the above pure virtual and remove this. |
| 69 virtual void StartFetch(const GURL& rewritten_url, |
| 70 const std::string& method, |
| 71 const net::HttpRequestHeaders& request_headers, |
| 72 ResultListener* result_listener); |
67 | 73 |
68 private: | 74 private: |
69 DISALLOW_COPY_AND_ASSIGN(URLFetcher); | 75 DISALLOW_COPY_AND_ASSIGN(URLFetcher); |
70 }; | 76 }; |
71 | 77 |
72 } // namespace headless | 78 } // namespace headless |
73 | 79 |
74 #endif // HEADLESS_PUBLIC_UTIL_URL_FETCHER_H_ | 80 #endif // HEADLESS_PUBLIC_UTIL_URL_FETCHER_H_ |
OLD | NEW |