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

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

Issue 2750513002: Headless: Pass devtools request id to the URLFetcher (Closed)
Patch Set: Remove underscores Created 3 years, 9 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 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
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_
OLDNEW
« no previous file with comments | « headless/public/util/protocol_handler_request_id_browsertest.cc ('k') | headless/public/util/url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698