| 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_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_HOST_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_HOST_H_ |
| 6 #define CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_HOST_H_ | 6 #define CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_HOST_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/importer/importer_host.h" | 10 #include "chrome/browser/importer/importer_host.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 protected: | 29 protected: |
| 30 virtual ~ExternalProcessImporterHost(); | 30 virtual ~ExternalProcessImporterHost(); |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 // ImporterHost: | 33 // ImporterHost: |
| 34 virtual void StartImportSettings( | 34 virtual void StartImportSettings( |
| 35 const importer::SourceProfile& source_profile, | 35 const importer::SourceProfile& source_profile, |
| 36 Profile* target_profile, | 36 Profile* target_profile, |
| 37 uint16 items, | 37 uint16 items, |
| 38 ProfileWriter* writer, | 38 ProfileWriter* writer) OVERRIDE; |
| 39 bool first_run) OVERRIDE; | |
| 40 virtual void InvokeTaskIfDone() OVERRIDE; | 39 virtual void InvokeTaskIfDone() OVERRIDE; |
| 41 virtual void Loaded(BookmarkModel* model, bool ids_reassigned) OVERRIDE; | 40 virtual void Loaded(BookmarkModel* model, bool ids_reassigned) OVERRIDE; |
| 42 | 41 |
| 43 // Used to pass notifications from the browser side to the external process. | 42 // Used to pass notifications from the browser side to the external process. |
| 44 ExternalProcessImporterClient* client_; | 43 ExternalProcessImporterClient* client_; |
| 45 | 44 |
| 46 // Information about a profile needed for importing. | 45 // Information about a profile needed for importing. |
| 47 const importer::SourceProfile* source_profile_; | 46 const importer::SourceProfile* source_profile_; |
| 48 | 47 |
| 49 // Bitmask of items to be imported (see importer::ImportItem enum). | 48 // Bitmask of items to be imported (see importer::ImportItem enum). |
| 50 uint16 items_; | 49 uint16 items_; |
| 51 | 50 |
| 52 // True if the import process has been cancelled. | 51 // True if the import process has been cancelled. |
| 53 bool cancelled_; | 52 bool cancelled_; |
| 54 | 53 |
| 55 // True if the import process has been launched. This prevents race | 54 // True if the import process has been launched. This prevents race |
| 56 // conditions on import cancel. | 55 // conditions on import cancel. |
| 57 bool import_process_launched_; | 56 bool import_process_launched_; |
| 58 | 57 |
| 59 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterHost); | 58 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterHost); |
| 60 }; | 59 }; |
| 61 | 60 |
| 62 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_HOST_H_ | 61 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_HOST_H_ |
| OLD | NEW |