| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common_param_traits.h" | 5 #include "chrome/common/common_param_traits.h" |
| 6 | 6 |
| 7 #include "base/time.h" | 7 #include "base/time.h" |
| 8 #include "chrome/common/chrome_constants.h" | 8 #include "chrome/common/chrome_constants.h" |
| 9 #include "chrome/common/content_settings.h" | 9 #include "chrome/common/content_settings.h" |
| 10 #include "chrome/common/geoposition.h" | 10 #include "chrome/common/geoposition.h" |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 Message* m, const param_type& p) { | 651 Message* m, const param_type& p) { |
| 652 WriteParam(m, p.size); | 652 WriteParam(m, p.size); |
| 653 WriteParam(m, p.is_directory); | 653 WriteParam(m, p.is_directory); |
| 654 WriteParam(m, p.last_modified.ToDoubleT()); | 654 WriteParam(m, p.last_modified.ToDoubleT()); |
| 655 WriteParam(m, p.last_accessed.ToDoubleT()); | 655 WriteParam(m, p.last_accessed.ToDoubleT()); |
| 656 WriteParam(m, p.creation_time.ToDoubleT()); | 656 WriteParam(m, p.creation_time.ToDoubleT()); |
| 657 } | 657 } |
| 658 | 658 |
| 659 bool ParamTraits<base::PlatformFileInfo>::Read( | 659 bool ParamTraits<base::PlatformFileInfo>::Read( |
| 660 const Message* m, void** iter, param_type* p) { | 660 const Message* m, void** iter, param_type* p) { |
| 661 double last_modified; | 661 double last_modified = 0; // clang pr9122 |
| 662 double last_accessed; | 662 double last_accessed = 0; // clang pr9122 |
| 663 double creation_time; | 663 double creation_time = 0; // clang pr9122 |
| 664 bool result = | 664 bool result = |
| 665 ReadParam(m, iter, &p->size) && | 665 ReadParam(m, iter, &p->size) && |
| 666 ReadParam(m, iter, &p->is_directory) && | 666 ReadParam(m, iter, &p->is_directory) && |
| 667 ReadParam(m, iter, &last_modified) && | 667 ReadParam(m, iter, &last_modified) && |
| 668 ReadParam(m, iter, &last_accessed) && | 668 ReadParam(m, iter, &last_accessed) && |
| 669 ReadParam(m, iter, &creation_time); | 669 ReadParam(m, iter, &creation_time); |
| 670 if (result) { | 670 if (result) { |
| 671 p->last_modified = base::Time::FromDoubleT(last_modified); | 671 p->last_modified = base::Time::FromDoubleT(last_modified); |
| 672 p->last_accessed = base::Time::FromDoubleT(last_accessed); | 672 p->last_accessed = base::Time::FromDoubleT(last_accessed); |
| 673 p->creation_time = base::Time::FromDoubleT(creation_time); | 673 p->creation_time = base::Time::FromDoubleT(creation_time); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 l->append(","); | 714 l->append(","); |
| 715 LogParam(p.caps_mime_type, l); | 715 LogParam(p.caps_mime_type, l); |
| 716 l->append(","); | 716 l->append(","); |
| 717 LogParam(p.printer_defaults, l); | 717 LogParam(p.printer_defaults, l); |
| 718 l->append(","); | 718 l->append(","); |
| 719 LogParam(p.defaults_mime_type, l); | 719 LogParam(p.defaults_mime_type, l); |
| 720 l->append(")"); | 720 l->append(")"); |
| 721 } | 721 } |
| 722 | 722 |
| 723 } // namespace IPC | 723 } // namespace IPC |
| OLD | NEW |