| 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_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 5 #ifndef CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
| 6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 const gfx::Rect& render_area, | 70 const gfx::Rect& render_area, |
| 71 int render_dpi, | 71 int render_dpi, |
| 72 bool autorotate, | 72 bool autorotate, |
| 73 const std::vector<printing::PageRange>& page_ranges, | 73 const std::vector<printing::PageRange>& page_ranges, |
| 74 int* highest_rendered_page_number, | 74 int* highest_rendered_page_number, |
| 75 double* scale_factor); | 75 double* scale_factor); |
| 76 #endif // defined(OS_WIN) | 76 #endif // defined(OS_WIN) |
| 77 | 77 |
| 78 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); | 78 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); |
| 79 | 79 |
| 80 #if !defined(OS_ANDROID) |
| 80 void OnImportStart( | 81 void OnImportStart( |
| 81 const importer::SourceProfile& source_profile, | 82 const importer::SourceProfile& source_profile, |
| 82 uint16 items, | 83 uint16 items, |
| 83 const base::DictionaryValue& localized_strings); | 84 const base::DictionaryValue& localized_strings); |
| 84 void OnImportCancel(); | 85 void OnImportCancel(); |
| 85 void OnImportItemFinished(uint16 item); | 86 void OnImportItemFinished(uint16 item); |
| 86 | 87 |
| 87 // The following are used with out of process profile import: | 88 // The following are used with out of process profile import: |
| 88 void ImporterCleanup(); | 89 void ImporterCleanup(); |
| 90 #endif |
| 89 | 91 |
| 90 // Thread that importer runs on, while ProfileImportThread handles messages | 92 // Thread that importer runs on, while ProfileImportThread handles messages |
| 91 // from the browser process. | 93 // from the browser process. |
| 92 scoped_ptr<base::Thread> import_thread_; | 94 scoped_ptr<base::Thread> import_thread_; |
| 93 | 95 |
| 94 // Bridge object is passed to importer, so that it can send IPC calls | 96 // Bridge object is passed to importer, so that it can send IPC calls |
| 95 // directly back to the ProfileImportProcessHost. | 97 // directly back to the ProfileImportProcessHost. |
| 96 scoped_refptr<ExternalProcessImporterBridge> bridge_; | 98 scoped_refptr<ExternalProcessImporterBridge> bridge_; |
| 97 | 99 |
| 98 // A bitmask of importer::ImportItem. | 100 // A bitmask of importer::ImportItem. |
| 99 uint16 items_to_import_; | 101 uint16 items_to_import_; |
| 100 | 102 |
| 101 // Importer of the appropriate type (Firefox, Safari, IE, etc.) | 103 // Importer of the appropriate type (Firefox, Safari, IE, etc.) |
| 102 scoped_refptr<Importer> importer_; | 104 scoped_refptr<Importer> importer_; |
| 103 }; | 105 }; |
| 104 | 106 |
| 105 } // namespace chrome | 107 } // namespace chrome |
| 106 | 108 |
| 107 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 109 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
| OLD | NEW |