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

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

Issue 23223003: Chromium Blob hacking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 and Stream. 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.
20 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuilding, 19 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuilding,
21 GURL /* url */) 20 std::string /*uuid */)
22
23 // Appends data to a blob being built.
24 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem, 21 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem,
25 GURL /* url */, 22 std::string /* uuid */,
26 webkit_blob::BlobData::Item) 23 webkit_blob::BlobData::Item)
27
28 // Appends data to a blob being built.
29 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_SyncAppendSharedMemory, 24 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_SyncAppendSharedMemory,
30 GURL /* url */, 25 std::string /*uuid*/,
31 base::SharedMemoryHandle, 26 base::SharedMemoryHandle,
32 size_t /* buffer size */) 27 size_t /* buffer size */)
33
34 // Finishes building a blob.
35 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuilding, 28 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuilding,
36 GURL /* url */, 29 std::string /* uuid */,
37 std::string /* content_type */) 30 std::string /* content_type */)
38 31
39 // Creates a new blob that's a clone of an existing src blob. The source blob 32 IPC_MESSAGE_CONTROL1(BlobHostMsg_IncrementRefCount,
40 // must be fully built. 33 std::string /* uuid */)
41 IPC_MESSAGE_CONTROL2(BlobHostMsg_Clone, 34 IPC_MESSAGE_CONTROL1(BlobHostMsg_DecrementRefCount,
42 GURL /* url */, 35 std::string /* uuid */)
43 GURL /* src_url */) 36 IPC_MESSAGE_CONTROL2(BlobHostMsg_RegisterPublicURL,
37 GURL,
38 std::string /* uuid */)
39 IPC_MESSAGE_CONTROL1(BlobHostMsg_RevokePublicURL,
40 GURL)
44 41
45 // Removes a blob. 42 // Temporary support for mapping old style blobUrls to new style uuids.
46 IPC_MESSAGE_CONTROL1(BlobHostMsg_Remove, 43 IPC_MESSAGE_CONTROL2(BlobHostMsg_DeprecatedRegisterBlobURL,
47 GURL /* url */) 44 GURL,
45 std::string /* uuid */)
46 IPC_MESSAGE_CONTROL2(BlobHostMsg_DeprecatedCloneBlobURL,
47 GURL,
48 GURL)
49 IPC_MESSAGE_CONTROL1(BlobHostMsg_DeprecatedRevokeBlobURL,
50 GURL)
51
52
48 53
49 // Stream messages sent from the renderer to the browser. 54 // Stream messages sent from the renderer to the browser.
50 55
51 // Registers a stream as being built. 56 // Registers a stream as being built.
52 IPC_MESSAGE_CONTROL2(StreamHostMsg_StartBuilding, 57 IPC_MESSAGE_CONTROL2(StreamHostMsg_StartBuilding,
53 GURL /* url */, 58 GURL /* url */,
54 std::string /* content_type */) 59 std::string /* content_type */)
55 60
56 // Appends data to a stream being built. 61 // Appends data to a stream being built.
57 IPC_MESSAGE_CONTROL2(StreamHostMsg_AppendBlobDataItem, 62 IPC_MESSAGE_CONTROL2(StreamHostMsg_AppendBlobDataItem,
(...skipping 15 matching lines...) Expand all
73 GURL /* url */) 78 GURL /* url */)
74 79
75 // Creates a new stream that's a clone of an existing src stream. 80 // Creates a new stream that's a clone of an existing src stream.
76 IPC_MESSAGE_CONTROL2(StreamHostMsg_Clone, 81 IPC_MESSAGE_CONTROL2(StreamHostMsg_Clone,
77 GURL /* url */, 82 GURL /* url */,
78 GURL /* src_url */) 83 GURL /* src_url */)
79 84
80 // Removes a stream. 85 // Removes a stream.
81 IPC_MESSAGE_CONTROL1(StreamHostMsg_Remove, 86 IPC_MESSAGE_CONTROL1(StreamHostMsg_Remove,
82 GURL /* url */) 87 GURL /* url */)
OLDNEW
« no previous file with comments | « content/common/fileapi/file_system_messages.h ('k') | content/common/page_state_serialization.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698