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 "content/common/common_param_traits.h" | 6 #include "content/common/common_param_traits.h" |
6 | 7 |
7 #define IPC_MESSAGE_IMPL | 8 #define IPC_MESSAGE_IMPL |
8 #include "chrome/common/automation_messages.h" | 9 #include "chrome/common/automation_messages.h" |
9 | 10 |
10 AutomationURLRequest::AutomationURLRequest() | 11 AutomationURLRequest::AutomationURLRequest() |
11 : resource_type(0), | 12 : resource_type(0), |
12 load_flags(0) { | 13 load_flags(0) { |
13 } | 14 } |
14 | 15 |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 LogParam(p.dimensions, l); | 671 LogParam(p.dimensions, l); |
671 l->append(", "); | 672 l->append(", "); |
672 LogParam(p.disposition, l); | 673 LogParam(p.disposition, l); |
673 l->append(", "); | 674 l->append(", "); |
674 LogParam(p.user_gesture, l); | 675 LogParam(p.user_gesture, l); |
675 l->append(","); | 676 l->append(","); |
676 LogParam(p.profile_name, l); | 677 LogParam(p.profile_name, l); |
677 l->append(")"); | 678 l->append(")"); |
678 } | 679 } |
679 | 680 |
680 // The traits for these are defined in render_messages.h | |
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 | |
697 } // namespace IPC | 681 } // namespace IPC |
OLD | NEW |