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 #include "chrome/browser/profile_import_process_host.h" | 5 #include "chrome/browser/profile_import_process_host.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 thread_id_, FROM_HERE, | 133 thread_id_, FROM_HERE, |
134 NewRunnableMethod(import_process_client_.get(), | 134 NewRunnableMethod(import_process_client_.get(), |
135 &ImportProcessClient::OnProcessCrashed, | 135 &ImportProcessClient::OnProcessCrashed, |
136 exit_code)); | 136 exit_code)); |
137 } | 137 } |
138 | 138 |
139 bool ProfileImportProcessHost::CanShutdown() { | 139 bool ProfileImportProcessHost::CanShutdown() { |
140 return true; | 140 return true; |
141 } | 141 } |
142 | 142 |
143 URLRequestContext* ProfileImportProcessHost::GetRequestContext( | |
144 uint32 request_id, | |
145 const ViewHostMsg_Resource_Request& request_data) { | |
146 return NULL; | |
147 } | |
148 | |
149 ProfileImportProcessHost::ImportProcessClient::ImportProcessClient() {} | 143 ProfileImportProcessHost::ImportProcessClient::ImportProcessClient() {} |
150 | 144 |
151 ProfileImportProcessHost::ImportProcessClient::~ImportProcessClient() {} | 145 ProfileImportProcessHost::ImportProcessClient::~ImportProcessClient() {} |
152 | 146 |
153 void ProfileImportProcessHost::ImportProcessClient::OnMessageReceived( | 147 void ProfileImportProcessHost::ImportProcessClient::OnMessageReceived( |
154 const IPC::Message& message) { | 148 const IPC::Message& message) { |
155 IPC_BEGIN_MESSAGE_MAP(ProfileImportProcessHost, message) | 149 IPC_BEGIN_MESSAGE_MAP(ProfileImportProcessHost, message) |
156 // Notification messages about the state of the import process. | 150 // Notification messages about the state of the import process. |
157 IPC_MESSAGE_HANDLER(ProfileImportProcessHostMsg_Import_Started, | 151 IPC_MESSAGE_HANDLER(ProfileImportProcessHostMsg_Import_Started, |
158 ImportProcessClient::OnImportStart) | 152 ImportProcessClient::OnImportStart) |
(...skipping 18 matching lines...) Expand all Loading... |
177 IPC_MESSAGE_HANDLER(ProfileImportProcessHostMsg_NotifyFavIconsImportStart, | 171 IPC_MESSAGE_HANDLER(ProfileImportProcessHostMsg_NotifyFavIconsImportStart, |
178 ImportProcessClient::OnFavIconsImportStart) | 172 ImportProcessClient::OnFavIconsImportStart) |
179 IPC_MESSAGE_HANDLER(ProfileImportProcessHostMsg_NotifyFavIconsImportGroup, | 173 IPC_MESSAGE_HANDLER(ProfileImportProcessHostMsg_NotifyFavIconsImportGroup, |
180 ImportProcessClient::OnFavIconsImportGroup) | 174 ImportProcessClient::OnFavIconsImportGroup) |
181 IPC_MESSAGE_HANDLER(ProfileImportProcessHostMsg_NotifyPasswordFormReady, | 175 IPC_MESSAGE_HANDLER(ProfileImportProcessHostMsg_NotifyPasswordFormReady, |
182 ImportProcessClient::OnPasswordFormImportReady) | 176 ImportProcessClient::OnPasswordFormImportReady) |
183 IPC_MESSAGE_HANDLER(ProfileImportProcessHostMsg_NotifyKeywordsReady, | 177 IPC_MESSAGE_HANDLER(ProfileImportProcessHostMsg_NotifyKeywordsReady, |
184 ImportProcessClient::OnKeywordsImportReady) | 178 ImportProcessClient::OnKeywordsImportReady) |
185 IPC_END_MESSAGE_MAP_EX() | 179 IPC_END_MESSAGE_MAP_EX() |
186 } | 180 } |
OLD | NEW |