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

Side by Side Diff: headless/public/util/http_url_fetcher.h

Issue 2352663003: Adds a --deterministic-fetch flag to headless_shell (Closed)
Patch Set: Changed a few comments Created 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef HEADLESS_PUBLIC_UTIL_HTTP_URL_FETCHER_H_
6 #define HEADLESS_PUBLIC_UTIL_HTTP_URL_FETCHER_H_
7
8 #include "base/macros.h"
9 #include "headless/public/util/url_fetcher.h"
10
11 namespace net {
12 class URLRequestContext;
13 class URLRequestJobFactory;
14 } // namespace
15
16 namespace headless {
17
18 // A simple URLFetcher that wraps a net::URLRequest.
Sami 2016/09/23 14:27:29 net::URLRequestContext?
alex clarke (OOO till 29th) 2016/09/23 16:40:27 Done.
19 class HttpUrlFetcher : public URLFetcher {
Sami 2016/09/23 14:27:29 nit: "URL" to match the interface. Maybe we should
alex clarke (OOO till 29th) 2016/09/23 16:40:26 Done.
20 public:
21 explicit HttpUrlFetcher(const net::URLRequestContext* url_request_context);
22 ~HttpUrlFetcher() override;
23
24 // URLFetcher implementation:
25 void StartFetch(const GURL& rewritten_url,
26 const std::string& method,
27 const net::HttpRequestHeaders& request_headers,
28 ResultListener* result_listener) override;
29
30 private:
31 class Delegate;
32
33 const net::URLRequestContext* url_request_context_;
34 std::unique_ptr<Delegate> delagate_;
Sami 2016/09/23 14:27:29 typo: delegate_
alex clarke (OOO till 29th) 2016/09/23 16:40:26 Done.
35
36 DISALLOW_COPY_AND_ASSIGN(HttpUrlFetcher);
37 };
38
39 } // namespace headless
40
41 #endif // HEADLESS_PUBLIC_UTIL_HTTP_URL_FETCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698