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

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

Issue 105473003: Add explicit base namespace to string16 users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
« no previous file with comments | « chrome/common/importer/importer_data_types.h ('k') | chrome/common/instant_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 static void Write(Message* m, const param_type& p) { 85 static void Write(Message* m, const param_type& p) {
86 WriteParam(m, p.url); 86 WriteParam(m, p.url);
87 WriteParam(m, p.title); 87 WriteParam(m, p.title);
88 WriteParam(m, p.visit_count); 88 WriteParam(m, p.visit_count);
89 WriteParam(m, p.typed_count); 89 WriteParam(m, p.typed_count);
90 WriteParam(m, p.last_visit); 90 WriteParam(m, p.last_visit);
91 WriteParam(m, p.hidden); 91 WriteParam(m, p.hidden);
92 } 92 }
93 static bool Read(const Message* m, PickleIterator* iter, param_type* p) { 93 static bool Read(const Message* m, PickleIterator* iter, param_type* p) {
94 GURL url; 94 GURL url;
95 string16 title; 95 base::string16 title;
96 int visit_count, typed_count; 96 int visit_count, typed_count;
97 base::Time last_visit; 97 base::Time last_visit;
98 bool hidden; 98 bool hidden;
99 if (!ReadParam(m, iter, &url) || 99 if (!ReadParam(m, iter, &url) ||
100 !ReadParam(m, iter, &title) || 100 !ReadParam(m, iter, &title) ||
101 !ReadParam(m, iter, &visit_count) || 101 !ReadParam(m, iter, &visit_count) ||
102 !ReadParam(m, iter, &typed_count) || 102 !ReadParam(m, iter, &typed_count) ||
103 !ReadParam(m, iter, &last_visit) || 103 !ReadParam(m, iter, &last_visit) ||
104 !ReadParam(m, iter, &hidden)) 104 !ReadParam(m, iter, &hidden))
105 return false; 105 return false;
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 293
294 IPC_MESSAGE_CONTROL2(ProfileImportProcessHostMsg_NotifyHistoryImportGroup, 294 IPC_MESSAGE_CONTROL2(ProfileImportProcessHostMsg_NotifyHistoryImportGroup,
295 std::vector<ImporterURLRow>, 295 std::vector<ImporterURLRow>,
296 int /* the source of URLs as in history::VisitSource.*/ 296 int /* the source of URLs as in history::VisitSource.*/
297 /* To simplify IPC call, pass as an integer */) 297 /* To simplify IPC call, pass as an integer */)
298 298
299 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyHomePageImportReady, 299 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyHomePageImportReady,
300 GURL /* GURL of home page */) 300 GURL /* GURL of home page */)
301 301
302 IPC_MESSAGE_CONTROL2(ProfileImportProcessHostMsg_NotifyBookmarksImportStart, 302 IPC_MESSAGE_CONTROL2(ProfileImportProcessHostMsg_NotifyBookmarksImportStart,
303 string16 /* first folder name */, 303 base::string16 /* first folder name */,
304 int /* total number of bookmarks */) 304 int /* total number of bookmarks */)
305 305
306 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyBookmarksImportGroup, 306 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyBookmarksImportGroup,
307 std::vector<ImportedBookmarkEntry>) 307 std::vector<ImportedBookmarkEntry>)
308 308
309 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyFaviconsImportStart, 309 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyFaviconsImportStart,
310 int /* total number of favicons */) 310 int /* total number of favicons */)
311 311
312 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyFaviconsImportGroup, 312 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyFaviconsImportGroup,
313 std::vector<ImportedFaviconUsage>) 313 std::vector<ImportedFaviconUsage>)
314 314
315 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyPasswordFormReady, 315 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyPasswordFormReady,
316 autofill::PasswordForm) 316 autofill::PasswordForm)
317 317
318 IPC_MESSAGE_CONTROL2(ProfileImportProcessHostMsg_NotifyKeywordsReady, 318 IPC_MESSAGE_CONTROL2(ProfileImportProcessHostMsg_NotifyKeywordsReady,
319 std::vector<importer::URLKeywordInfo>, // url_keywords 319 std::vector<importer::URLKeywordInfo>, // url_keywords
320 bool /* unique on host and path */) 320 bool /* unique on host and path */)
321 321
322 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyFirefoxSearchEngData, 322 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyFirefoxSearchEngData,
323 std::vector<std::string>) // search_engine_data 323 std::vector<std::string>) // search_engine_data
324 324
325 #if defined(OS_WIN) 325 #if defined(OS_WIN)
326 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyIE7PasswordInfo, 326 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyIE7PasswordInfo,
327 importer::ImporterIE7PasswordInfo) // password_info 327 importer::ImporterIE7PasswordInfo) // password_info
328 #endif 328 #endif
OLDNEW
« no previous file with comments | « chrome/common/importer/importer_data_types.h ('k') | chrome/common/instant_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698