Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: content/common/view_messages.h

Issue 1306423004: [NetInfo] Browser changes to support connection.downlinkMax (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 // Instructs the browser to start plugin IME. 1432 // Instructs the browser to start plugin IME.
1432 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) 1433 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme)
1433 1434
1434 // Receives content of a web page as plain text. 1435 // Receives content of a web page as plain text.
1435 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); 1436 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string);
1436 #endif 1437 #endif
1437 1438
1438 // Adding a new message? Stick to the sort order above: first platform 1439 // Adding a new message? Stick to the sort order above: first platform
1439 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1440 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1440 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1441 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698