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

Side by Side Diff: content/common/webkit_param_traits.h

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: update copyright headers, merge Created 9 years, 3 months 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
OLDNEW
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 WebKit types so that they can be serialized over IPC. IPC::ParamTraits<> 6 // of WebKit 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 used by the content code, and which need 9 // specializations for types that are used by the content code, and which need
10 // manual serialization code. This is usually because they're not structs with 10 // manual serialization code. This is usually because they're not structs with
11 // public members. 11 // public members.
12 12
13 #ifndef CONTENT_COMMON_WEBKIT_PARAM_TRAITS_H_ 13 #ifndef CONTENT_COMMON_WEBKIT_PARAM_TRAITS_H_
14 #define CONTENT_COMMON_WEBKIT_PARAM_TRAITS_H_ 14 #define CONTENT_COMMON_WEBKIT_PARAM_TRAITS_H_
15 #pragma once 15 #pragma once
16 16
17 #include <string> 17 #include <string>
18 18
19 #include "base/memory/ref_counted.h" 19 #include "base/memory/ref_counted.h"
20 #include "content/common/content_export.h"
20 #include "ipc/ipc_message_utils.h" 21 #include "ipc/ipc_message_utils.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
23 #include "webkit/blob/blob_data.h" 24 #include "webkit/blob/blob_data.h"
24 #include "webkit/glue/npruntime_util.h" 25 #include "webkit/glue/npruntime_util.h"
25 #include "webkit/glue/resource_type.h" 26 #include "webkit/glue/resource_type.h"
26 #include "webkit/glue/webcursor.h" 27 #include "webkit/glue/webcursor.h"
27 #include "webkit/glue/window_open_disposition.h" 28 #include "webkit/glue/window_open_disposition.h"
28 29
29 namespace webkit_glue { 30 namespace webkit_glue {
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 struct SimilarTypeTraits<WebKit::WebTextDirection> { 221 struct SimilarTypeTraits<WebKit::WebTextDirection> {
221 typedef int Type; 222 typedef int Type;
222 }; 223 };
223 224
224 template <> 225 template <>
225 struct SimilarTypeTraits<WindowOpenDisposition> { 226 struct SimilarTypeTraits<WindowOpenDisposition> {
226 typedef int Type; 227 typedef int Type;
227 }; 228 };
228 229
229 template <> 230 template <>
230 struct ParamTraits<webkit_glue::PasswordForm> { 231 struct CONTENT_EXPORT ParamTraits<webkit_glue::PasswordForm> {
231 typedef webkit_glue::PasswordForm param_type; 232 typedef webkit_glue::PasswordForm param_type;
232 static void Write(Message* m, const param_type& p); 233 static void Write(Message* m, const param_type& p);
233 static bool Read(const Message* m, void** iter, param_type* p); 234 static bool Read(const Message* m, void** iter, param_type* p);
234 static void Log(const param_type& p, std::string* l); 235 static void Log(const param_type& p, std::string* l);
235 }; 236 };
236 237
237 } // namespace IPC 238 } // namespace IPC
238 239
239 #endif // CONTENT_COMMON_WEBKIT_PARAM_TRAITS_H_ 240 #endif // CONTENT_COMMON_WEBKIT_PARAM_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698