| 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 "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 virtual ~ExternalProcessImporterHost(); | 74 virtual ~ExternalProcessImporterHost(); |
| 75 | 75 |
| 76 // Launches the utility process that starts the import task, unless bookmark | 76 // Launches the utility process that starts the import task, unless bookmark |
| 77 // or template model are not yet loaded. If load is not detected, this method | 77 // or template model are not yet loaded. If load is not detected, this method |
| 78 // will be called when the loading observer sees that model loading is | 78 // will be called when the loading observer sees that model loading is |
| 79 // complete. | 79 // complete. |
| 80 virtual void LaunchImportIfReady(); | 80 virtual void LaunchImportIfReady(); |
| 81 | 81 |
| 82 // BaseBookmarkModelObserver: | 82 // BaseBookmarkModelObserver: |
| 83 virtual void BookmarkModelLoaded(BookmarkModel* model, | 83 virtual void BookmarkModelLoaded(BookmarkModel* model, |
| 84 bool ids_reassigned) OVERRIDE; | 84 bool ids_reassigned) override; |
| 85 virtual void BookmarkModelBeingDeleted(BookmarkModel* model) OVERRIDE; | 85 virtual void BookmarkModelBeingDeleted(BookmarkModel* model) override; |
| 86 virtual void BookmarkModelChanged() OVERRIDE; | 86 virtual void BookmarkModelChanged() override; |
| 87 | 87 |
| 88 // Called when TemplateURLService has been loaded. | 88 // Called when TemplateURLService has been loaded. |
| 89 void OnTemplateURLServiceLoaded(); | 89 void OnTemplateURLServiceLoaded(); |
| 90 | 90 |
| 91 // ShowWarningDialog() asks user to close the application that is owning the | 91 // ShowWarningDialog() asks user to close the application that is owning the |
| 92 // lock. They can retry or skip the importing process. | 92 // lock. They can retry or skip the importing process. |
| 93 // This method should not be called if the importer is in headless mode. | 93 // This method should not be called if the importer is in headless mode. |
| 94 void ShowWarningDialog(); | 94 void ShowWarningDialog(); |
| 95 | 95 |
| 96 // This is called when when user ends the lock dialog by clicking on either | 96 // This is called when when user ends the lock dialog by clicking on either |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 // True if the import process has been cancelled. | 154 // True if the import process has been cancelled. |
| 155 bool cancelled_; | 155 bool cancelled_; |
| 156 | 156 |
| 157 // Vends weak pointers for the importer to call us back. | 157 // Vends weak pointers for the importer to call us back. |
| 158 base::WeakPtrFactory<ExternalProcessImporterHost> weak_ptr_factory_; | 158 base::WeakPtrFactory<ExternalProcessImporterHost> weak_ptr_factory_; |
| 159 | 159 |
| 160 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterHost); | 160 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterHost); |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_HOST_H_ | 163 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_HOST_H_ |
| OLD | NEW |