| 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 <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/message_loop_helpers.h" |
| 14 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 15 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
| 16 | 17 |
| 17 class PrintPreviewHandler; | 18 class PrintPreviewHandler; |
| 18 | 19 |
| 19 namespace base { | 20 namespace base { |
| 20 class DictionaryValue; | 21 class DictionaryValue; |
| 21 class StringValue; | 22 class StringValue; |
| 22 } | 23 } |
| 23 | 24 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 50 | 51 |
| 51 void GetDefaultPrinter(); | 52 void GetDefaultPrinter(); |
| 52 | 53 |
| 53 void EnumeratePrinters(); | 54 void EnumeratePrinters(); |
| 54 | 55 |
| 55 void GetPrinterCapabilities(const std::string& printer_name); | 56 void GetPrinterCapabilities(const std::string& printer_name); |
| 56 | 57 |
| 57 private: | 58 private: |
| 58 friend struct content::BrowserThread::DeleteOnThread< | 59 friend struct content::BrowserThread::DeleteOnThread< |
| 59 content::BrowserThread::UI>; | 60 content::BrowserThread::UI>; |
| 60 friend class DeleteTask<PrintSystemTaskProxy>; | 61 friend class base::DeleteHelper<PrintSystemTaskProxy>; |
| 61 | 62 |
| 62 #if defined(UNIT_TEST) && defined(USE_CUPS) | 63 #if defined(UNIT_TEST) && defined(USE_CUPS) |
| 63 FRIEND_TEST_ALL_PREFIXES(PrintSystemTaskProxyTest, DetectDuplexModeCUPS); | 64 FRIEND_TEST_ALL_PREFIXES(PrintSystemTaskProxyTest, DetectDuplexModeCUPS); |
| 64 FRIEND_TEST_ALL_PREFIXES(PrintSystemTaskProxyTest, DetectNoDuplexModeCUPS); | 65 FRIEND_TEST_ALL_PREFIXES(PrintSystemTaskProxyTest, DetectNoDuplexModeCUPS); |
| 65 | 66 |
| 66 // Only used for testing. | 67 // Only used for testing. |
| 67 PrintSystemTaskProxy(); | 68 PrintSystemTaskProxy(); |
| 68 #endif | 69 #endif |
| 69 | 70 |
| 70 #if defined(USE_CUPS) | 71 #if defined(USE_CUPS) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 96 base::WeakPtr<PrintPreviewHandler> handler_; | 97 base::WeakPtr<PrintPreviewHandler> handler_; |
| 97 | 98 |
| 98 scoped_refptr<printing::PrintBackend> print_backend_; | 99 scoped_refptr<printing::PrintBackend> print_backend_; |
| 99 | 100 |
| 100 bool has_logged_printers_count_; | 101 bool has_logged_printers_count_; |
| 101 | 102 |
| 102 DISALLOW_COPY_AND_ASSIGN(PrintSystemTaskProxy); | 103 DISALLOW_COPY_AND_ASSIGN(PrintSystemTaskProxy); |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 #endif // CHROME_BROWSER_PRINTING_PRINT_SYSTEM_TASK_PROXY_H_ | 106 #endif // CHROME_BROWSER_PRINTING_PRINT_SYSTEM_TASK_PROXY_H_ |
| OLD | NEW |