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

Unified Diff: printing/metafile.h

Issue 2117713002: Print directly to CUPS using the IPP APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ippRead
Patch Set: format and merge Created 4 years, 5 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
« no previous file with comments | « printing/backend/cups_ipp_util.cc ('k') | printing/printed_document.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/metafile.h
diff --git a/printing/metafile.h b/printing/metafile.h
index e93ffd10f60fd7b1e2435903448484f49e09edf5..4621fbfa47727c1b6aa314ecf8cc7c9d27954280 100644
--- a/printing/metafile.h
+++ b/printing/metafile.h
@@ -86,6 +86,10 @@ class PRINTING_EXPORT MetafilePlayer {
const MacRenderPageParams& params) const = 0;
#endif // if defined(OS_WIN)
+ // 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;
+
// Saves the underlying data to the given file. This function should ONLY be
// called after the metafile is closed. Returns true if writing succeeded.
virtual bool SaveTo(base::File* file) const = 0;
@@ -155,8 +159,8 @@ class PRINTING_EXPORT Metafile : public MetafilePlayer {
const RECT* rect) const = 0;
#endif // OS_WIN
- bool GetDataAsVector(std::vector<char>* buffer) const;
-
+ // MetfilePlayer
+ bool GetDataAsVector(std::vector<char>* buffer) const override;
bool SaveTo(base::File* file) const override;
private:
« no previous file with comments | « printing/backend/cups_ipp_util.cc ('k') | printing/printed_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698