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 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 // to load the script, when the renderer send ViewHostMsg_CreateWorker before | 838 // to load the script, when the renderer send ViewHostMsg_CreateWorker before |
839 // the shared worker is killed only ViewMsg_WorkerScriptLoadFailed is sent. | 839 // the shared worker is killed only ViewMsg_WorkerScriptLoadFailed is sent. |
840 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed) | 840 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed) |
841 | 841 |
842 // Sent when the worker has connected. | 842 // Sent when the worker has connected. |
843 // This message is sent only if the worker successfully loaded the script. | 843 // This message is sent only if the worker successfully loaded the script. |
844 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected) | 844 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected) |
845 | 845 |
846 // Tells the renderer that the network type has changed so that navigator.onLine | 846 // Tells the renderer that the network type has changed so that navigator.onLine |
847 // and navigator.connection can be updated. | 847 // and navigator.connection can be updated. |
848 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkTypeChanged, | 848 IPC_MESSAGE_CONTROL2(ViewMsg_NetworkConnectionChanged, |
849 net::NetworkChangeNotifier::ConnectionType /* type */) | 849 net::NetworkChangeNotifier::ConnectionType /* type */, |
| 850 double /* max bandwidth mbps */) |
850 | 851 |
851 #if defined(ENABLE_PLUGINS) | 852 #if defined(ENABLE_PLUGINS) |
852 // Reply to ViewHostMsg_OpenChannelToPpapiBroker | 853 // Reply to ViewHostMsg_OpenChannelToPpapiBroker |
853 // Tells the renderer that the channel to the broker has been created. | 854 // Tells the renderer that the channel to the broker has been created. |
854 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, | 855 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, |
855 base::ProcessId /* broker_pid */, | 856 base::ProcessId /* broker_pid */, |
856 IPC::ChannelHandle /* handle */) | 857 IPC::ChannelHandle /* handle */) |
857 | 858 |
858 // Reply to ViewHostMsg_RequestPpapiBrokerPermission. | 859 // Reply to ViewHostMsg_RequestPpapiBrokerPermission. |
859 // Tells the renderer whether permission to access to PPAPI broker was granted | 860 // Tells the renderer whether permission to access to PPAPI broker was granted |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1427 // Instructs the browser to start plugin IME. | 1428 // Instructs the browser to start plugin IME. |
1428 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) | 1429 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
1429 | 1430 |
1430 // Receives content of a web page as plain text. | 1431 // Receives content of a web page as plain text. |
1431 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); | 1432 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); |
1432 #endif | 1433 #endif |
1433 | 1434 |
1434 // Adding a new message? Stick to the sort order above: first platform | 1435 // Adding a new message? Stick to the sort order above: first platform |
1435 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1436 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1436 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1437 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |