Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: chrome/common/importer/profile_import_process_messages.h

Issue 18555005: Move importer messages to common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // Multiply-included message file, no traditonal include guard. 5 // Multiply-included message file, no traditonal include guard.
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/importer/importer_data_types.h"
13 #include "chrome/browser/search_engines/template_url.h"
14 #include "chrome/common/common_param_traits_macros.h" 12 #include "chrome/common/common_param_traits_macros.h"
15 #include "chrome/common/importer/imported_bookmark_entry.h" 13 #include "chrome/common/importer/imported_bookmark_entry.h"
16 #include "chrome/common/importer/imported_favicon_usage.h" 14 #include "chrome/common/importer/imported_favicon_usage.h"
15 #include "chrome/common/importer/importer_data_types.h"
17 #include "chrome/common/importer/importer_url_row.h" 16 #include "chrome/common/importer/importer_url_row.h"
18 #include "content/public/common/common_param_traits.h" 17 #include "content/public/common/common_param_traits.h"
19 #include "content/public/common/password_form.h" 18 #include "content/public/common/password_form.h"
20 #include "ipc/ipc_message_macros.h" 19 #include "ipc/ipc_message_macros.h"
21 #include "ipc/ipc_message_utils.h" 20 #include "ipc/ipc_message_utils.h"
22 21
23 #ifndef CHROME_BROWSER_IMPORTER_PROFILE_IMPORT_PROCESS_MESSAGES_H_ 22 #ifndef CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_MESSAGES_H_
24 #define CHROME_BROWSER_IMPORTER_PROFILE_IMPORT_PROCESS_MESSAGES_H_ 23 #define CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_MESSAGES_H_
25 24
26 namespace IPC { 25 namespace IPC {
27 26
28 // Traits for importer::SourceProfile struct to pack/unpack. 27 // Traits for importer::SourceProfile struct to pack/unpack.
29 template <> 28 template <>
30 struct ParamTraits<importer::SourceProfile> { 29 struct ParamTraits<importer::SourceProfile> {
31 typedef importer::SourceProfile param_type; 30 typedef importer::SourceProfile param_type;
32 static void Write(Message* m, const param_type& p) { 31 static void Write(Message* m, const param_type& p) {
33 WriteParam(m, p.importer_name); 32 WriteParam(m, p.importer_name);
34 WriteParam(m, static_cast<int>(p.importer_type)); 33 WriteParam(m, static_cast<int>(p.importer_type));
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 l->append(", "); 214 l->append(", ");
216 LogParam(p.keyword, l); 215 LogParam(p.keyword, l);
217 l->append(", "); 216 l->append(", ");
218 LogParam(p.display_name, l); 217 LogParam(p.display_name, l);
219 l->append(")"); 218 l->append(")");
220 } 219 }
221 }; // ParamTraits<importer::URLKeywordInfo> 220 }; // ParamTraits<importer::URLKeywordInfo>
222 221
223 } // namespace IPC 222 } // namespace IPC
224 223
225 #endif // CHROME_BROWSER_IMPORTER_PROFILE_IMPORT_PROCESS_MESSAGES_H_ 224 #endif // CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_MESSAGES_H_
226 225
227 #define IPC_MESSAGE_START ProfileImportMsgStart 226 #define IPC_MESSAGE_START ProfileImportMsgStart
228 227
229 //----------------------------------------------------------------------------- 228 //-----------------------------------------------------------------------------
230 // ProfileImportProcess messages 229 // ProfileImportProcess messages
231 // These are messages sent from the browser to the profile import process. 230 // These are messages sent from the browser to the profile import process.
232 IPC_MESSAGE_CONTROL3(ProfileImportProcessMsg_StartImport, 231 IPC_MESSAGE_CONTROL3(ProfileImportProcessMsg_StartImport,
233 importer::SourceProfile, 232 importer::SourceProfile,
234 int /* Bitmask of items to import. */, 233 int /* Bitmask of items to import. */,
235 DictionaryValue /* Localized strings. */) 234 DictionaryValue /* Localized strings. */)
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyPasswordFormReady, 284 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyPasswordFormReady,
286 content::PasswordForm) 285 content::PasswordForm)
287 286
288 IPC_MESSAGE_CONTROL2(ProfileImportProcessHostMsg_NotifyKeywordsReady, 287 IPC_MESSAGE_CONTROL2(ProfileImportProcessHostMsg_NotifyKeywordsReady,
289 std::vector<importer::URLKeywordInfo>, // url_keywords 288 std::vector<importer::URLKeywordInfo>, // url_keywords
290 bool /* unique on host and path */) 289 bool /* unique on host and path */)
291 290
292 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyFirefoxSearchEngData, 291 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyFirefoxSearchEngData,
293 std::vector<std::string>) // search_engine_data 292 std::vector<std::string>) // search_engine_data
294 293
OLDNEW
« no previous file with comments | « chrome/common/importer/importer_type.h ('k') | chrome/common/importer/profile_import_process_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698