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

Unified Diff: components/offline_pages/core/prefetch/prefetch_request_fetcher.h

Issue 2921783002: [Offline Prefetch] Pass api key to offline prefetch requests (Closed)
Patch Set: Rebase Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/core/prefetch/prefetch_request_fetcher.h
diff --git a/components/offline_pages/core/prefetch/prefetch_request_fetcher.h b/components/offline_pages/core/prefetch/prefetch_request_fetcher.h
index c24515ecf9487da4e9dbadcc48a0cc20a9cdb085..ea3d7c1069ebb47106c520c3f1c22a5a7a08a216 100644
--- a/components/offline_pages/core/prefetch/prefetch_request_fetcher.h
+++ b/components/offline_pages/core/prefetch/prefetch_request_fetcher.h
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "components/offline_pages/core/prefetch/prefetch_types.h"
+#include "components/version_info/channel.h"
#include "net/url_request/url_fetcher_delegate.h"
namespace net {
@@ -26,6 +27,7 @@ class PrefetchRequestFetcher : public net::URLFetcherDelegate {
// Creates a fetcher that will sends a GET request to the server.
static std::unique_ptr<PrefetchRequestFetcher> CreateForGet(
const std::string& url_path,
+ version_info::Channel channel,
net::URLRequestContextGetter* request_context_getter,
const FinishedCallback& callback);
@@ -33,6 +35,7 @@ class PrefetchRequestFetcher : public net::URLFetcherDelegate {
static std::unique_ptr<PrefetchRequestFetcher> CreateForPost(
const std::string& url_path,
const std::string& message,
+ version_info::Channel channel,
net::URLRequestContextGetter* request_context_getter,
const FinishedCallback& callback);
@@ -46,6 +49,7 @@ class PrefetchRequestFetcher : public net::URLFetcherDelegate {
// is sent with |message| as post data.
PrefetchRequestFetcher(const std::string& url_path,
const std::string& message,
+ version_info::Channel channel,
net::URLRequestContextGetter* request_context_getter,
const FinishedCallback& callback);

Powered by Google App Engine
This is Rietveld 408576698