summaryrefslogtreecommitdiffstats
path: root/content/common
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-05 17:11:11 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-05 17:11:11 +0000
commitf3cd7ed06b2f519c2cfedba22d0becb90cba1f81 (patch)
tree6703d7772a378b120f0e87e6732e8b9b482d62f6 /content/common
parent03385581888c87d940e2b66a4d0ee56f173f65e3 (diff)
downloadchromium_src-f3cd7ed06b2f519c2cfedba22d0becb90cba1f81.zip
chromium_src-f3cd7ed06b2f519c2cfedba22d0becb90cba1f81.tar.gz
chromium_src-f3cd7ed06b2f519c2cfedba22d0becb90cba1f81.tar.bz2
Revert 232547 "Pepper: Move FileIO host from renderer to browser."
This change is being reverted due to some problems seen in integration testing. See http://crbug.com/314884 for test failure details. > Pepper: Move FileIO host from renderer to browser. > > This change is large because it moves QuotaFileIO and PepperFileIOHost all at > once to the browser process. Some code in the refactored PepperFileIOHost is > moved from what's provided in FileAPIMessageFilter. > > Tested locally with Bastion, From Dust, and Angry Bots. > > TBR=jschuh > BUG=246396 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232440 > > Review URL: https://codereview.chromium.org/33053002 TBR=teravest@chromium.org BUG=246396,314884 Review URL: https://codereview.chromium.org/60323002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common')
-rw-r--r--content/common/fileapi/file_system_messages.h18
-rw-r--r--content/common/view_messages.h12
2 files changed, 30 insertions, 0 deletions
diff --git a/content/common/fileapi/file_system_messages.h b/content/common/fileapi/file_system_messages.h
index 727c6de..e0af3a0 100644
--- a/content/common/fileapi/file_system_messages.h
+++ b/content/common/fileapi/file_system_messages.h
@@ -164,6 +164,16 @@ IPC_MESSAGE_CONTROL2(FileSystemHostMsg_CancelWrite,
int /* request id */,
int /* id of request to cancel */)
+// Pepper's OpenFile message.
+IPC_MESSAGE_CONTROL3(FileSystemHostMsg_OpenPepperFile,
+ int /* request id */,
+ GURL /* file path */,
+ int /* pp_open_flags */)
+
+// Pepper's NotifyCloseFile message.
+IPC_MESSAGE_CONTROL1(FileSystemHostMsg_NotifyCloseFile,
+ int /* file_open_id */)
+
// WebFileSystem::createSnapshotFileAndReadMetadata() message.
IPC_MESSAGE_CONTROL2(FileSystemHostMsg_CreateSnapshotFile,
int /* request_id */,
@@ -179,3 +189,11 @@ IPC_MESSAGE_CONTROL1(FileSystemHostMsg_DidReceiveSnapshotFile,
IPC_SYNC_MESSAGE_CONTROL1_1(FileSystemHostMsg_SyncGetPlatformPath,
GURL /* file path */,
base::FilePath /* platform_path */)
+
+// Pre- and post-update notifications for ppapi implementation.
+IPC_MESSAGE_CONTROL1(FileSystemHostMsg_WillUpdate,
+ GURL /* file_path */)
+
+IPC_MESSAGE_CONTROL2(FileSystemHostMsg_DidUpdate,
+ GURL /* file_path */,
+ int64 /* delta */)
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 4f6c165..356d33f 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -1231,6 +1231,11 @@ IPC_MESSAGE_ROUTED1(ViewMsg_SetActive,
// Sent when the worker has started.
IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated)
+// The response to ViewHostMsg_AsyncOpenPepperFile.
+IPC_MESSAGE_ROUTED2(ViewMsg_AsyncOpenPepperFile_ACK,
+ base::PlatformFileError /* error_code */,
+ IPC::PlatformFileForTransit /* file descriptor */)
+
// Tells the renderer that the network state has changed and that
// window.navigator.onLine should be updated for all WebViews.
IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged,
@@ -1925,6 +1930,13 @@ IPC_MESSAGE_CONTROL2(ViewHostMsg_OpenChannelToPpapiBroker,
int /* routing_id */,
base::FilePath /* path */)
+// Opens a Pepper file asynchronously. The response returns a file descriptor
+// and an error code from base/platform_file.h.
+IPC_MESSAGE_CONTROL3(ViewHostMsg_AsyncOpenPepperFile,
+ int /* routing_id */,
+ base::FilePath /* file path */,
+ int /* pp_open_flags */)
+
// A renderer sends this to the browser process when it wants to access a PPAPI
// broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called
// for every connection.