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

Unified Diff: components/image_fetcher/image_data_fetcher.h

Issue 2687873002: Use mime type for image extension (Closed)
Patch Set: Rebase Created 3 years, 10 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/image_fetcher/image_data_fetcher.h
diff --git a/components/image_fetcher/image_data_fetcher.h b/components/image_fetcher/image_data_fetcher.h
index 5383086a519b2aa37324ab4335a5df99ef229d1e..79f874be12cb18dd5c068cc2bd3d92a70a61585e 100644
--- a/components/image_fetcher/image_data_fetcher.h
+++ b/components/image_fetcher/image_data_fetcher.h
@@ -13,6 +13,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "components/data_use_measurement/core/data_use_user_data.h"
+#include "components/image_fetcher/request_metadata.h"
#include "net/url_request/url_fetcher_delegate.h"
#include "net/url_request/url_request.h"
#include "url/gurl.h"
@@ -27,7 +28,8 @@ namespace image_fetcher {
class ImageDataFetcher : public net::URLFetcherDelegate {
public:
using ImageDataFetcherCallback =
- base::Callback<void(const std::string& image_data)>;
+ base::Callback<void(const std::string& image_data,
+ const RequestMetadata& request_metadata)>;
using DataUseServiceName = data_use_measurement::DataUseUserData::ServiceName;

Powered by Google App Engine
This is Rietveld 408576698