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

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

Issue 810403004: [Storage] Blob Storage Refactoring pt 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed copyright Created 5 years, 11 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
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 "storage/common/blob/blob_data.h" 11 #include "storage/common/data_element.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 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuilding, 19 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuilding,
20 std::string /*uuid */) 20 std::string /*uuid */)
21 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem, 21 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem,
22 std::string /* uuid */, 22 std::string /* uuid */,
23 storage::BlobData::Item) 23 storage::DataElement)
24 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_SyncAppendSharedMemory, 24 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_SyncAppendSharedMemory,
25 std::string /*uuid*/, 25 std::string /*uuid*/,
26 base::SharedMemoryHandle, 26 base::SharedMemoryHandle,
27 size_t /* buffer size */) 27 size_t /* buffer size */)
28 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuilding, 28 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuilding,
29 std::string /* uuid */, 29 std::string /* uuid */,
30 std::string /* content_type */) 30 std::string /* content_type */)
31 31
32 IPC_MESSAGE_CONTROL1(BlobHostMsg_IncrementRefCount, 32 IPC_MESSAGE_CONTROL1(BlobHostMsg_IncrementRefCount,
33 std::string /* uuid */) 33 std::string /* uuid */)
34 IPC_MESSAGE_CONTROL1(BlobHostMsg_DecrementRefCount, 34 IPC_MESSAGE_CONTROL1(BlobHostMsg_DecrementRefCount,
35 std::string /* uuid */) 35 std::string /* uuid */)
36 IPC_MESSAGE_CONTROL2(BlobHostMsg_RegisterPublicURL, 36 IPC_MESSAGE_CONTROL2(BlobHostMsg_RegisterPublicURL,
37 GURL, 37 GURL,
38 std::string /* uuid */) 38 std::string /* uuid */)
39 IPC_MESSAGE_CONTROL1(BlobHostMsg_RevokePublicURL, 39 IPC_MESSAGE_CONTROL1(BlobHostMsg_RevokePublicURL,
40 GURL) 40 GURL)
41 41
42 // Stream messages sent from the renderer to the browser. 42 // Stream messages sent from the renderer to the browser.
43 43
44 // Registers a stream as being built. 44 // Registers a stream as being built.
45 IPC_MESSAGE_CONTROL2(StreamHostMsg_StartBuilding, 45 IPC_MESSAGE_CONTROL2(StreamHostMsg_StartBuilding,
46 GURL /* url */, 46 GURL /* url */,
47 std::string /* content_type */) 47 std::string /* content_type */)
48 48
49 // Appends data to a stream being built. 49 // Appends data to a stream being built.
50 IPC_MESSAGE_CONTROL2(StreamHostMsg_AppendBlobDataItem, 50 IPC_MESSAGE_CONTROL2(StreamHostMsg_AppendBlobDataItem,
51 GURL /* url */, 51 GURL /* url */,
52 storage::BlobData::Item) 52 storage::DataElement)
53 53
54 // Appends data to a stream being built. 54 // Appends data to a stream being built.
55 IPC_SYNC_MESSAGE_CONTROL3_0(StreamHostMsg_SyncAppendSharedMemory, 55 IPC_SYNC_MESSAGE_CONTROL3_0(StreamHostMsg_SyncAppendSharedMemory,
56 GURL /* url */, 56 GURL /* url */,
57 base::SharedMemoryHandle, 57 base::SharedMemoryHandle,
58 size_t /* buffer size */) 58 size_t /* buffer size */)
59 59
60 // Flushes contents buffered in the stream. 60 // Flushes contents buffered in the stream.
61 IPC_MESSAGE_CONTROL1(StreamHostMsg_Flush, 61 IPC_MESSAGE_CONTROL1(StreamHostMsg_Flush,
62 GURL /* url */) 62 GURL /* url */)
63 63
64 // Finishes building a stream. 64 // Finishes building a stream.
65 IPC_MESSAGE_CONTROL1(StreamHostMsg_FinishBuilding, 65 IPC_MESSAGE_CONTROL1(StreamHostMsg_FinishBuilding,
66 GURL /* url */) 66 GURL /* url */)
67 67
68 // Aborts building a stream. 68 // Aborts building a stream.
69 IPC_MESSAGE_CONTROL1(StreamHostMsg_AbortBuilding, 69 IPC_MESSAGE_CONTROL1(StreamHostMsg_AbortBuilding,
70 GURL /* url */) 70 GURL /* url */)
71 71
72 // Creates a new stream that's a clone of an existing src stream. 72 // Creates a new stream that's a clone of an existing src stream.
73 IPC_MESSAGE_CONTROL2(StreamHostMsg_Clone, 73 IPC_MESSAGE_CONTROL2(StreamHostMsg_Clone,
74 GURL /* url */, 74 GURL /* url */,
75 GURL /* src_url */) 75 GURL /* src_url */)
76 76
77 // Removes a stream. 77 // Removes a stream.
78 IPC_MESSAGE_CONTROL1(StreamHostMsg_Remove, 78 IPC_MESSAGE_CONTROL1(StreamHostMsg_Remove,
79 GURL /* url */) 79 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698