| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 contains ParamTraits templates to support serialization of WebKit | 5 // This file contains ParamTraits templates to support serialization of WebKit |
| 6 // data types over IPC. | 6 // data types over IPC. |
| 7 // | 7 // |
| 8 // NOTE: IT IS IMPORTANT THAT ONLY POD (plain old data) TYPES ARE SERIALIZED. | 8 // NOTE: IT IS IMPORTANT THAT ONLY POD (plain old data) TYPES ARE SERIALIZED. |
| 9 // | 9 // |
| 10 // There are several reasons for this restrictions: | 10 // There are several reasons for this restrictions: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 #ifndef CHROME_COMMON_WEBKIT_PARAM_TRAITS_H_ | 23 #ifndef CHROME_COMMON_WEBKIT_PARAM_TRAITS_H_ |
| 24 #define CHROME_COMMON_WEBKIT_PARAM_TRAITS_H_ | 24 #define CHROME_COMMON_WEBKIT_PARAM_TRAITS_H_ |
| 25 #pragma once | 25 #pragma once |
| 26 | 26 |
| 27 #include "ipc/ipc_message_utils.h" | 27 #include "ipc/ipc_message_utils.h" |
| 28 #include "third_party/WebKit/WebKit/chromium/public/WebCache.h" | 28 #include "third_party/WebKit/WebKit/chromium/public/WebCache.h" |
| 29 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h" | 29 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h" |
| 30 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h" | 30 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h" |
| 31 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h" | 31 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h" |
| 32 #include "third_party/WebKit/WebKit/chromium/public/WebFileError.h" | |
| 33 #include "third_party/WebKit/WebKit/chromium/public/WebFileSystem.h" | 32 #include "third_party/WebKit/WebKit/chromium/public/WebFileSystem.h" |
| 34 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" | 33 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" |
| 35 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" | 34 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" |
| 36 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" | 35 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" |
| 37 #include "third_party/WebKit/WebKit/chromium/public/WebTextInputType.h" | 36 #include "third_party/WebKit/WebKit/chromium/public/WebTextInputType.h" |
| 38 | 37 |
| 39 namespace WebKit { | 38 namespace WebKit { |
| 40 struct WebCompositionUnderline; | 39 struct WebCompositionUnderline; |
| 41 struct WebFindOptions; | 40 struct WebFindOptions; |
| 42 struct WebMediaPlayerAction; | 41 struct WebMediaPlayerAction; |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 } | 326 } |
| 328 LogParam(control, l); | 327 LogParam(control, l); |
| 329 } | 328 } |
| 330 }; | 329 }; |
| 331 | 330 |
| 332 template <> | 331 template <> |
| 333 struct SimilarTypeTraits<WebKit::WebFileSystem::Type> { | 332 struct SimilarTypeTraits<WebKit::WebFileSystem::Type> { |
| 334 typedef int Type; | 333 typedef int Type; |
| 335 }; | 334 }; |
| 336 | 335 |
| 337 template <> | |
| 338 struct SimilarTypeTraits<WebKit::WebFileError> { | |
| 339 typedef int Type; | |
| 340 }; | |
| 341 | |
| 342 } // namespace IPC | 336 } // namespace IPC |
| 343 | 337 |
| 344 #endif // CHROME_COMMON_WEBKIT_PARAM_TRAITS_H_ | 338 #endif // CHROME_COMMON_WEBKIT_PARAM_TRAITS_H_ |
| OLD | NEW |