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

Side by Side Diff: content/common/fileapi/webblob_messages.h

Issue 15817013: Add Stream support to WebBlobRegistry and FileAPIMessageFilter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve Created 7 years, 5 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 HTML5 Blob. 5 // IPC messages for HTML5 Blob.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/public/common/common_param_traits.h" 9 #include "content/public/common/common_param_traits.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
11 #include "webkit/common/blob/blob_data.h" 11 #include "webkit/common/blob/blob_data.h"
12 12
13 #undef IPC_MESSAGE_EXPORT 13 #undef IPC_MESSAGE_EXPORT
14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
15 #define IPC_MESSAGE_START BlobMsgStart 15 #define IPC_MESSAGE_START BlobMsgStart
16 16
17 // Blob messages sent from the renderer to the browser. 17 // Blob messages sent from the renderer to the browser.
18 18
19 // Registers a blob as being built. 19 // Registers a blob as being built.
20 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuildingBlob, 20 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuildingBlob,
21 GURL /* url */) 21 GURL /* url */)
22 22
23 // Appends data to a blob being built. 23 // Registers a stream as being built.
24 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem, 24 IPC_MESSAGE_CONTROL2(BlobHostMsg_StartBuildingStream,
25 GURL /* url */,
26 std::string /* content_type */)
27
28 // Appends data to a blob or stream being built.
29 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItemToBlobOrStream,
25 GURL /* url */, 30 GURL /* url */,
26 webkit_blob::BlobData::Item) 31 webkit_blob::BlobData::Item)
27 32
28 // Appends data to a blob being built. 33 // Appends data to a blob or stream being built.
29 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_SyncAppendSharedMemory, 34 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_SyncAppendSharedMemoryToBlobOrStream,
30 GURL /* url */, 35 GURL /* url */,
31 base::SharedMemoryHandle, 36 base::SharedMemoryHandle,
32 size_t /* buffer size */) 37 size_t /* buffer size */)
33 38
34 // Finishes building a blob. 39 // Finishes building a blob.
35 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuildingBlob, 40 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuildingBlob,
36 GURL /* url */, 41 GURL /* url */,
37 std::string /* content_type */) 42 std::string /* content_type */)
38 43
39 // Creates a new blob that's a clone of an existing src blob. 44 // Finishes building a stream.
40 // The source blob must be fully built. 45 IPC_MESSAGE_CONTROL1(BlobHostMsg_FinishBuildingStream,
41 IPC_MESSAGE_CONTROL2(BlobHostMsg_CloneBlob, 46 GURL /* url */)
47
48 // Creates a new blob or stream that's a clone of an existing src blob or
49 // stream. The source blob or stream must be fully built.
50 IPC_MESSAGE_CONTROL2(BlobHostMsg_CloneBlobOrStream,
42 GURL /* url */, 51 GURL /* url */,
43 GURL /* src_url */) 52 GURL /* src_url */)
44 53
45 // Removes a blob. 54 // Removes a blob or stream.
46 IPC_MESSAGE_CONTROL1(BlobHostMsg_RemoveBlob, 55 IPC_MESSAGE_CONTROL1(BlobHostMsg_RemoveBlobOrStream,
47 GURL /* url */) 56 GURL /* url */)
OLDNEW
« content/child/webblobregistry_impl.cc ('K') | « content/child/webblobregistry_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698