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

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

Issue 5947002: As the first step in an effort to improve robustness of the cloud print proxy... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Review comments Created 10 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/common_param_traits.h ('k') | chrome/common/common_param_traits_unittest.cc » ('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/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"
11 #include "chrome/common/thumbnail_score.h" 11 #include "chrome/common/thumbnail_score.h"
12 #include "chrome/common/web_apps.h" 12 #include "chrome/common/web_apps.h"
13 #include "gfx/rect.h" 13 #include "gfx/rect.h"
14 #include "googleurl/src/gurl.h" 14 #include "googleurl/src/gurl.h"
15 #include "net/base/upload_data.h" 15 #include "net/base/upload_data.h"
16 #include "printing/backend/print_backend.h"
16 #include "printing/native_metafile.h" 17 #include "printing/native_metafile.h"
17 #include "printing/page_range.h" 18 #include "printing/page_range.h"
18 19
19 #ifndef EXCLUDE_SKIA_DEPENDENCIES 20 #ifndef EXCLUDE_SKIA_DEPENDENCIES
20 #include "third_party/skia/include/core/SkBitmap.h" 21 #include "third_party/skia/include/core/SkBitmap.h"
21 #endif 22 #endif
22 #include "webkit/glue/password_form.h" 23 #include "webkit/glue/password_form.h"
23 24
24 namespace IPC { 25 namespace IPC {
25 26
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 LogParam(p.is_directory, l); 640 LogParam(p.is_directory, l);
640 l->append(","); 641 l->append(",");
641 LogParam(p.last_modified.ToDoubleT(), l); 642 LogParam(p.last_modified.ToDoubleT(), l);
642 l->append(","); 643 l->append(",");
643 LogParam(p.last_accessed.ToDoubleT(), l); 644 LogParam(p.last_accessed.ToDoubleT(), l);
644 l->append(","); 645 l->append(",");
645 LogParam(p.creation_time.ToDoubleT(), l); 646 LogParam(p.creation_time.ToDoubleT(), l);
646 l->append(")"); 647 l->append(")");
647 } 648 }
648 649
650 void ParamTraits<printing::PrinterCapsAndDefaults>::Write(
651 Message* m, const param_type& p) {
652 WriteParam(m, p.printer_capabilities);
653 WriteParam(m, p.caps_mime_type);
654 WriteParam(m, p.printer_defaults);
655 WriteParam(m, p.defaults_mime_type);
656 }
657
658 bool ParamTraits<printing::PrinterCapsAndDefaults>::Read(
659 const Message* m, void** iter, param_type* p) {
660 return
661 ReadParam(m, iter, &p->printer_capabilities) &&
662 ReadParam(m, iter, &p->caps_mime_type) &&
663 ReadParam(m, iter, &p->printer_defaults) &&
664 ReadParam(m, iter, &p->defaults_mime_type);
665 }
666
667 void ParamTraits<printing::PrinterCapsAndDefaults>::Log(
668 const param_type& p, std::string* l) {
669 l->append("(");
670 LogParam(p.printer_capabilities, l);
671 l->append(",");
672 LogParam(p.caps_mime_type, l);
673 l->append(",");
674 LogParam(p.printer_defaults, l);
675 l->append(",");
676 LogParam(p.defaults_mime_type, l);
677 l->append(")");
678 }
679
649 } // namespace IPC 680 } // namespace IPC
OLDNEW
« no previous file with comments | « chrome/common/common_param_traits.h ('k') | chrome/common/common_param_traits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698