Index: printing/metafile.h |
diff --git a/printing/metafile.h b/printing/metafile.h |
index e93ffd10f60fd7b1e2435903448484f49e09edf5..766e69360019cb051132cd630cf4bb81ca5ed0df 100644 |
--- a/printing/metafile.h |
+++ b/printing/metafile.h |
@@ -90,6 +90,10 @@ class PRINTING_EXPORT MetafilePlayer { |
// called after the metafile is closed. Returns true if writing succeeded. |
virtual bool SaveTo(base::File* file) const = 0; |
+ // Populates the buffer with the underlying data. This function should ONLY be |
+ // called after the metafile is closed. Returns true if writing succeeded. |
+ virtual bool GetDataAsVector(std::vector<char>* buffer) const = 0; |
Lei Zhang
2016/07/08 01:35:26
Put this above SaveTo() since the impl below is al
skau
2016/07/09 00:28:33
Done.
|
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(MetafilePlayer); |
}; |
@@ -155,7 +159,7 @@ class PRINTING_EXPORT Metafile : public MetafilePlayer { |
const RECT* rect) const = 0; |
#endif // OS_WIN |
- bool GetDataAsVector(std::vector<char>* buffer) const; |
+ bool GetDataAsVector(std::vector<char>* buffer) const override; |
bool SaveTo(base::File* file) const override; |