Switch ResourceBundle LoadDataResourceBytes to return RefCountedMemory.
This change allows LoadDataResourceBytes and LoadDataResourceBytesForScale to
return memory that isn't in the bundle's memory map, to allow operations to be
performed on the resources.
TBR=dtrainor
BUG=609219
Review-Url: https://codereview.chromium.org/1996723002
Cr-Commit-Position: refs/heads/master@{#395976}
diff --git a/headless/lib/headless_content_client.h b/headless/lib/headless_content_client.h
index be6ddba..56775bd0 100644
--- a/headless/lib/headless_content_client.h
+++ b/headless/lib/headless_content_client.h
@@ -21,7 +21,7 @@
base::StringPiece GetDataResource(
int resource_id,
ui::ScaleFactor scale_factor) const override;
- base::RefCountedStaticMemory* GetDataResourceBytes(
+ base::RefCountedMemory* GetDataResourceBytes(
int resource_id) const override;
gfx::Image& GetNativeImageNamed(int resource_id) const override;