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 // This file is used to define IPC::ParamTraits<> specializations for a number | 5 // This file is used to define IPC::ParamTraits<> specializations for a number |
6 // of types so that they can be serialized over IPC. IPC::ParamTraits<> | 6 // of types so that they can be serialized over IPC. IPC::ParamTraits<> |
7 // specializations for basic types (like int and std::string) and types in the | 7 // specializations for basic types (like int and std::string) and types in the |
8 // 'base' project can be found in ipc/ipc_message_utils.h. This file contains | 8 // 'base' project can be found in ipc/ipc_message_utils.h. This file contains |
9 // specializations for types that are shared by more than one child process. | 9 // specializations for types that are shared by more than one child process. |
10 | 10 |
11 #ifndef CHROME_COMMON_COMMON_PARAM_TRAITS_H_ | 11 #ifndef CHROME_COMMON_COMMON_PARAM_TRAITS_H_ |
12 #define CHROME_COMMON_COMMON_PARAM_TRAITS_H_ | 12 #define CHROME_COMMON_COMMON_PARAM_TRAITS_H_ |
13 #pragma once | 13 #pragma once |
14 | 14 |
15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
16 #include "base/ref_counted.h" | 16 #include "base/ref_counted.h" |
17 #include "chrome/common/content_settings.h" | 17 #include "chrome/common/content_settings.h" |
18 #include "chrome/common/page_zoom.h" | 18 #include "content/common/page_zoom.h" |
19 #include "ipc/ipc_message_utils.h" | 19 #include "ipc/ipc_message_utils.h" |
20 #include "printing/native_metafile.h" | 20 #include "printing/native_metafile.h" |
21 // !!! WARNING: DO NOT ADD NEW WEBKIT DEPENDENCIES !!! | 21 // !!! WARNING: DO NOT ADD NEW WEBKIT DEPENDENCIES !!! |
22 // | 22 // |
23 // That means don't add #includes to any file in 'webkit/' or | 23 // That means don't add #includes to any file in 'webkit/' or |
24 // 'third_party/WebKit/'. Chrome Frame and NACL build parts of base/ and | 24 // 'third_party/WebKit/'. Chrome Frame and NACL build parts of base/ and |
25 // chrome/common/ for a mini-library that doesn't depend on webkit. | 25 // chrome/common/ for a mini-library that doesn't depend on webkit. |
26 // | 26 // |
27 // TODO(erg): The following headers are historical and only work because | 27 // TODO(erg): The following headers are historical and only work because |
28 // their definitions are inlined, which also needs to be fixed. | 28 // their definitions are inlined, which also needs to be fixed. |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 struct ParamTraits<printing::PrinterCapsAndDefaults> { | 184 struct ParamTraits<printing::PrinterCapsAndDefaults> { |
185 typedef printing::PrinterCapsAndDefaults param_type; | 185 typedef printing::PrinterCapsAndDefaults param_type; |
186 static void Write(Message* m, const param_type& p); | 186 static void Write(Message* m, const param_type& p); |
187 static bool Read(const Message* m, void** iter, param_type* r); | 187 static bool Read(const Message* m, void** iter, param_type* r); |
188 static void Log(const param_type& p, std::string* l); | 188 static void Log(const param_type& p, std::string* l); |
189 }; | 189 }; |
190 | 190 |
191 } // namespace IPC | 191 } // namespace IPC |
192 | 192 |
193 #endif // CHROME_COMMON_COMMON_PARAM_TRAITS_H_ | 193 #endif // CHROME_COMMON_COMMON_PARAM_TRAITS_H_ |
OLD | NEW |