| OLD | NEW |
| 1 // Copyright (c) 2010 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 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
| 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 // TODO(erg): This list has been temporarily annotated by erg while doing work | 12 // TODO(erg): This list has been temporarily annotated by erg while doing work |
| 13 // on which headers to pull out. | 13 // on which headers to pull out. |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/ref_counted.h" | 15 #include "base/ref_counted.h" |
| 16 #include "base/string16.h" | 16 #include "base/string16.h" |
| 17 #include "chrome/common/common_param_traits.h" | 17 #include "chrome/common/common_param_traits.h" |
| 18 #include "chrome/common/css_colors.h" | 18 #include "chrome/common/css_colors.h" |
| 19 #include "chrome/common/p2p_sockets.h" // enum P2PSocketType |
| 19 #include "chrome/common/page_transition_types.h" | 20 #include "chrome/common/page_transition_types.h" |
| 20 #include "chrome/common/translate_errors.h" | 21 #include "chrome/common/translate_errors.h" |
| 21 #include "chrome/common/view_types.h" | 22 #include "chrome/common/view_types.h" |
| 22 #include "chrome/common/webkit_param_traits.h" | 23 #include "chrome/common/webkit_param_traits.h" |
| 23 #include "ipc/ipc_message_utils.h" | 24 #include "ipc/ipc_message_utils.h" |
| 24 #include "ipc/ipc_platform_file.h" // ifdefed typedef. | 25 #include "ipc/ipc_platform_file.h" // ifdefed typedef. |
| 25 #include "ui/base/clipboard/clipboard.h" // enum | 26 #include "ui/base/clipboard/clipboard.h" // enum |
| 26 #include "webkit/appcache/appcache_interfaces.h" // enum appcache::Status | 27 #include "webkit/appcache/appcache_interfaces.h" // enum appcache::Status |
| 27 #include "webkit/fileapi/file_system_types.h" // enum fileapi::FileSystemType | 28 #include "webkit/fileapi/file_system_types.h" // enum fileapi::FileSystemType |
| 28 | 29 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } | 66 } |
| 66 } | 67 } |
| 67 | 68 |
| 68 struct AudioBuffersState; | 69 struct AudioBuffersState; |
| 69 class ExtensionExtent; | 70 class ExtensionExtent; |
| 70 class GURL; | 71 class GURL; |
| 71 class SkBitmap; | 72 class SkBitmap; |
| 72 class URLPattern; | 73 class URLPattern; |
| 73 struct ContextMenuParams; | 74 struct ContextMenuParams; |
| 74 struct EditCommand; | 75 struct EditCommand; |
| 76 struct RendererPreferences; |
| 75 struct ResourceResponseHead; | 77 struct ResourceResponseHead; |
| 76 struct SyncLoadResult; | 78 struct SyncLoadResult; |
| 77 struct RendererPreferences; | |
| 78 struct WebDropData; | 79 struct WebDropData; |
| 79 struct WebMenuItem; | 80 struct WebMenuItem; |
| 80 struct WebPreferences; | 81 struct WebPreferences; |
| 81 | 82 |
| 82 // Forward declarations of structures used to store data for when we have a lot | 83 // Forward declarations of structures used to store data for when we have a lot |
| 83 // of parameters. | 84 // of parameters. |
| 84 struct ViewMsg_Navigate_Params; | 85 struct ViewMsg_Navigate_Params; |
| 85 struct ViewMsg_AudioStreamState_Params; | 86 struct ViewMsg_AudioStreamState_Params; |
| 86 struct ViewMsg_StopFinding_Params; | 87 struct ViewMsg_StopFinding_Params; |
| 87 struct ViewHostMsg_GetSearchProviderInstallState_Params; | 88 struct ViewHostMsg_GetSearchProviderInstallState_Params; |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 | 524 |
| 524 // Traits for AudioBuffersState structure. | 525 // Traits for AudioBuffersState structure. |
| 525 template <> | 526 template <> |
| 526 struct ParamTraits<AudioBuffersState> { | 527 struct ParamTraits<AudioBuffersState> { |
| 527 typedef AudioBuffersState param_type; | 528 typedef AudioBuffersState param_type; |
| 528 static void Write(Message* m, const param_type& p); | 529 static void Write(Message* m, const param_type& p); |
| 529 static bool Read(const Message* m, void** iter, param_type* p); | 530 static bool Read(const Message* m, void** iter, param_type* p); |
| 530 static void Log(const param_type& p, std::string* l); | 531 static void Log(const param_type& p, std::string* l); |
| 531 }; | 532 }; |
| 532 | 533 |
| 534 template <> |
| 535 struct ParamTraits<P2PSocketAddress> { |
| 536 typedef P2PSocketAddress param_type; |
| 537 static void Write(Message* m, const param_type& p); |
| 538 static bool Read(const Message* m, void** iter, param_type* p); |
| 539 static void Log(const param_type& p, std::string* l); |
| 540 }; |
| 541 |
| 542 template <> |
| 543 struct SimilarTypeTraits<P2PSocketType> { |
| 544 typedef int Type; |
| 545 }; |
| 546 |
| 533 } // namespace IPC | 547 } // namespace IPC |
| 534 | 548 |
| 535 #include "chrome/common/render_messages_internal.h" | 549 #include "chrome/common/render_messages_internal.h" |
| 536 | 550 |
| 537 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 551 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |