OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 13 |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/gfx/native_widget_types.h" | 16 #include "app/gfx/native_widget_types.h" |
17 #include "chrome/common/thumbnail_score.h" | 17 #include "chrome/common/thumbnail_score.h" |
18 #include "chrome/common/transport_dib.h" | 18 #include "chrome/common/transport_dib.h" |
19 #include "ipc/ipc_message_utils.h" | 19 #include "ipc/ipc_message_utils.h" |
20 #include "net/base/upload_data.h" | 20 #include "net/base/upload_data.h" |
21 #include "net/url_request/url_request_status.h" | 21 #include "net/url_request/url_request_status.h" |
22 #include "webkit/glue/webcursor.h" | 22 #include "webkit/glue/webcursor.h" |
23 #include "webkit/glue/window_open_disposition.h" | 23 #include "webkit/glue/window_open_disposition.h" |
24 | 24 |
25 // Forward declarations. | 25 // Forward declarations. |
26 class GURL; | 26 class GURL; |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 } | 322 } |
323 static void Log(const param_type& p, std::wstring* l) { | 323 static void Log(const param_type& p, std::wstring* l) { |
324 l->append(StringPrintf(L"(%f, %d, %d)", | 324 l->append(StringPrintf(L"(%f, %d, %d)", |
325 p.boring_score, p.good_clipping, p.at_top)); | 325 p.boring_score, p.good_clipping, p.at_top)); |
326 } | 326 } |
327 }; | 327 }; |
328 | 328 |
329 } // namespace IPC | 329 } // namespace IPC |
330 | 330 |
331 #endif // CHROME_COMMON_COMMON_PARAM_TRAITS_H_ | 331 #endif // CHROME_COMMON_COMMON_PARAM_TRAITS_H_ |
OLD | NEW |