Chromium Code Reviews| 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 "content/common/common_param_traits.h" | 5 #include "content/common/common_param_traits.h" |
| 6 | 6 |
| 7 #define IPC_MESSAGE_IMPL | 7 #define IPC_MESSAGE_IMPL |
| 8 #include "chrome/common/automation_messages.h" | 8 #include "chrome/common/automation_messages.h" |
| 9 | 9 |
| 10 AutomationURLRequest::AutomationURLRequest() | 10 AutomationURLRequest::AutomationURLRequest() |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 670 LogParam(p.dimensions, l); | 670 LogParam(p.dimensions, l); |
| 671 l->append(", "); | 671 l->append(", "); |
| 672 LogParam(p.disposition, l); | 672 LogParam(p.disposition, l); |
| 673 l->append(", "); | 673 l->append(", "); |
| 674 LogParam(p.user_gesture, l); | 674 LogParam(p.user_gesture, l); |
| 675 l->append(","); | 675 l->append(","); |
| 676 LogParam(p.profile_name, l); | 676 LogParam(p.profile_name, l); |
| 677 l->append(")"); | 677 l->append(")"); |
| 678 } | 678 } |
| 679 | 679 |
| 680 // The traits for these are defined in render_messages.h | |
|
Tom Sepez
2011/03/24 00:51:21
Would have expected to see these in a header.
jam
2011/03/24 01:07:56
yeah this is ugly, but i didn't have a clean way o
| |
| 681 template <> | |
| 682 struct ParamTraits<ContentSetting> { | |
| 683 typedef ContentSetting param_type; | |
| 684 static void Write(Message* m, const param_type& p); | |
| 685 static bool Read(const Message* m, void** iter, param_type* p); | |
| 686 static void Log(const param_type& p, std::string* l); | |
| 687 }; | |
| 688 | |
| 689 template <> | |
| 690 struct ParamTraits<ContentSettingsType> { | |
| 691 typedef ContentSettingsType param_type; | |
| 692 static void Write(Message* m, const param_type& p); | |
| 693 static bool Read(const Message* m, void** iter, param_type* p); | |
| 694 static void Log(const param_type& p, std::string* l); | |
| 695 }; | |
| 696 | |
| 680 } // namespace IPC | 697 } // namespace IPC |
| OLD | NEW |