| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PRINT_SYSTEM_TASK_PROXY_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_SYSTEM_TASK_PROXY_H_ |
| 6 #define CHROME_BROWSER_PRINTING_PRINT_SYSTEM_TASK_PROXY_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_SYSTEM_TASK_PROXY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 void EnumeratePrinters(); | 49 void EnumeratePrinters(); |
| 50 | 50 |
| 51 void GetPrinterCapabilities(const std::string& printer_name); | 51 void GetPrinterCapabilities(const std::string& printer_name); |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 friend struct content::BrowserThread::DeleteOnThread< | 54 friend struct content::BrowserThread::DeleteOnThread< |
| 55 content::BrowserThread::UI>; | 55 content::BrowserThread::UI>; |
| 56 friend class DeleteTask<PrintSystemTaskProxy>; | 56 friend class DeleteTask<PrintSystemTaskProxy>; |
| 57 | 57 |
| 58 void SendDefaultPrinter(const base::StringValue* default_printer, | 58 void SendDefaultPrinter(const std::string* default_printer, |
| 59 const base::StringValue* cloud_print_data); | 59 const std::string* cloud_print_data); |
| 60 void SetupPrinterList(base::ListValue* printers); | 60 void SetupPrinterList(base::ListValue* printers); |
| 61 void SendPrinterCapabilities(base::DictionaryValue* settings_info); | 61 void SendPrinterCapabilities(base::DictionaryValue* settings_info); |
| 62 | 62 |
| 63 ~PrintSystemTaskProxy(); | 63 ~PrintSystemTaskProxy(); |
| 64 | 64 |
| 65 base::WeakPtr<PrintPreviewHandler> handler_; | 65 base::WeakPtr<PrintPreviewHandler> handler_; |
| 66 | 66 |
| 67 scoped_refptr<printing::PrintBackend> print_backend_; | 67 scoped_refptr<printing::PrintBackend> print_backend_; |
| 68 | 68 |
| 69 bool has_logged_printers_count_; | 69 bool has_logged_printers_count_; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(PrintSystemTaskProxy); | 71 DISALLOW_COPY_AND_ASSIGN(PrintSystemTaskProxy); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 #endif // CHROME_BROWSER_PRINTING_PRINT_SYSTEM_TASK_PROXY_H_ | 74 #endif // CHROME_BROWSER_PRINTING_PRINT_SYSTEM_TASK_PROXY_H_ |
| OLD | NEW |