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

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: 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 and Stream.
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_StartBuilding,
21 GURL /* url */) 21 GURL /* url */)
22 22
23 // Appends data to a blob being built. 23 // Appends data to a blob being built.
24 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem, 24 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem,
25 GURL /* url */, 25 GURL /* url */,
26 webkit_blob::BlobData::Item) 26 webkit_blob::BlobData::Item)
27 27
28 // Appends data to a blob being built. 28 // Appends data to a blob being built.
29 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_SyncAppendSharedMemory, 29 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_SyncAppendSharedMemory,
30 GURL /* url */, 30 GURL /* url */,
31 base::SharedMemoryHandle, 31 base::SharedMemoryHandle,
32 size_t /* buffer size */) 32 size_t /* buffer size */)
33 33
34 // Finishes building a blob. 34 // Finishes building a blob.
35 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuildingBlob, 35 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuilding,
36 GURL /* url */, 36 GURL /* url */,
37 std::string /* content_type */) 37 std::string /* content_type */)
38 38
39 // Creates a new blob that's a clone of an existing src blob. 39 // Creates a new blob that's a clone of an existing src blob. The source blob
40 // The source blob must be fully built. 40 // must be fully built.
41 IPC_MESSAGE_CONTROL2(BlobHostMsg_CloneBlob, 41 IPC_MESSAGE_CONTROL2(BlobHostMsg_Clone,
42 GURL /* url */, 42 GURL /* url */,
43 GURL /* src_url */) 43 GURL /* src_url */)
44 44
45 // Removes a blob. 45 // Removes a blob.
46 IPC_MESSAGE_CONTROL1(BlobHostMsg_RemoveBlob, 46 IPC_MESSAGE_CONTROL1(BlobHostMsg_Remove,
47 GURL /* url */) 47 GURL /* url */)
48
49 // Stream messages sent from the renderer to the browser.
50
51 // Registers a stream as being built.
52 IPC_MESSAGE_CONTROL2(StreamHostMsg_StartBuilding,
53 GURL /* url */,
54 std::string /* content_type */)
55
56 // Appends data to a stream being built.
57 IPC_MESSAGE_CONTROL2(StreamHostMsg_AppendBlobDataItem,
58 GURL /* url */,
59 webkit_blob::BlobData::Item)
60
61 // Appends data to a stream being built.
62 IPC_SYNC_MESSAGE_CONTROL3_0(StreamHostMsg_SyncAppendSharedMemory,
63 GURL /* url */,
64 base::SharedMemoryHandle,
65 size_t /* buffer size */)
66
67 // Finishes building a stream.
68 IPC_MESSAGE_CONTROL1(StreamHostMsg_FinishBuilding,
69 GURL /* url */)
70
71 // Creates a new stream that's a clone of an existing src stream.
72 IPC_MESSAGE_CONTROL2(StreamHostMsg_Clone,
73 GURL /* url */,
74 GURL /* src_url */)
75
76 // Removes a stream.
77 IPC_MESSAGE_CONTROL1(StreamHostMsg_Remove,
78 GURL /* url */)
OLDNEW
« content/child/webblobregistry_impl.h ('K') | « content/child/webblobregistry_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698