| 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 "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "chrome/browser/printing/print_job_worker_owner.h" | 11 #include "chrome/browser/printing/print_job_worker_owner.h" |
| 12 #include "printing/print_job_constants.h" | 12 #include "printing/print_job_constants.h" |
| 13 | 13 |
| 14 class PrintingUIWebContentsObserver; | |
| 15 | |
| 16 namespace base { | 14 namespace base { |
| 17 class DictionaryValue; | 15 class DictionaryValue; |
| 18 } | 16 } |
| 19 | 17 |
| 20 namespace printing { | 18 namespace printing { |
| 21 | 19 |
| 22 class PrintDestinationInterface; | 20 class PrintDestinationInterface; |
| 23 class PrintJobWorker; | 21 class PrintJobWorker; |
| 22 class PrintingUIWebContentsObserver; |
| 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 GetSettingsAskParam { | 28 enum GetSettingsAskParam { |
| 30 DEFAULTS, | 29 DEFAULTS, |
| 31 ASK_USER, | 30 ASK_USER, |
| 32 }; | 31 }; |
| 33 | 32 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 94 |
| 96 // Callback waiting to be run. | 95 // Callback waiting to be run. |
| 97 base::Closure callback_; | 96 base::Closure callback_; |
| 98 | 97 |
| 99 DISALLOW_COPY_AND_ASSIGN(PrinterQuery); | 98 DISALLOW_COPY_AND_ASSIGN(PrinterQuery); |
| 100 }; | 99 }; |
| 101 | 100 |
| 102 } // namespace printing | 101 } // namespace printing |
| 103 | 102 |
| 104 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ | 103 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ |
| OLD | NEW |