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

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) 15:50:39 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..0ebbf1b36b7b5b3789cae6b689f5ed75faf49ea2 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&);
Lei Zhang 2015/11/05 21:37:23 include the parameter name
hal.canary 2015/11/05 22:16:48 done
+PRINTING_EXPORT const std::string& GetAgent();
+
// OS-independent print settings.
class PRINTING_EXPORT PrintSettings {
public:

Powered by Google App Engine
This is Rietveld 408576698