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

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

Issue 298803006: NetInfo V3 support for browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comment in network_change_notifier Created 6 years, 6 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 18 matching lines...) Expand all
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
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 navigator.connection can be updated.
Tom Sepez 2014/05/28 17:40:16 nit: Did you intend to replace navigator.onLine wi
jkarlin 2014/05/28 18:00:46 Thanks, forgot 'and'.
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 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
1736 // synchronously (see crbug.com/120597). This IPC message sends the character 1738 // synchronously (see crbug.com/120597). This IPC message sends the character
1737 // bounds after every composition change to always have correct bound info. 1739 // bounds after every composition change to always have correct bound info.
1738 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 1740 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
1739 gfx::Range /* composition range */, 1741 gfx::Range /* composition range */,
1740 std::vector<gfx::Rect> /* character bounds */) 1742 std::vector<gfx::Rect> /* character bounds */)
1741 #endif 1743 #endif
1742 1744
1743 // Adding a new message? Stick to the sort order above: first platform 1745 // Adding a new message? Stick to the sort order above: first platform
1744 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1746 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1745 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1747 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698