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

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

Issue 10033017: More misc. cleanups to minimize future refactoring diffs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/string16.h" 10 #include "base/string16.h"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 WriteParam(m, p->data()); 258 WriteParam(m, p->data());
259 } 259 }
260 static bool Read(const Message* m, PickleIterator* iter, param_type* p) { 260 static bool Read(const Message* m, PickleIterator* iter, param_type* p) {
261 TemplateURLData data; 261 TemplateURLData data;
262 if (!ReadParam(m, iter, &data)) 262 if (!ReadParam(m, iter, &data))
263 return false; 263 return false;
264 *p = new TemplateURL(data); 264 *p = new TemplateURL(data);
265 return true; 265 return true;
266 } 266 }
267 static void Log(const param_type& p, std::string* l) { 267 static void Log(const param_type& p, std::string* l) {
268 l->append("<TemplateURL>"); 268 l->append("<TemplateURL*>");
269 } 269 }
270 }; 270 };
271 271
272 } // namespace IPC 272 } // namespace IPC
273 273
274 #endif // CHROME_BROWSER_IMPORTER_PROFILE_IMPORT_PROCESS_MESSAGES_H_ 274 #endif // CHROME_BROWSER_IMPORTER_PROFILE_IMPORT_PROCESS_MESSAGES_H_
275 275
276 #define IPC_MESSAGE_START ProfileImportMsgStart 276 #define IPC_MESSAGE_START ProfileImportMsgStart
277 277
278 //----------------------------------------------------------------------------- 278 //-----------------------------------------------------------------------------
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 333
334 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyPasswordFormReady, 334 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyPasswordFormReady,
335 webkit::forms::PasswordForm) 335 webkit::forms::PasswordForm)
336 336
337 // WARNING: The TemplateURL*s in the following message get heap-allocated on the 337 // WARNING: The TemplateURL*s in the following message get heap-allocated on the
338 // receiving end. The message handler for this message MUST take ownership of 338 // receiving end. The message handler for this message MUST take ownership of
339 // these pointers and ensure they're properly freed! 339 // these pointers and ensure they're properly freed!
340 IPC_MESSAGE_CONTROL2(ProfileImportProcessHostMsg_NotifyKeywordsReady, 340 IPC_MESSAGE_CONTROL2(ProfileImportProcessHostMsg_NotifyKeywordsReady,
341 std::vector<TemplateURL*>, 341 std::vector<TemplateURL*>,
342 bool /* unique on host and path */) 342 bool /* unique on host and path */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698