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 header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
6 // header guard. | 6 // header guard. |
7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 | 14 |
15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
16 #include "base/nullable_string16.h" | 16 #include "base/nullable_string16.h" |
17 #include "base/platform_file.h" | 17 #include "base/platform_file.h" |
18 #include "base/sync_socket.h" | 18 #include "base/sync_socket.h" |
19 #include "base/time.h" | 19 #include "base/time.h" |
20 #include "base/values.h" | 20 #include "base/values.h" |
21 #include "chrome/common/content_settings.h" | 21 #include "chrome/common/content_settings.h" |
22 #include "chrome/common/extensions/update_manifest.h" | 22 #include "chrome/common/extensions/update_manifest.h" |
23 #include "chrome/common/geoposition.h" | 23 #include "chrome/common/geoposition.h" |
24 #include "chrome/common/nacl_types.h" | 24 #include "chrome/common/nacl_types.h" |
25 #include "chrome/common/notification_type.h" | 25 #include "chrome/common/notification_type.h" |
26 #include "chrome/common/page_zoom.h" | 26 #include "chrome/common/page_zoom.h" |
| 27 #include "chrome/common/thumbnail_score.h" |
27 #include "chrome/common/translate_errors.h" | 28 #include "chrome/common/translate_errors.h" |
28 #include "chrome/common/window_container_type.h" | 29 #include "chrome/common/window_container_type.h" |
29 #include "gfx/rect.h" | 30 #include "gfx/rect.h" |
30 #include "ipc/ipc_channel_handle.h" | 31 #include "ipc/ipc_channel_handle.h" |
31 #include "ipc/ipc_message.h" | 32 #include "ipc/ipc_message.h" |
32 #include "ipc/ipc_message_macros.h" | 33 #include "ipc/ipc_message_macros.h" |
33 #include "third_party/skia/include/core/SkBitmap.h" | 34 #include "third_party/skia/include/core/SkBitmap.h" |
34 #include "webkit/glue/dom_operations.h" | 35 #include "webkit/glue/dom_operations.h" |
35 #include "webkit/glue/form_field.h" | 36 #include "webkit/glue/form_field.h" |
| 37 #include "webkit/glue/webcursor.h" |
36 | 38 |
37 #if defined(OS_POSIX) | 39 #if defined(OS_POSIX) |
38 #include "base/file_descriptor_posix.h" | 40 #include "base/file_descriptor_posix.h" |
39 #endif | 41 #endif |
40 | 42 |
41 #if defined(OS_MACOSX) | 43 #if defined(OS_MACOSX) |
42 #include "chrome/common/font_descriptor_mac.h" | 44 #include "chrome/common/font_descriptor_mac.h" |
43 #endif | 45 #endif |
44 | 46 |
45 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes | 47 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes |
46 // more sense with our current design. | 48 // more sense with our current design. |
47 | 49 |
48 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need | 50 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need |
49 // to typedef it to avoid that. | 51 // to typedef it to avoid that. |
50 // Substitution map for l10n messages. | 52 // Substitution map for l10n messages. |
51 typedef std::map<std::string, std::string> SubstitutionMap; | 53 typedef std::map<std::string, std::string> SubstitutionMap; |
52 | 54 |
53 struct ThumbnailScore; | |
54 class WebCursor; | |
55 | |
56 //----------------------------------------------------------------------------- | 55 //----------------------------------------------------------------------------- |
57 // RenderView messages | 56 // RenderView messages |
58 // These are messages sent from the browser to the renderer process. | 57 // These are messages sent from the browser to the renderer process. |
59 | 58 |
60 IPC_BEGIN_MESSAGES(View) | 59 IPC_BEGIN_MESSAGES(View) |
61 // Used typically when recovering from a crash. The new rendering process | 60 // Used typically when recovering from a crash. The new rendering process |
62 // sets its global "next page id" counter to the given value. | 61 // sets its global "next page id" counter to the given value. |
63 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID, | 62 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID, |
64 int32 /* next_page_id */) | 63 int32 /* next_page_id */) |
65 | 64 |
(...skipping 2511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2577 int /* render_view_id */) | 2576 int /* render_view_id */) |
2578 | 2577 |
2579 // Requests the speech input service to stop audio recording on behalf of | 2578 // Requests the speech input service to stop audio recording on behalf of |
2580 // the given |render_view_id|. Any audio recorded so far will be fed to the | 2579 // the given |render_view_id|. Any audio recorded so far will be fed to the |
2581 // speech recognizer. If speech recognition is not happening nor or is | 2580 // speech recognizer. If speech recognition is not happening nor or is |
2582 // happening on behalf of some other render view, this call does nothing. | 2581 // happening on behalf of some other render view, this call does nothing. |
2583 IPC_MESSAGE_CONTROL1(ViewHostMsg_SpeechInput_StopRecording, | 2582 IPC_MESSAGE_CONTROL1(ViewHostMsg_SpeechInput_StopRecording, |
2584 int /* render_view_id */) | 2583 int /* render_view_id */) |
2585 | 2584 |
2586 IPC_END_MESSAGES(ViewHost) | 2585 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |