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 #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> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/common/page_transition_types.h" | 22 #include "chrome/common/page_transition_types.h" |
23 #include "chrome/common/resource_response.h" | 23 #include "chrome/common/resource_response.h" |
24 #include "chrome/common/translate_errors.h" | 24 #include "chrome/common/translate_errors.h" |
25 #include "chrome/common/view_types.h" | 25 #include "chrome/common/view_types.h" |
26 #include "chrome/common/webkit_param_traits.h" | 26 #include "chrome/common/webkit_param_traits.h" |
27 #include "gfx/native_widget_types.h" | 27 #include "gfx/native_widget_types.h" |
28 #include "ipc/ipc_message_utils.h" | 28 #include "ipc/ipc_message_utils.h" |
29 #include "ipc/ipc_platform_file.h" // ifdefed typedef. | 29 #include "ipc/ipc_platform_file.h" // ifdefed typedef. |
30 #include "third_party/WebKit/WebKit/chromium/public/WebStorageArea.h" | 30 #include "third_party/WebKit/WebKit/chromium/public/WebStorageArea.h" |
31 #include "webkit/appcache/appcache_interfaces.h" // enum appcache::Status | 31 #include "webkit/appcache/appcache_interfaces.h" // enum appcache::Status |
| 32 #include "webkit/fileapi/file_system_types.h" // enum fileapi::FileSystemType |
32 #include "webkit/glue/resource_loader_bridge.h" // nested classes | 33 #include "webkit/glue/resource_loader_bridge.h" // nested classes |
33 | 34 |
34 #if defined(OS_MACOSX) | 35 #if defined(OS_MACOSX) |
35 struct FontDescriptor; | 36 struct FontDescriptor; |
36 #endif | 37 #endif |
37 | 38 |
38 namespace appcache { | 39 namespace appcache { |
39 struct AppCacheInfo; | 40 struct AppCacheInfo; |
40 struct AppCacheResourceInfo; | 41 struct AppCacheResourceInfo; |
41 } | 42 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 struct ViewMsg_ExecuteCode_Params; | 100 struct ViewMsg_ExecuteCode_Params; |
100 struct ViewHostMsg_CreateWorker_Params; | 101 struct ViewHostMsg_CreateWorker_Params; |
101 struct ViewHostMsg_ShowNotification_Params; | 102 struct ViewHostMsg_ShowNotification_Params; |
102 struct ViewMsg_New_Params; | 103 struct ViewMsg_New_Params; |
103 struct ViewHostMsg_CreateWindow_Params; | 104 struct ViewHostMsg_CreateWindow_Params; |
104 struct ViewHostMsg_RunFileChooser_Params; | 105 struct ViewHostMsg_RunFileChooser_Params; |
105 struct ViewMsg_ExtensionRendererInfo; | 106 struct ViewMsg_ExtensionRendererInfo; |
106 struct ViewMsg_ExtensionsUpdated_Params; | 107 struct ViewMsg_ExtensionsUpdated_Params; |
107 struct ViewMsg_DeviceOrientationUpdated_Params; | 108 struct ViewMsg_DeviceOrientationUpdated_Params; |
108 struct ViewHostMsg_DomMessage_Params; | 109 struct ViewHostMsg_DomMessage_Params; |
109 struct ViewHostMsg_OpenFileSystemRequest_Params; | |
110 struct ViewHostMsg_AccessibilityNotification_Params; | 110 struct ViewHostMsg_AccessibilityNotification_Params; |
111 | 111 |
112 // Values that may be OR'd together to form the 'flags' parameter of the | 112 // Values that may be OR'd together to form the 'flags' parameter of the |
113 // ViewMsg_EnablePreferredSizeChangedMode message. | 113 // ViewMsg_EnablePreferredSizeChangedMode message. |
114 enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags { | 114 enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags { |
115 kPreferredSizeNothing, | 115 kPreferredSizeNothing, |
116 kPreferredSizeWidth = 1 << 0, | 116 kPreferredSizeWidth = 1 << 0, |
117 // Requesting the height currently requires a polling loop in render_view.cc. | 117 // Requesting the height currently requires a polling loop in render_view.cc. |
118 kPreferredSizeHeightThisIsSlow = 1 << 1, | 118 kPreferredSizeHeightThisIsSlow = 1 << 1, |
119 }; | 119 }; |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 static bool Read(const Message* m, void** iter, param_type* p); | 735 static bool Read(const Message* m, void** iter, param_type* p); |
736 static void Log(const param_type& p, std::string* l); | 736 static void Log(const param_type& p, std::string* l); |
737 }; | 737 }; |
738 | 738 |
739 // Traits for base::PlatformFileError | 739 // Traits for base::PlatformFileError |
740 template <> | 740 template <> |
741 struct SimilarTypeTraits<base::PlatformFileError> { | 741 struct SimilarTypeTraits<base::PlatformFileError> { |
742 typedef int Type; | 742 typedef int Type; |
743 }; | 743 }; |
744 | 744 |
| 745 template <> |
| 746 struct SimilarTypeTraits<fileapi::FileSystemType> { |
| 747 typedef int Type; |
| 748 }; |
| 749 |
745 } // namespace IPC | 750 } // namespace IPC |
746 | 751 |
747 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 752 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
748 #include "ipc/ipc_message_macros.h" | 753 #include "ipc/ipc_message_macros.h" |
749 | 754 |
750 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 755 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |