| 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_BROWSER_PROFILE_IMPORT_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_PROFILE_IMPORT_PROCESS_HOST_H_ |
| 6 #define CHROME_BROWSER_PROFILE_IMPORT_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_PROFILE_IMPORT_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
| 13 #include "base/task.h" | 13 #include "base/task.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/child_process_host.h" | 15 #include "chrome/browser/child_process_host.h" |
| 16 #include "chrome/browser/chrome_thread.h" | 16 #include "chrome/browser/chrome_thread.h" |
| 17 #include "chrome/browser/history/history_types.h" | 17 #include "chrome/browser/history/history_types.h" |
| 18 #include "chrome/browser/importer/importer_data_types.h" | 18 #include "chrome/browser/importer/importer_data_types.h" |
| 19 #include "chrome/browser/importer/profile_writer.h" | 19 #include "chrome/browser/importer/profile_writer.h" |
| 20 #include "ipc/ipc_channel.h" | 20 #include "ipc/ipc_channel.h" |
| 21 #include "webkit/glue/password_form.h" | 21 |
| 22 namespace webkit_glue { |
| 23 struct PasswordForm; |
| 24 } |
| 22 | 25 |
| 23 // Browser-side host to a profile import process. This class lives only on | 26 // Browser-side host to a profile import process. This class lives only on |
| 24 // the IO thread. It passes messages back to the |thread_id_| thread through | 27 // the IO thread. It passes messages back to the |thread_id_| thread through |
| 25 // a client object. | 28 // a client object. |
| 26 class ProfileImportProcessHost : public ChildProcessHost { | 29 class ProfileImportProcessHost : public ChildProcessHost { |
| 27 public: | 30 public: |
| 28 | 31 |
| 29 // An interface that must be implemented by consumers of the profile import | 32 // An interface that must be implemented by consumers of the profile import |
| 30 // process in order to get results back from the process host. The | 33 // process in order to get results back from the process host. The |
| 31 // ProfileImportProcessHost calls the client's functions on the thread passed | 34 // ProfileImportProcessHost calls the client's functions on the thread passed |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // Receives messages to be passed back to the importer host. | 136 // Receives messages to be passed back to the importer host. |
| 134 scoped_refptr<ImportProcessClient> import_process_client_; | 137 scoped_refptr<ImportProcessClient> import_process_client_; |
| 135 | 138 |
| 136 // The thread where the import_process_client_ lives. | 139 // The thread where the import_process_client_ lives. |
| 137 ChromeThread::ID thread_id_; | 140 ChromeThread::ID thread_id_; |
| 138 | 141 |
| 139 DISALLOW_COPY_AND_ASSIGN(ProfileImportProcessHost); | 142 DISALLOW_COPY_AND_ASSIGN(ProfileImportProcessHost); |
| 140 }; | 143 }; |
| 141 | 144 |
| 142 #endif // CHROME_BROWSER_PROFILE_IMPORT_PROCESS_HOST_H_ | 145 #endif // CHROME_BROWSER_PROFILE_IMPORT_PROCESS_HOST_H_ |
| OLD | NEW |