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

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

Issue 10827414: Factor out common Element struct from BlobData and ResourceRequestBody (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: webkit/common -> webkit/base Created 8 years, 4 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/public/common/common_param_traits.h" 8 #include "content/public/common/common_param_traits.h"
9 #include "content/public/common/webkit_param_traits.h" 9 #include "content/public/common/webkit_param_traits.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
11 11
12 #define IPC_MESSAGE_START BlobMsgStart 12 #define IPC_MESSAGE_START BlobMsgStart
13 13
14 IPC_ENUM_TRAITS(webkit_blob::BlobData::Type)
15
16 IPC_STRUCT_TRAITS_BEGIN(webkit_blob::BlobData::Item)
17 IPC_STRUCT_TRAITS_MEMBER(type)
18 IPC_STRUCT_TRAITS_MEMBER(data)
19 IPC_STRUCT_TRAITS_MEMBER(file_path)
20 IPC_STRUCT_TRAITS_MEMBER(blob_url)
21 IPC_STRUCT_TRAITS_MEMBER(offset)
22 IPC_STRUCT_TRAITS_MEMBER(length)
23 IPC_STRUCT_TRAITS_MEMBER(expected_modification_time)
24 IPC_STRUCT_TRAITS_END()
25
26 // Blob messages sent from the renderer to the browser. 14 // Blob messages sent from the renderer to the browser.
27 15
28
29 // Registers a blob as being built. 16 // Registers a blob as being built.
30 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuildingBlob, 17 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuildingBlob,
31 GURL /* url */) 18 GURL /* url */)
32 19
33 // Appends data to a blob being built. 20 // Appends data to a blob being built.
34 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem, 21 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem,
35 GURL /* url */, 22 GURL /* url */,
36 webkit_blob::BlobData::Item) 23 webkit_blob::BlobData::Item)
37 24
38 // Appends data to a blob being built. 25 // Appends data to a blob being built.
39 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_SyncAppendSharedMemory, 26 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_SyncAppendSharedMemory,
40 GURL /* url */, 27 GURL /* url */,
41 base::SharedMemoryHandle, 28 base::SharedMemoryHandle,
42 size_t /* buffer size */) 29 size_t /* buffer size */)
43 30
44 // Finishes building a blob. 31 // Finishes building a blob.
45 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuildingBlob, 32 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuildingBlob,
46 GURL /* url */, 33 GURL /* url */,
47 std::string /* content_type */) 34 std::string /* content_type */)
48 35
49 // Creates a new blob that's a clone of an existing src blob. 36 // Creates a new blob that's a clone of an existing src blob.
50 // The source blob must be fully built. 37 // The source blob must be fully built.
51 IPC_MESSAGE_CONTROL2(BlobHostMsg_CloneBlob, 38 IPC_MESSAGE_CONTROL2(BlobHostMsg_CloneBlob,
52 GURL /* url */, 39 GURL /* url */,
53 GURL /* src_url */) 40 GURL /* src_url */)
54 41
55 // Removes a blob. 42 // Removes a blob.
56 IPC_MESSAGE_CONTROL1(BlobHostMsg_RemoveBlob, 43 IPC_MESSAGE_CONTROL1(BlobHostMsg_RemoveBlob,
57 GURL /* url */) 44 GURL /* url */)
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host_impl.cc ('k') | content/common/fileapi/webblobregistry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698