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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // import data. When the import process is done, process_importer_host_ | 110 // import data. When the import process is done, process_importer_host_ |
111 // deletes itself. | 111 // deletes itself. |
112 ExternalProcessImporterHost* process_importer_host_; | 112 ExternalProcessImporterHost* process_importer_host_; |
113 | 113 |
114 // Handles sending messages to the external process. Deletes itself when | 114 // Handles sending messages to the external process. Deletes itself when |
115 // the external process dies (see | 115 // the external process dies (see |
116 // BrowserChildProcessHost::OnChildDisconnected). | 116 // BrowserChildProcessHost::OnChildDisconnected). |
117 base::WeakPtr<content::UtilityProcessHost> utility_process_host_; | 117 base::WeakPtr<content::UtilityProcessHost> utility_process_host_; |
118 | 118 |
119 // Data to be passed from the importer host to the external importer. | 119 // Data to be passed from the importer host to the external importer. |
120 const importer::SourceProfile& source_profile_; | 120 importer::SourceProfile source_profile_; |
121 uint16 items_; | 121 uint16 items_; |
122 | 122 |
123 // Takes import data coming over IPC and delivers it to be written by the | 123 // Takes import data coming over IPC and delivers it to be written by the |
124 // ProfileWriter. | 124 // ProfileWriter. |
125 scoped_refptr<InProcessImporterBridge> bridge_; | 125 scoped_refptr<InProcessImporterBridge> bridge_; |
126 | 126 |
127 // True if import process has been cancelled. | 127 // True if import process has been cancelled. |
128 bool cancelled_; | 128 bool cancelled_; |
129 | 129 |
130 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterClient); | 130 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterClient); |
131 }; | 131 }; |
132 | 132 |
133 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ | 133 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ |
OLD | NEW |