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

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

Issue 22300003: Move broker creation out of PepperHelperImpl to PPB_Broker_Impl in the effort to eliminate PepperHe… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
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 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 IPC::PlatformFileForTransit /* file descriptor */, 1207 IPC::PlatformFileForTransit /* file descriptor */,
1208 int /* message_id */) 1208 int /* message_id */)
1209 1209
1210 // Tells the renderer that the network state has changed and that 1210 // Tells the renderer that the network state has changed and that
1211 // window.navigator.onLine should be updated for all WebViews. 1211 // window.navigator.onLine should be updated for all WebViews.
1212 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, 1212 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged,
1213 bool /* online */) 1213 bool /* online */)
1214 1214
1215 // Reply to ViewHostMsg_OpenChannelToPpapiBroker 1215 // Reply to ViewHostMsg_OpenChannelToPpapiBroker
1216 // Tells the renderer that the channel to the broker has been created. 1216 // Tells the renderer that the channel to the broker has been created.
1217 IPC_MESSAGE_ROUTED3(ViewMsg_PpapiBrokerChannelCreated, 1217 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated,
1218 int /* request_id */,
1219 base::ProcessId /* broker_pid */, 1218 base::ProcessId /* broker_pid */,
1220 IPC::ChannelHandle /* handle */) 1219 IPC::ChannelHandle /* handle */)
1221 1220
1222 // Reply to ViewHostMsg_RequestPpapiBrokerPermission. 1221 // Reply to ViewHostMsg_RequestPpapiBrokerPermission.
1223 // Tells the renderer whether permission to access to PPAPI broker was granted 1222 // Tells the renderer whether permission to access to PPAPI broker was granted
1224 // or not. 1223 // or not.
1225 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerPermissionResult, 1224 IPC_MESSAGE_ROUTED1(ViewMsg_PpapiBrokerPermissionResult,
1226 int /* request_id */,
1227 bool /* result */) 1225 bool /* result */)
1228 1226
1229 // Tells the renderer to empty its plugin list cache, optional reloading 1227 // Tells the renderer to empty its plugin list cache, optional reloading
1230 // pages containing plugins. 1228 // pages containing plugins.
1231 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, 1229 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache,
1232 bool /* reload_pages */) 1230 bool /* reload_pages */)
1233 1231
1234 // Sent to the renderer when a popup window should no longer count against 1232 // Sent to the renderer when a popup window should no longer count against
1235 // the current popup count (either because it's not a popup or because it was 1233 // the current popup count (either because it's not a popup or because it was
1236 // a generated by a user action). 1234 // a generated by a user action).
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
1898 // Message from the renderer to the browser indicating the in-process instance 1896 // Message from the renderer to the browser indicating the in-process instance
1899 // has been destroyed. 1897 // has been destroyed.
1900 IPC_MESSAGE_CONTROL1(ViewHostMsg_DidDeleteInProcessInstance, 1898 IPC_MESSAGE_CONTROL1(ViewHostMsg_DidDeleteInProcessInstance,
1901 int32 /* instance */) 1899 int32 /* instance */)
1902 1900
1903 // A renderer sends this to the browser process when it wants to 1901 // A renderer sends this to the browser process when it wants to
1904 // create a ppapi broker. The browser will create the broker process 1902 // create a ppapi broker. The browser will create the broker process
1905 // if necessary, and will return a handle to the channel on success. 1903 // if necessary, and will return a handle to the channel on success.
1906 // On error an empty string is returned. 1904 // On error an empty string is returned.
1907 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. 1905 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated.
1908 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, 1906 IPC_MESSAGE_CONTROL2(ViewHostMsg_OpenChannelToPpapiBroker,
1909 int /* routing_id */, 1907 int /* routing_id */,
1910 int /* request_id */,
1911 base::FilePath /* path */) 1908 base::FilePath /* path */)
1912 1909
1913 // Opens a Pepper file asynchronously. The response returns a file descriptor 1910 // Opens a Pepper file asynchronously. The response returns a file descriptor
1914 // and an error code from base/platform_file.h. 1911 // and an error code from base/platform_file.h.
1915 IPC_MESSAGE_CONTROL4(ViewHostMsg_AsyncOpenPepperFile, 1912 IPC_MESSAGE_CONTROL4(ViewHostMsg_AsyncOpenPepperFile,
1916 int /* routing_id */, 1913 int /* routing_id */,
1917 base::FilePath /* file path */, 1914 base::FilePath /* file path */,
1918 int /* pp_open_flags */, 1915 int /* pp_open_flags */,
1919 int /* message_id */) 1916 int /* message_id */)
1920 1917
1921 // A renderer sends this to the browser process when it wants to access a PPAPI 1918 // A renderer sends this to the browser process when it wants to access a PPAPI
1922 // broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called 1919 // broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called
1923 // for every connection. 1920 // for every connection.
1924 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult. 1921 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult.
1925 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission, 1922 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission,
1926 int /* request_id */, 1923 int /* routing_id */,
1927 GURL /* document_url */, 1924 GURL /* document_url */,
1928 base::FilePath /* plugin_path */) 1925 base::FilePath /* plugin_path */)
1929 1926
1930 #if defined(USE_X11) 1927 #if defined(USE_X11)
1931 // A renderer sends this when it needs a browser-side widget for 1928 // A renderer sends this when it needs a browser-side widget for
1932 // hosting a windowed plugin. id is the XID of the plugin window, for which 1929 // hosting a windowed plugin. id is the XID of the plugin window, for which
1933 // the container is created. 1930 // the container is created.
1934 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer, 1931 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer,
1935 gfx::PluginWindowHandle /* id */) 1932 gfx::PluginWindowHandle /* id */)
1936 1933
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
2364 // synchronously (see crbug.com/120597). This IPC message sends the character 2361 // synchronously (see crbug.com/120597). This IPC message sends the character
2365 // bounds after every composition change to always have correct bound info. 2362 // bounds after every composition change to always have correct bound info.
2366 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 2363 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
2367 ui::Range /* composition range */, 2364 ui::Range /* composition range */,
2368 std::vector<gfx::Rect> /* character bounds */) 2365 std::vector<gfx::Rect> /* character bounds */)
2369 #endif 2366 #endif
2370 2367
2371 // Adding a new message? Stick to the sort order above: first platform 2368 // Adding a new message? Stick to the sort order above: first platform
2372 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2369 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2373 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2370 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698