metafile_agent.h 628 B

12345678910111213141516171819202122
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef PRINTING_METAFILE_AGENT_H_
  5. #define PRINTING_METAFILE_AGENT_H_
  6. #include <string>
  7. #include "base/component_export.h"
  8. namespace printing {
  9. // Inform the printing system that it may embed this user-agent string
  10. // in its output's metadata.
  11. COMPONENT_EXPORT(PRINTING_METAFILE)
  12. void SetAgent(const std::string& user_agent);
  13. COMPONENT_EXPORT(PRINTING_METAFILE) const std::string& GetAgent();
  14. } // namespace printing
  15. #endif // PRINTING_METAFILE_AGENT_H_