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