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

Side by Side Diff: chrome/common/render_messages_params.cc

Issue 3245010: Revert 57915 - Add final part of IPC plumbing for FileSystem API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 3 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
« no previous file with comments | « chrome/common/render_messages_params.h ('k') | chrome/common/webkit_param_traits.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 (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/common/render_messages_params.h" 5 #include "chrome/common/render_messages_params.h"
6 6
7 #include "chrome/common/navigation_gesture.h" 7 #include "chrome/common/navigation_gesture.h"
8 #include "chrome/common/common_param_traits.h" 8 #include "chrome/common/common_param_traits.h"
9 #include "chrome/common/indexed_db_param_traits.h" 9 #include "chrome/common/indexed_db_param_traits.h"
10 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 LogParam(p.request_id, l); 1416 LogParam(p.request_id, l);
1417 l->append(", "); 1417 l->append(", ");
1418 LogParam(p.origin_url, l); 1418 LogParam(p.origin_url, l);
1419 l->append(", "); 1419 l->append(", ");
1420 LogParam(p.type, l); 1420 LogParam(p.type, l);
1421 l->append(", "); 1421 l->append(", ");
1422 LogParam(p.requested_size, l); 1422 LogParam(p.requested_size, l);
1423 l->append(")"); 1423 l->append(")");
1424 } 1424 }
1425 1425
1426 void ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params>::Write(
1427 Message* m,
1428 const param_type& p) {
1429 WriteParam(m, p.request_id);
1430 WriteParam(m, p.entries);
1431 WriteParam(m, p.has_more);
1432 }
1433
1434 bool ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params>::Read(
1435 const Message* m,
1436 void** iter,
1437 param_type* p) {
1438 return
1439 ReadParam(m, iter, &p->request_id) &&
1440 ReadParam(m, iter, &p->entries) &&
1441 ReadParam(m, iter, &p->has_more);
1442 }
1443
1444 void ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params>::Log(
1445 const param_type& p,
1446 std::string* l) {
1447 l->append("(");
1448 LogParam(p.request_id, l);
1449 l->append(", ");
1450 LogParam(p.entries, l);
1451 l->append(", ");
1452 LogParam(p.has_more, l);
1453 l->append(")");
1454 }
1455
1456 void ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params::Entry>::Write(
1457 Message* m,
1458 const param_type& p) {
1459 WriteParam(m, p.name);
1460 WriteParam(m, p.is_directory);
1461 }
1462
1463 bool ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params::Entry>::Read(
1464 const Message* m,
1465 void** iter,
1466 param_type* p) {
1467 return
1468 ReadParam(m, iter, &p->name) &&
1469 ReadParam(m, iter, &p->is_directory);
1470 }
1471
1472 void ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params::Entry>::Log(
1473 const param_type& p,
1474 std::string* l) {
1475 l->append("(");
1476 LogParam(p.name, l);
1477 l->append(", ");
1478 LogParam(p.is_directory, l);
1479 l->append(")");
1480 }
1481
1482 } // namespace IPC 1426 } // namespace IPC
OLDNEW
« no previous file with comments | « chrome/common/render_messages_params.h ('k') | chrome/common/webkit_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698