Chromium Code Reviews| 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" | |
| 32 #include "third_party/WebKit/WebKit/chromium/public/WebFileSystem.h" | 33 #include "third_party/WebKit/WebKit/chromium/public/WebFileSystem.h" |
| 33 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" | 34 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" |
| 34 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" | 35 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" |
| 35 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" | 36 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" |
| 36 #include "third_party/WebKit/WebKit/chromium/public/WebTextInputType.h" | 37 #include "third_party/WebKit/WebKit/chromium/public/WebTextInputType.h" |
| 37 | 38 |
| 38 namespace WebKit { | 39 namespace WebKit { |
| 39 struct WebCompositionUnderline; | 40 struct WebCompositionUnderline; |
| 40 struct WebFindOptions; | 41 struct WebFindOptions; |
| 41 struct WebMediaPlayerAction; | 42 struct WebMediaPlayerAction; |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 322 default: | 323 default: |
| 323 NOTIMPLEMENTED(); | 324 NOTIMPLEMENTED(); |
| 324 control = "UNKNOWN"; | 325 control = "UNKNOWN"; |
| 325 break; | 326 break; |
| 326 } | 327 } |
| 327 LogParam(control, l); | 328 LogParam(control, l); |
| 328 } | 329 } |
| 329 }; | 330 }; |
| 330 | 331 |
| 331 template <> | 332 template <> |
| 332 struct SimilarTypeTraits<WebKit::WebFileSystem::Type> { | 333 struct SimilarTypeTraits<WebKit::WebFileSystem::Type> { |
|
michaeln
2010/08/27 19:05:40
ah... i like this trait!
| |
| 333 typedef int Type; | 334 typedef int Type; |
| 334 }; | 335 }; |
| 335 | 336 |
| 337 template <> | |
| 338 struct SimilarTypeTraits<WebKit::WebFileError> { | |
| 339 typedef int Type; | |
| 340 }; | |
| 341 | |
| 336 } // namespace IPC | 342 } // namespace IPC |
| 337 | 343 |
| 338 #endif // CHROME_COMMON_WEBKIT_PARAM_TRAITS_H_ | 344 #endif // CHROME_COMMON_WEBKIT_PARAM_TRAITS_H_ |
| OLD | NEW |