OLD | NEW |
| (Empty) |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Multiply-included message file, no include guard. | |
6 | |
7 #include "ipc/ipc_message_macros.h" | |
8 #include "ipc/ipc_param_traits.h" | |
9 #include "ipc/ipc_platform_file.h" | |
10 | |
11 #define IPC_MESSAGE_START DatabaseMsgStart | |
12 | |
13 // Database messages sent from the browser to the renderer. | |
14 | |
15 // Notifies the child process of the new database size | |
16 IPC_MESSAGE_CONTROL4(DatabaseMsg_UpdateSize, | |
17 string16 /* the origin */, | |
18 string16 /* the database name */, | |
19 int64 /* the new database size */, | |
20 int64 /* space available to origin */) | |
21 | |
22 // Asks the child process to close a database immediately | |
23 IPC_MESSAGE_CONTROL2(DatabaseMsg_CloseImmediately, | |
24 string16 /* the origin */, | |
25 string16 /* the database name */) | |
26 | |
27 // Database messages sent from the renderer to the browser. | |
28 | |
29 // Sent by the renderer process to check whether access to web databases is | |
30 // granted by content settings. This may block and trigger a cookie prompt. | |
31 IPC_SYNC_MESSAGE_ROUTED4_1(DatabaseHostMsg_Allow, | |
32 std::string /* origin_url */, | |
33 string16 /* database name */, | |
34 string16 /* database display name */, | |
35 unsigned long /* estimated size */, | |
36 bool /* result */) | |
37 | |
38 // Asks the browser process to open a DB file with the given name. | |
39 IPC_SYNC_MESSAGE_CONTROL2_1(DatabaseHostMsg_OpenFile, | |
40 string16 /* vfs file name */, | |
41 int /* desired flags */, | |
42 IPC::PlatformFileForTransit /* file_handle */) | |
43 | |
44 // Asks the browser process to delete a DB file | |
45 IPC_SYNC_MESSAGE_CONTROL2_1(DatabaseHostMsg_DeleteFile, | |
46 string16 /* vfs file name */, | |
47 bool /* whether or not to sync the directory */, | |
48 int /* SQLite error code */) | |
49 | |
50 // Asks the browser process to return the attributes of a DB file | |
51 IPC_SYNC_MESSAGE_CONTROL1_1(DatabaseHostMsg_GetFileAttributes, | |
52 string16 /* vfs file name */, | |
53 int32 /* the attributes for the given DB file */) | |
54 | |
55 // Asks the browser process to return the size of a DB file | |
56 IPC_SYNC_MESSAGE_CONTROL1_1(DatabaseHostMsg_GetFileSize, | |
57 string16 /* vfs file name */, | |
58 int64 /* the size of the given DB file */) | |
59 | |
60 // Notifies the browser process that a new database has been opened | |
61 IPC_MESSAGE_CONTROL4(DatabaseHostMsg_Opened, | |
62 string16 /* origin identifier */, | |
63 string16 /* database name */, | |
64 string16 /* database description */, | |
65 int64 /* estimated size */) | |
66 | |
67 // Notifies the browser process that a database might have been modified | |
68 IPC_MESSAGE_CONTROL2(DatabaseHostMsg_Modified, | |
69 string16 /* origin identifier */, | |
70 string16 /* database name */) | |
71 | |
72 // Notifies the browser process that a database is about to close | |
73 IPC_MESSAGE_CONTROL2(DatabaseHostMsg_Closed, | |
74 string16 /* origin identifier */, | |
75 string16 /* database name */) | |
76 | |
OLD | NEW |