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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "content/public/common/stop_find_action.h" | 29 #include "content/public/common/stop_find_action.h" |
30 #include "content/public/common/three_d_api_types.h" | 30 #include "content/public/common/three_d_api_types.h" |
31 #include "content/public/common/window_container_type.h" | 31 #include "content/public/common/window_container_type.h" |
32 #include "content/common/date_time_suggestion.h" | 32 #include "content/common/date_time_suggestion.h" |
33 #include "ipc/ipc_channel_handle.h" | 33 #include "ipc/ipc_channel_handle.h" |
34 #include "ipc/ipc_message_macros.h" | 34 #include "ipc/ipc_message_macros.h" |
35 #include "ipc/ipc_platform_file.h" | 35 #include "ipc/ipc_platform_file.h" |
36 #include "media/audio/audio_parameters.h" | 36 #include "media/audio/audio_parameters.h" |
37 #include "media/base/channel_layout.h" | 37 #include "media/base/channel_layout.h" |
38 #include "media/base/media_log_event.h" | 38 #include "media/base/media_log_event.h" |
| 39 #include "net/base/network_change_notifier.h" |
39 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 40 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
40 #include "third_party/WebKit/public/platform/WebFloatRect.h" | 41 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
41 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 42 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
42 #include "third_party/WebKit/public/web/WebFindOptions.h" | 43 #include "third_party/WebKit/public/web/WebFindOptions.h" |
43 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" | 44 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" |
44 #include "third_party/WebKit/public/web/WebPluginAction.h" | 45 #include "third_party/WebKit/public/web/WebPluginAction.h" |
45 #include "third_party/WebKit/public/web/WebPopupType.h" | 46 #include "third_party/WebKit/public/web/WebPopupType.h" |
46 #include "third_party/WebKit/public/web/WebTextDirection.h" | 47 #include "third_party/WebKit/public/web/WebTextDirection.h" |
47 #include "third_party/skia/include/core/SkBitmap.h" | 48 #include "third_party/skia/include/core/SkBitmap.h" |
48 #include "ui/base/ime/text_input_mode.h" | 49 #include "ui/base/ime/text_input_mode.h" |
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 // In normal cases, this message is sent after ViewMsg_WorkerCreated is sent. | 835 // In normal cases, this message is sent after ViewMsg_WorkerCreated is sent. |
835 // But if the shared worker of the same URL already exists and it has failed | 836 // But if the shared worker of the same URL already exists and it has failed |
836 // to load the script, when the renderer send ViewHostMsg_CreateWorker before | 837 // to load the script, when the renderer send ViewHostMsg_CreateWorker before |
837 // the shared worker is killed only ViewMsg_WorkerScriptLoadFailed is sent. | 838 // the shared worker is killed only ViewMsg_WorkerScriptLoadFailed is sent. |
838 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed) | 839 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed) |
839 | 840 |
840 // Sent when the worker has connected. | 841 // Sent when the worker has connected. |
841 // This message is sent only if the worker successfully loaded the script. | 842 // This message is sent only if the worker successfully loaded the script. |
842 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected) | 843 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected) |
843 | 844 |
844 // Tells the renderer that the network state has changed and that | 845 // Tells the renderer that the network state has changed so that |
845 // window.navigator.onLine should be updated for all WebViews. | 846 // navigator.onLine and navigator.connection can be updated. |
846 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, | 847 IPC_MESSAGE_CONTROL2(ViewMsg_NetworkStateChanged, |
847 bool /* online */) | 848 bool /* is_online */, |
| 849 net::NetworkChangeNotifier::ConnectionType /* type */) |
848 | 850 |
849 // Reply to ViewHostMsg_OpenChannelToPpapiBroker | 851 // Reply to ViewHostMsg_OpenChannelToPpapiBroker |
850 // Tells the renderer that the channel to the broker has been created. | 852 // Tells the renderer that the channel to the broker has been created. |
851 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, | 853 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, |
852 base::ProcessId /* broker_pid */, | 854 base::ProcessId /* broker_pid */, |
853 IPC::ChannelHandle /* handle */) | 855 IPC::ChannelHandle /* handle */) |
854 | 856 |
855 // Reply to ViewHostMsg_RequestPpapiBrokerPermission. | 857 // Reply to ViewHostMsg_RequestPpapiBrokerPermission. |
856 // Tells the renderer whether permission to access to PPAPI broker was granted | 858 // Tells the renderer whether permission to access to PPAPI broker was granted |
857 // or not. | 859 // or not. |
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1733 // synchronously (see crbug.com/120597). This IPC message sends the character | 1735 // synchronously (see crbug.com/120597). This IPC message sends the character |
1734 // bounds after every composition change to always have correct bound info. | 1736 // bounds after every composition change to always have correct bound info. |
1735 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1737 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
1736 gfx::Range /* composition range */, | 1738 gfx::Range /* composition range */, |
1737 std::vector<gfx::Rect> /* character bounds */) | 1739 std::vector<gfx::Rect> /* character bounds */) |
1738 #endif | 1740 #endif |
1739 | 1741 |
1740 // Adding a new message? Stick to the sort order above: first platform | 1742 // Adding a new message? Stick to the sort order above: first platform |
1741 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1743 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1742 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1744 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |