| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "chrome/browser/importer/importer_progress_observer.h" | 16 #include "chrome/browser/importer/importer_progress_observer.h" |
| 17 #include "chrome/browser/importer/profile_writer.h" | 17 #include "chrome/browser/importer/profile_writer.h" |
| 18 #include "chrome/common/importer/importer_data_types.h" | 18 #include "chrome/common/importer/importer_data_types.h" |
| 19 #include "components/bookmarks/browser/base_bookmark_model_observer.h" | 19 #include "components/bookmarks/browser/base_bookmark_model_observer.h" |
| 20 #include "components/search_engines/template_url_service.h" | 20 #include "components/search_engines/template_url_service.h" |
| 21 #include "ui/gfx/native_widget_types.h" | 21 #include "ui/gfx/native_widget_types.h" |
| 22 | 22 |
| 23 class ExternalProcessImporterClient; | 23 class ExternalProcessImporterClient; |
| 24 class FirefoxProfileLock; | 24 class FirefoxProfileLock; |
| 25 class Importer; | |
| 26 class Profile; | 25 class Profile; |
| 27 | 26 |
| 28 namespace importer { | 27 namespace importer { |
| 29 struct SourceProfile; | 28 struct SourceProfile; |
| 30 } | 29 } |
| 31 | 30 |
| 32 // This class manages the import process. It creates the in-process half of the | 31 // This class manages the import process. It creates the in-process half of the |
| 33 // importer bridge and the external process importer client. | 32 // importer bridge and the external process importer client. |
| 34 class ExternalProcessImporterHost | 33 class ExternalProcessImporterHost |
| 35 : public bookmarks::BaseBookmarkModelObserver { | 34 : public bookmarks::BaseBookmarkModelObserver { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // True if the import process has been cancelled. | 158 // True if the import process has been cancelled. |
| 160 bool cancelled_; | 159 bool cancelled_; |
| 161 | 160 |
| 162 // Vends weak pointers for the importer to call us back. | 161 // Vends weak pointers for the importer to call us back. |
| 163 base::WeakPtrFactory<ExternalProcessImporterHost> weak_ptr_factory_; | 162 base::WeakPtrFactory<ExternalProcessImporterHost> weak_ptr_factory_; |
| 164 | 163 |
| 165 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterHost); | 164 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterHost); |
| 166 }; | 165 }; |
| 167 | 166 |
| 168 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_HOST_H_ | 167 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_HOST_H_ |
| OLD | NEW |