| 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 10 matching lines...) Expand all Loading... |
| 21 class DictionaryValue; | 21 class DictionaryValue; |
| 22 class ExternalProcessImporterBridge; | 22 class ExternalProcessImporterBridge; |
| 23 class Importer; | 23 class Importer; |
| 24 class InProcessImporterBridge; | 24 class InProcessImporterBridge; |
| 25 | 25 |
| 26 // This class represents the background thread which communicates with the | 26 // This class represents the background thread which communicates with the |
| 27 // importer work thread in the importer process. | 27 // importer work thread in the importer process. |
| 28 class ProfileImportThread : public ChildThread { | 28 class ProfileImportThread : public ChildThread { |
| 29 public: | 29 public: |
| 30 ProfileImportThread(); | 30 ProfileImportThread(); |
| 31 virtual ~ProfileImportThread() {} | 31 virtual ~ProfileImportThread(); |
| 32 | 32 |
| 33 // Returns the one profile import thread. | 33 // Returns the one profile import thread. |
| 34 static ProfileImportThread* current() { | 34 static ProfileImportThread* current() { |
| 35 return static_cast<ProfileImportThread*>(ChildThread::current()); | 35 return static_cast<ProfileImportThread*>(ChildThread::current()); |
| 36 } | 36 } |
| 37 | 37 |
| 38 // Bridging methods, called from importer_bridge tasks posted here. | 38 // Bridging methods, called from importer_bridge tasks posted here. |
| 39 void NotifyItemStarted(importer::ImportItem item); | 39 void NotifyItemStarted(importer::ImportItem item); |
| 40 void NotifyItemEnded(importer::ImportItem item); | 40 void NotifyItemEnded(importer::ImportItem item); |
| 41 void NotifyStarted(); | 41 void NotifyStarted(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 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 |