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

Unified Diff: printing/print_settings.h

Issue 1397333003: PDF Printing: embed browser user agent string in PDF metadata. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2015-11-05 (Thursday) 17:13:38 EST Created 5 years, 1 month 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: printing/print_settings.h
diff --git a/printing/print_settings.h b/printing/print_settings.h
index 1f35e90b9ae0b29bf7c6eedb2fbede9170f7562a..08c7d562c8d69b12e2f394b48df7f73a88a33b2f 100644
--- a/printing/print_settings.h
+++ b/printing/print_settings.h
@@ -26,6 +26,11 @@ PRINTING_EXPORT void GetColorModelForMode(int color_mode,
std::string* color_value);
#endif
+// Inform the printing system that it may embed this user-agent string
+// in its output's metadata.
+PRINTING_EXPORT void SetAgent(const std::string& user_agent);
+PRINTING_EXPORT const std::string& GetAgent();
+
// OS-independent print settings.
class PRINTING_EXPORT PrintSettings {
public:

Powered by Google App Engine
This is Rietveld 408576698