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

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

Issue 2055053003: [BlobAsync] Disk support for blob storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes, working w/ Layout tests Created 4 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
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 30 matching lines...) Expand all
41 IPC_STRUCT_TRAITS_MEMBER(handle_index) 41 IPC_STRUCT_TRAITS_MEMBER(handle_index)
42 IPC_STRUCT_TRAITS_MEMBER(handle_offset) 42 IPC_STRUCT_TRAITS_MEMBER(handle_offset)
43 IPC_STRUCT_TRAITS_END() 43 IPC_STRUCT_TRAITS_END()
44 44
45 IPC_STRUCT_TRAITS_BEGIN(storage::BlobItemBytesResponse) 45 IPC_STRUCT_TRAITS_BEGIN(storage::BlobItemBytesResponse)
46 IPC_STRUCT_TRAITS_MEMBER(request_number) 46 IPC_STRUCT_TRAITS_MEMBER(request_number)
47 IPC_STRUCT_TRAITS_MEMBER(inline_data) 47 IPC_STRUCT_TRAITS_MEMBER(inline_data)
48 IPC_STRUCT_TRAITS_MEMBER(time_file_modified) 48 IPC_STRUCT_TRAITS_MEMBER(time_file_modified)
49 IPC_STRUCT_TRAITS_END() 49 IPC_STRUCT_TRAITS_END()
50 50
51 // This message is to tell the browser that we will be building a blob. 51 // This message is to tell the browser that we will be building a blob. The
52 IPC_MESSAGE_CONTROL4(BlobStorageMsg_RegisterBlobUUID, 52 // DataElements are used to:
53 std::string /* uuid */,
54 std::string /* content_type */,
55 std::string /* content_disposition */,
56 std::set<std::string> /* referenced_blob_uuids */)
57
58 // The DataElements are used to:
59 // * describe & transport non-memory resources (blobs, files, etc) 53 // * describe & transport non-memory resources (blobs, files, etc)
60 // * describe the size of memory items 54 // * describe the size of memory items
61 // * 'shortcut' transport the memory up to the IPC limit so the browser can use 55 // * 'shortcut' transport the memory up to the IPC limit so the browser can use
62 // it if it's not currently full. 56 // it if it's not currently full.
63 // See https://bit.ly/BlobStorageRefactor 57 // See https://bit.ly/BlobStorageRefactor
64 IPC_MESSAGE_CONTROL2(BlobStorageMsg_StartBuildingBlob, 58 IPC_MESSAGE_CONTROL4(BlobStorageMsg_RegisterBlob,
65 std::string /* uuid */, 59 std::string /* uuid */,
60 std::string /* content_type */,
61 std::string /* content_disposition */,
66 std::vector<storage::DataElement> /* item_descriptions */) 62 std::vector<storage::DataElement> /* item_descriptions */)
67 63
68 IPC_MESSAGE_CONTROL4( 64 IPC_MESSAGE_CONTROL4(
69 BlobStorageMsg_RequestMemoryItem, 65 BlobStorageMsg_RequestMemoryItem,
70 std::string /* uuid */, 66 std::string /* uuid */,
71 std::vector<storage::BlobItemBytesRequest> /* requests */, 67 std::vector<storage::BlobItemBytesRequest> /* requests */,
72 std::vector<base::SharedMemoryHandle> /* memory_handles */, 68 std::vector<base::SharedMemoryHandle> /* memory_handles */,
73 std::vector<IPC::PlatformFileForTransit> /* file_handles */) 69 std::vector<IPC::PlatformFileForTransit> /* file_handles */)
74 70
75 IPC_MESSAGE_CONTROL2( 71 IPC_MESSAGE_CONTROL2(
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 GURL /* url */) 120 GURL /* url */)
125 121
126 // Creates a new stream that's a clone of an existing src stream. 122 // Creates a new stream that's a clone of an existing src stream.
127 IPC_MESSAGE_CONTROL2(StreamHostMsg_Clone, 123 IPC_MESSAGE_CONTROL2(StreamHostMsg_Clone,
128 GURL /* url */, 124 GURL /* url */,
129 GURL /* src_url */) 125 GURL /* src_url */)
130 126
131 // Removes a stream. 127 // Removes a stream.
132 IPC_MESSAGE_CONTROL1(StreamHostMsg_Remove, 128 IPC_MESSAGE_CONTROL1(StreamHostMsg_Remove,
133 GURL /* url */) 129 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698