| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ |
| 6 #define CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "chrome/browser/printing/print_job_worker_owner.h" | 13 #include "chrome/browser/printing/print_job_worker_owner.h" |
| 14 #include "printing/print_job_constants.h" | 14 #include "printing/print_job_constants.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class DictionaryValue; | 17 class DictionaryValue; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace printing { | 20 namespace printing { |
| 21 | 21 |
| 22 class PrintDestinationInterface; | |
| 23 class PrintJobWorker; | 22 class PrintJobWorker; |
| 24 | 23 |
| 25 // Query the printer for settings. | 24 // Query the printer for settings. |
| 26 class PrinterQuery : public PrintJobWorkerOwner { | 25 class PrinterQuery : public PrintJobWorkerOwner { |
| 27 public: | 26 public: |
| 28 // GetSettings() UI parameter. | 27 // GetSettings() UI parameter. |
| 29 enum class GetSettingsAskParam { | 28 enum class GetSettingsAskParam { |
| 30 DEFAULTS, | 29 DEFAULTS, |
| 31 ASK_USER, | 30 ASK_USER, |
| 32 }; | 31 }; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 92 |
| 94 // Callback waiting to be run. | 93 // Callback waiting to be run. |
| 95 base::Closure callback_; | 94 base::Closure callback_; |
| 96 | 95 |
| 97 DISALLOW_COPY_AND_ASSIGN(PrinterQuery); | 96 DISALLOW_COPY_AND_ASSIGN(PrinterQuery); |
| 98 }; | 97 }; |
| 99 | 98 |
| 100 } // namespace printing | 99 } // namespace printing |
| 101 | 100 |
| 102 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ | 101 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ |
| OLD | NEW |