| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "base/process.h" | 8 #include "base/process.h" |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "content/public/common/javascript_message_type.h" | 24 #include "content/public/common/javascript_message_type.h" |
| 25 #include "content/public/common/page_zoom.h" | 25 #include "content/public/common/page_zoom.h" |
| 26 #include "content/public/common/referrer.h" | 26 #include "content/public/common/referrer.h" |
| 27 #include "content/public/common/renderer_preferences.h" | 27 #include "content/public/common/renderer_preferences.h" |
| 28 #include "content/public/common/stop_find_action.h" | 28 #include "content/public/common/stop_find_action.h" |
| 29 #include "content/public/common/three_d_api_types.h" | 29 #include "content/public/common/three_d_api_types.h" |
| 30 #include "content/public/common/window_container_type.h" | 30 #include "content/public/common/window_container_type.h" |
| 31 #include "ipc/ipc_channel_handle.h" | 31 #include "ipc/ipc_channel_handle.h" |
| 32 #include "ipc/ipc_message_macros.h" | 32 #include "ipc/ipc_message_macros.h" |
| 33 #include "ipc/ipc_platform_file.h" | 33 #include "ipc/ipc_platform_file.h" |
| 34 #include "media/base/audio_hardware_config.h" |
| 34 #include "media/base/channel_layout.h" | 35 #include "media/base/channel_layout.h" |
| 35 #include "media/base/media_log_event.h" | 36 #include "media/base/media_log_event.h" |
| 36 #include "third_party/skia/include/core/SkBitmap.h" | 37 #include "third_party/skia/include/core/SkBitmap.h" |
| 37 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" | 38 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" |
| 38 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h" | 39 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h" |
| 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" |
| 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
| 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" |
| 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" |
| (...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1408 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateFullscreenWidget, | 1409 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateFullscreenWidget, |
| 1409 int /* opener_id */, | 1410 int /* opener_id */, |
| 1410 int /* route_id */, | 1411 int /* route_id */, |
| 1411 int32 /* surface_id */) | 1412 int32 /* surface_id */) |
| 1412 | 1413 |
| 1413 // Asks the browser for a unique routing ID. | 1414 // Asks the browser for a unique routing ID. |
| 1414 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID, | 1415 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID, |
| 1415 int /* routing_id */) | 1416 int /* routing_id */) |
| 1416 | 1417 |
| 1417 // Asks the browser for the default audio hardware buffer-size. | 1418 // Asks the browser for the default audio hardware buffer-size. |
| 1418 IPC_SYNC_MESSAGE_CONTROL0_4(ViewHostMsg_GetAudioHardwareConfig, | 1419 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetAudioHardwareConfig, |
| 1419 int /* output_buffer_size */, | 1420 media::AudioHardwareConfig) |
| 1420 int /* output_sample_rate */, | |
| 1421 int /* input_sample_rate */, | |
| 1422 media::ChannelLayout /* input_channel_layout */) | |
| 1423 | 1421 |
| 1424 // Asks the browser for CPU usage of the renderer process in percents. | 1422 // Asks the browser for CPU usage of the renderer process in percents. |
| 1425 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPUUsage, | 1423 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPUUsage, |
| 1426 int /* CPU usage in percents */) | 1424 int /* CPU usage in percents */) |
| 1427 | 1425 |
| 1428 // Asks the browser for the user's monitor profile. | 1426 // Asks the browser for the user's monitor profile. |
| 1429 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetMonitorColorProfile, | 1427 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetMonitorColorProfile, |
| 1430 std::vector<char> /* profile */) | 1428 std::vector<char> /* profile */) |
| 1431 | 1429 |
| 1432 // Asks the browser for the renderer process memory size stats. | 1430 // Asks the browser for the renderer process memory size stats. |
| (...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2418 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 2416 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 2419 // for details. | 2417 // for details. |
| 2420 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 2418 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
| 2421 LOGFONT /* font_data */, | 2419 LOGFONT /* font_data */, |
| 2422 string16 /* characters */) | 2420 string16 /* characters */) |
| 2423 #endif | 2421 #endif |
| 2424 | 2422 |
| 2425 // Adding a new message? Stick to the sort order above: first platform | 2423 // Adding a new message? Stick to the sort order above: first platform |
| 2426 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2424 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 2427 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2425 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |