| Index: printing/print_settings_conversion.h
|
| diff --git a/printing/print_settings_initializer.h b/printing/print_settings_conversion.h
|
| similarity index 42%
|
| rename from printing/print_settings_initializer.h
|
| rename to printing/print_settings_conversion.h
|
| index a1093c5a3b8609a93a147329912a525e5f7194ba..e06854f7f28c09f137ce4f662241d1706434cc5b 100644
|
| --- a/printing/print_settings_initializer.h
|
| +++ b/printing/print_settings_conversion.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef PRINTING_PRINT_SETTINGS_INITIALIZER_H_
|
| -#define PRINTING_PRINT_SETTINGS_INITIALIZER_H_
|
| +#ifndef PRINTING_PRINT_SETTINGS_CONVERSION_H_
|
| +#define PRINTING_PRINT_SETTINGS_CONVERSION_H_
|
|
|
| #include "base/basictypes.h"
|
| #include "base/logging.h"
|
| @@ -18,20 +18,14 @@ namespace printing {
|
|
|
| class PrintSettings;
|
|
|
| -// Initializes the header footer strings in the PrintSettings object from the
|
| -// provided |job_settings|.
|
| -class PRINTING_EXPORT PrintSettingsInitializer {
|
| - public:
|
| - static bool InitSettings(
|
| - const base::DictionaryValue& job_settings,
|
| - const PageRanges& ranges,
|
| - PrintSettings* print_settings);
|
| +bool PrintSettingsFromJobSettings(const base::DictionaryValue& job_settings,
|
| + PrintSettings* print_settings);
|
|
|
| - private:
|
| - DISALLOW_IMPLICIT_CONSTRUCTORS(PrintSettingsInitializer);
|
| -};
|
| +// Use for debug only, because output is not completely consistent with format
|
| +// of |PrintSettingsFromJobSettings| input.
|
| +void PrintSettingsToJobSettingsDebug(const PrintSettings& settings,
|
| + base::DictionaryValue* job_settings);
|
|
|
| } // namespace printing
|
|
|
| -#endif // PRINTING_PRINT_SETTINGS_INITIALIZER_H_
|
| -
|
| +#endif // PRINTING_PRINT_SETTINGS_CONVERSION_H_
|
|
|