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

Side by Side Diff: ppapi/proxy/ppapi_param_traits.cc

Issue 12208057: Add explicit base to FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/shared_impl/dir_contents.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) 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 #include "ppapi/proxy/ppapi_param_traits.h" 5 #include "ppapi/proxy/ppapi_param_traits.h"
6 6
7 #include <string.h> // For memcpy 7 #include <string.h> // For memcpy
8 8
9 #include "ppapi/c/pp_file_info.h" 9 #include "ppapi/c/pp_file_info.h"
10 #include "ppapi/c/pp_resource.h" 10 #include "ppapi/c/pp_resource.h"
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 const param_type& p) { 568 const param_type& p) {
569 WriteParam(m, static_cast<unsigned>(p.domain())); 569 WriteParam(m, static_cast<unsigned>(p.domain()));
570 WriteParam(m, p.path()); 570 WriteParam(m, p.path());
571 } 571 }
572 572
573 // static 573 // static
574 bool ParamTraits<ppapi::PepperFilePath>::Read(const Message* m, 574 bool ParamTraits<ppapi::PepperFilePath>::Read(const Message* m,
575 PickleIterator* iter, 575 PickleIterator* iter,
576 param_type* p) { 576 param_type* p) {
577 unsigned domain; 577 unsigned domain;
578 FilePath path; 578 base::FilePath path;
579 if (!ReadParam(m, iter, &domain) || !ReadParam(m, iter, &path)) 579 if (!ReadParam(m, iter, &domain) || !ReadParam(m, iter, &path))
580 return false; 580 return false;
581 if (domain > ppapi::PepperFilePath::DOMAIN_MAX_VALID) 581 if (domain > ppapi::PepperFilePath::DOMAIN_MAX_VALID)
582 return false; 582 return false;
583 583
584 *p = ppapi::PepperFilePath( 584 *p = ppapi::PepperFilePath(
585 static_cast<ppapi::PepperFilePath::Domain>(domain), path); 585 static_cast<ppapi::PepperFilePath::Domain>(domain), path);
586 return true; 586 return true;
587 } 587 }
588 588
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 param_type* r) { 633 param_type* r) {
634 return ParamTraits<ListValue>::Read(m, iter, &(r->values_)); 634 return ParamTraits<ListValue>::Read(m, iter, &(r->values_));
635 } 635 }
636 636
637 // static 637 // static
638 void ParamTraits<ppapi::PPB_X509Certificate_Fields>::Log(const param_type& p, 638 void ParamTraits<ppapi::PPB_X509Certificate_Fields>::Log(const param_type& p,
639 std::string* l) { 639 std::string* l) {
640 } 640 }
641 641
642 } // namespace IPC 642 } // namespace IPC
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/shared_impl/dir_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698