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

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

Issue 33053002: Pepper: Move FileIO host from renderer to browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 1 month 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
« no previous file with comments | « content/common/fileapi/file_system_messages.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 1229
1230 // Activate/deactivate the RenderView (i.e., set its controls' tint 1230 // Activate/deactivate the RenderView (i.e., set its controls' tint
1231 // accordingly, etc.). 1231 // accordingly, etc.).
1232 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive, 1232 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive,
1233 bool /* active */) 1233 bool /* active */)
1234 1234
1235 // Response message to ViewHostMsg_CreateShared/DedicatedWorker. 1235 // Response message to ViewHostMsg_CreateShared/DedicatedWorker.
1236 // Sent when the worker has started. 1236 // Sent when the worker has started.
1237 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated) 1237 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated)
1238 1238
1239 // The response to ViewHostMsg_AsyncOpenPepperFile.
1240 IPC_MESSAGE_ROUTED2(ViewMsg_AsyncOpenPepperFile_ACK,
1241 base::PlatformFileError /* error_code */,
1242 IPC::PlatformFileForTransit /* file descriptor */)
1243
1244 // Tells the renderer that the network state has changed and that 1239 // Tells the renderer that the network state has changed and that
1245 // window.navigator.onLine should be updated for all WebViews. 1240 // window.navigator.onLine should be updated for all WebViews.
1246 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, 1241 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged,
1247 bool /* online */) 1242 bool /* online */)
1248 1243
1249 // Reply to ViewHostMsg_OpenChannelToPpapiBroker 1244 // Reply to ViewHostMsg_OpenChannelToPpapiBroker
1250 // Tells the renderer that the channel to the broker has been created. 1245 // Tells the renderer that the channel to the broker has been created.
1251 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, 1246 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated,
1252 base::ProcessId /* broker_pid */, 1247 base::ProcessId /* broker_pid */,
1253 IPC::ChannelHandle /* handle */) 1248 IPC::ChannelHandle /* handle */)
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
1937 1932
1938 // A renderer sends this to the browser process when it wants to 1933 // A renderer sends this to the browser process when it wants to
1939 // create a ppapi broker. The browser will create the broker process 1934 // create a ppapi broker. The browser will create the broker process
1940 // if necessary, and will return a handle to the channel on success. 1935 // if necessary, and will return a handle to the channel on success.
1941 // On error an empty string is returned. 1936 // On error an empty string is returned.
1942 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. 1937 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated.
1943 IPC_MESSAGE_CONTROL2(ViewHostMsg_OpenChannelToPpapiBroker, 1938 IPC_MESSAGE_CONTROL2(ViewHostMsg_OpenChannelToPpapiBroker,
1944 int /* routing_id */, 1939 int /* routing_id */,
1945 base::FilePath /* path */) 1940 base::FilePath /* path */)
1946 1941
1947 // Opens a Pepper file asynchronously. The response returns a file descriptor
1948 // and an error code from base/platform_file.h.
1949 IPC_MESSAGE_CONTROL3(ViewHostMsg_AsyncOpenPepperFile,
1950 int /* routing_id */,
1951 base::FilePath /* file path */,
1952 int /* pp_open_flags */)
1953
1954 // A renderer sends this to the browser process when it wants to access a PPAPI 1942 // A renderer sends this to the browser process when it wants to access a PPAPI
1955 // broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called 1943 // broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called
1956 // for every connection. 1944 // for every connection.
1957 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult. 1945 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult.
1958 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission, 1946 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission,
1959 int /* routing_id */, 1947 int /* routing_id */,
1960 GURL /* document_url */, 1948 GURL /* document_url */,
1961 base::FilePath /* plugin_path */) 1949 base::FilePath /* plugin_path */)
1962 1950
1963 #if defined(USE_X11) 1951 #if defined(USE_X11)
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
2379 // synchronously (see crbug.com/120597). This IPC message sends the character 2367 // synchronously (see crbug.com/120597). This IPC message sends the character
2380 // bounds after every composition change to always have correct bound info. 2368 // bounds after every composition change to always have correct bound info.
2381 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 2369 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
2382 gfx::Range /* composition range */, 2370 gfx::Range /* composition range */,
2383 std::vector<gfx::Rect> /* character bounds */) 2371 std::vector<gfx::Rect> /* character bounds */)
2384 #endif 2372 #endif
2385 2373
2386 // Adding a new message? Stick to the sort order above: first platform 2374 // Adding a new message? Stick to the sort order above: first platform
2387 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2375 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2388 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2376 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/common/fileapi/file_system_messages.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698