| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PROFILE_IMPORT_PROFILE_IMPORT_THREAD_H_ | 5 #ifndef CHROME_PROFILE_IMPORT_PROFILE_IMPORT_THREAD_H_ |
| 6 #define CHROME_PROFILE_IMPORT_PROFILE_IMPORT_THREAD_H_ | 6 #define CHROME_PROFILE_IMPORT_PROFILE_IMPORT_THREAD_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 // Release the process and ourselves. | 78 // Release the process and ourselves. |
| 79 void Cleanup(); | 79 void Cleanup(); |
| 80 | 80 |
| 81 // Thread that importer runs on, while ProfileImportThread handles messages | 81 // Thread that importer runs on, while ProfileImportThread handles messages |
| 82 // from the browser process. | 82 // from the browser process. |
| 83 scoped_ptr<base::Thread> import_thread_; | 83 scoped_ptr<base::Thread> import_thread_; |
| 84 | 84 |
| 85 // Bridge object is passed to importer, so that it can send IPC calls | 85 // Bridge object is passed to importer, so that it can send IPC calls |
| 86 // directly back to the ProfileImportProcessHost. | 86 // directly back to the ProfileImportProcessHost. |
| 87 ExternalProcessImporterBridge* bridge_; | 87 scoped_refptr<ExternalProcessImporterBridge> bridge_; |
| 88 | 88 |
| 89 // importer::ProfileType enum from importer_list, stored in ProfileInfo | 89 // importer::ProfileType enum from importer_list, stored in ProfileInfo |
| 90 // struct in importer. | 90 // struct in importer. |
| 91 int browser_type_; | 91 int browser_type_; |
| 92 | 92 |
| 93 // A mask of importer::ImportItems. | 93 // A mask of importer::ImportItems. |
| 94 uint16 items_to_import_; | 94 uint16 items_to_import_; |
| 95 | 95 |
| 96 // Importer of the appropriate type (Firefox, Safari, IE, etc.) | 96 // Importer of the appropriate type (Firefox, Safari, IE, etc.) |
| 97 Importer* importer_; | 97 scoped_refptr<Importer> importer_; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(ProfileImportThread); | 99 DISALLOW_COPY_AND_ASSIGN(ProfileImportThread); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 #endif // CHROME_PROFILE_IMPORT_PROFILE_IMPORT_THREAD_H_ | 102 #endif // CHROME_PROFILE_IMPORT_PROFILE_IMPORT_THREAD_H_ |
| OLD | NEW |