OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "app/clipboard/clipboard.h" | 12 #include "app/clipboard/clipboard.h" |
13 #include "app/gfx/native_widget_types.h" | 13 #include "app/gfx/native_widget_types.h" |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/platform_file.h" | |
16 #include "base/ref_counted.h" | 15 #include "base/ref_counted.h" |
17 #include "base/shared_memory.h" | 16 #include "base/shared_memory.h" |
18 #include "base/string16.h" | 17 #include "base/string16.h" |
19 #include "chrome/browser/renderer_host/resource_handler.h" | 18 #include "chrome/browser/renderer_host/resource_handler.h" |
20 #include "chrome/common/common_param_traits.h" | 19 #include "chrome/common/common_param_traits.h" |
21 #include "chrome/common/css_colors.h" | 20 #include "chrome/common/css_colors.h" |
22 #include "chrome/common/dom_storage_type.h" | 21 #include "chrome/common/dom_storage_type.h" |
23 #include "chrome/common/edit_command.h" | 22 #include "chrome/common/edit_command.h" |
24 #include "chrome/common/extensions/update_manifest.h" | 23 #include "chrome/common/extensions/update_manifest.h" |
25 #include "chrome/common/extensions/url_pattern.h" | 24 #include "chrome/common/extensions/url_pattern.h" |
26 #include "chrome/common/filter_policy.h" | 25 #include "chrome/common/filter_policy.h" |
27 #include "chrome/common/navigation_gesture.h" | 26 #include "chrome/common/navigation_gesture.h" |
28 #include "chrome/common/page_transition_types.h" | 27 #include "chrome/common/page_transition_types.h" |
29 #include "chrome/common/renderer_preferences.h" | 28 #include "chrome/common/renderer_preferences.h" |
30 #include "chrome/common/transport_dib.h" | 29 #include "chrome/common/transport_dib.h" |
31 #include "chrome/common/view_types.h" | 30 #include "chrome/common/view_types.h" |
32 #include "chrome/common/webkit_param_traits.h" | 31 #include "chrome/common/webkit_param_traits.h" |
33 #include "googleurl/src/gurl.h" | 32 #include "googleurl/src/gurl.h" |
34 #include "ipc/ipc_message_utils.h" | 33 #include "ipc/ipc_message_utils.h" |
35 #include "ipc/ipc_platform_file.h" | |
36 #include "media/audio/audio_output.h" | 34 #include "media/audio/audio_output.h" |
37 #include "net/base/upload_data.h" | 35 #include "net/base/upload_data.h" |
38 #include "net/http/http_response_headers.h" | 36 #include "net/http/http_response_headers.h" |
39 #include "webkit/appcache/appcache_interfaces.h" | 37 #include "webkit/appcache/appcache_interfaces.h" |
40 #include "webkit/glue/context_menu.h" | 38 #include "webkit/glue/context_menu.h" |
41 #include "webkit/glue/form_data.h" | 39 #include "webkit/glue/form_data.h" |
42 #include "webkit/glue/form_field.h" | 40 #include "webkit/glue/form_field.h" |
43 #include "webkit/glue/form_field_values.h" | 41 #include "webkit/glue/form_field_values.h" |
44 #include "webkit/glue/password_form.h" | 42 #include "webkit/glue/password_form.h" |
45 #include "webkit/glue/password_form_dom_manager.h" | 43 #include "webkit/glue/password_form_dom_manager.h" |
46 #include "webkit/glue/resource_loader_bridge.h" | 44 #include "webkit/glue/resource_loader_bridge.h" |
47 #include "webkit/glue/webaccessibility.h" | 45 #include "webkit/glue/webaccessibility.h" |
48 #include "webkit/glue/webcookie.h" | 46 #include "webkit/glue/webcookie.h" |
49 #include "webkit/glue/webdropdata.h" | 47 #include "webkit/glue/webdropdata.h" |
50 #include "webkit/glue/webmenuitem.h" | 48 #include "webkit/glue/webmenuitem.h" |
51 #include "webkit/glue/webplugin.h" | 49 #include "webkit/glue/webplugin.h" |
52 #include "webkit/glue/webplugininfo.h" | 50 #include "webkit/glue/webplugininfo.h" |
53 #include "webkit/glue/webpreferences.h" | 51 #include "webkit/glue/webpreferences.h" |
54 | 52 |
| 53 #if defined(OS_WIN) |
| 54 #include "base/platform_file.h" |
| 55 #endif |
| 56 |
55 #if defined(OS_POSIX) | 57 #if defined(OS_POSIX) |
| 58 #include "base/file_descriptor_posix.h" |
56 #endif | 59 #endif |
57 | 60 |
58 namespace base { | 61 namespace base { |
59 class Time; | 62 class Time; |
60 } | 63 } |
61 | 64 |
62 class SkBitmap; | 65 class SkBitmap; |
63 | 66 |
64 // Parameters structure for ViewMsg_Navigate, which has too many data | 67 // Parameters structure for ViewMsg_Navigate, which has too many data |
65 // parameters to be reasonably put in a predefined IPC message. | 68 // parameters to be reasonably put in a predefined IPC message. |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 struct ViewMsg_PrintPages_Params { | 403 struct ViewMsg_PrintPages_Params { |
401 // Parameters to render the page as a printed page. It must always be the same | 404 // Parameters to render the page as a printed page. It must always be the same |
402 // value for all the document. | 405 // value for all the document. |
403 ViewMsg_Print_Params params; | 406 ViewMsg_Print_Params params; |
404 | 407 |
405 // If empty, this means a request to render all the printed pages. | 408 // If empty, this means a request to render all the printed pages. |
406 std::vector<int> pages; | 409 std::vector<int> pages; |
407 }; | 410 }; |
408 | 411 |
409 struct ViewMsg_DatabaseOpenFileResponse_Params { | 412 struct ViewMsg_DatabaseOpenFileResponse_Params { |
410 IPC::PlatformFileForTransit file_handle; // DB file handle | 413 #if defined(OS_WIN) |
411 #if defined(OS_POSIX) | 414 base::PlatformFile file_handle; // DB file handle |
| 415 #elif defined(OS_POSIX) |
| 416 base::FileDescriptor file_handle; // DB file handle |
412 base::FileDescriptor dir_handle; // DB directory handle | 417 base::FileDescriptor dir_handle; // DB directory handle |
413 #endif | 418 #endif |
414 }; | 419 }; |
415 | 420 |
416 struct ViewMsg_OpenFileForPluginResponse_Params { | 421 struct ViewMsg_OpenFileForPluginResponse_Params { |
417 // Note: if we end up having to add a directory handle, this should be | 422 // Note: if we end up having to add a directory handle, this should be |
418 // combined with the DatabaseOpenFileResponse_Params struct. | 423 // combined with the DatabaseOpenFileResponse_Params struct. |
419 IPC::PlatformFileForTransit file_handle; | 424 #if defined(OS_WIN) |
| 425 base::PlatformFile file_handle; |
| 426 #elif defined(OS_POSIX) |
| 427 base::FileDescriptor file_handle; |
| 428 #endif |
420 }; | 429 }; |
421 | 430 |
422 // Parameters to describe a rendered page. | 431 // Parameters to describe a rendered page. |
423 struct ViewHostMsg_DidPrintPage_Params { | 432 struct ViewHostMsg_DidPrintPage_Params { |
424 // A shared memory handle to the EMF data. This data can be quite large so a | 433 // A shared memory handle to the EMF data. This data can be quite large so a |
425 // memory map needs to be used. | 434 // memory map needs to be used. |
426 base::SharedMemoryHandle metafile_data_handle; | 435 base::SharedMemoryHandle metafile_data_handle; |
427 | 436 |
428 // Size of the metafile data. | 437 // Size of the metafile data. |
429 unsigned data_size; | 438 unsigned data_size; |
(...skipping 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2302 } | 2311 } |
2303 }; | 2312 }; |
2304 | 2313 |
2305 } // namespace IPC | 2314 } // namespace IPC |
2306 | 2315 |
2307 | 2316 |
2308 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2317 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
2309 #include "ipc/ipc_message_macros.h" | 2318 #include "ipc/ipc_message_macros.h" |
2310 | 2319 |
2311 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2320 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |