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