| 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_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ | 6 #define CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 uint16 items, | 51 uint16 items, |
| 52 InProcessImporterBridge* bridge); | 52 InProcessImporterBridge* bridge); |
| 53 | 53 |
| 54 // Launches the task to start the external process. | 54 // Launches the task to start the external process. |
| 55 void Start(); | 55 void Start(); |
| 56 | 56 |
| 57 // Called by the ExternalProcessImporterHost on import cancel. | 57 // Called by the ExternalProcessImporterHost on import cancel. |
| 58 void Cancel(); | 58 void Cancel(); |
| 59 | 59 |
| 60 // UtilityProcessHostClient implementation: | 60 // UtilityProcessHostClient implementation: |
| 61 virtual void OnProcessCrashed(int exit_code) OVERRIDE; | 61 virtual void OnProcessCrashed(int exit_code) override; |
| 62 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 62 virtual bool OnMessageReceived(const IPC::Message& message) override; |
| 63 | 63 |
| 64 // Message handlers | 64 // Message handlers |
| 65 void OnImportStart(); | 65 void OnImportStart(); |
| 66 void OnImportFinished(bool succeeded, const std::string& error_msg); | 66 void OnImportFinished(bool succeeded, const std::string& error_msg); |
| 67 void OnImportItemStart(int item); | 67 void OnImportItemStart(int item); |
| 68 void OnImportItemFinished(int item); | 68 void OnImportItemFinished(int item); |
| 69 void OnHistoryImportStart(size_t total_history_rows_count); | 69 void OnHistoryImportStart(size_t total_history_rows_count); |
| 70 void OnHistoryImportGroup( | 70 void OnHistoryImportGroup( |
| 71 const std::vector<ImporterURLRow>& history_rows_group, | 71 const std::vector<ImporterURLRow>& history_rows_group, |
| 72 int visit_source); | 72 int visit_source); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // ProfileWriter. | 153 // ProfileWriter. |
| 154 scoped_refptr<InProcessImporterBridge> bridge_; | 154 scoped_refptr<InProcessImporterBridge> bridge_; |
| 155 | 155 |
| 156 // True if import process has been cancelled. | 156 // True if import process has been cancelled. |
| 157 bool cancelled_; | 157 bool cancelled_; |
| 158 | 158 |
| 159 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterClient); | 159 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterClient); |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ | 162 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ |
| OLD | NEW |