| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Multiply-included message file, no include guard. | 5 // Multiply-included message file, no include guard. |
| 6 | 6 |
| 7 #include "ipc/ipc_message_macros.h" | 7 #include "ipc/ipc_message_macros.h" |
| 8 #include "ipc/ipc_param_traits.h" | 8 #include "ipc/ipc_param_traits.h" |
| 9 #include "ipc/ipc_platform_file.h" | 9 #include "ipc/ipc_platform_file.h" |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // Asks the browser process to return the size of a DB file | 54 // Asks the browser process to return the size of a DB file |
| 55 IPC_SYNC_MESSAGE_CONTROL1_1(DatabaseHostMsg_GetFileSize, | 55 IPC_SYNC_MESSAGE_CONTROL1_1(DatabaseHostMsg_GetFileSize, |
| 56 base::string16 /* vfs file name */, | 56 base::string16 /* vfs file name */, |
| 57 int64 /* the size of the given DB file */) | 57 int64 /* the size of the given DB file */) |
| 58 | 58 |
| 59 // Asks the browser process for the amount of space available to an origin | 59 // Asks the browser process for the amount of space available to an origin |
| 60 IPC_SYNC_MESSAGE_CONTROL1_1(DatabaseHostMsg_GetSpaceAvailable, | 60 IPC_SYNC_MESSAGE_CONTROL1_1(DatabaseHostMsg_GetSpaceAvailable, |
| 61 std::string /* origin identifier */, | 61 std::string /* origin identifier */, |
| 62 int64 /* remaining space available */) | 62 int64 /* remaining space available */) |
| 63 | 63 |
| 64 // Asks the browser set the size of a DB file |
| 65 IPC_SYNC_MESSAGE_CONTROL2_1(DatabaseHostMsg_SetFileSize, |
| 66 base::string16 /* vfs file name */, |
| 67 int64 /* expected size of the given DB file */, |
| 68 bool /* indicates success */) |
| 69 |
| 64 // Notifies the browser process that a new database has been opened | 70 // Notifies the browser process that a new database has been opened |
| 65 IPC_MESSAGE_CONTROL4(DatabaseHostMsg_Opened, | 71 IPC_MESSAGE_CONTROL4(DatabaseHostMsg_Opened, |
| 66 std::string /* origin identifier */, | 72 std::string /* origin identifier */, |
| 67 base::string16 /* database name */, | 73 base::string16 /* database name */, |
| 68 base::string16 /* database description */, | 74 base::string16 /* database description */, |
| 69 int64 /* estimated size */) | 75 int64 /* estimated size */) |
| 70 | 76 |
| 71 // Notifies the browser process that a database might have been modified | 77 // Notifies the browser process that a database might have been modified |
| 72 IPC_MESSAGE_CONTROL2(DatabaseHostMsg_Modified, | 78 IPC_MESSAGE_CONTROL2(DatabaseHostMsg_Modified, |
| 73 std::string /* origin identifier */, | 79 std::string /* origin identifier */, |
| 74 base::string16 /* database name */) | 80 base::string16 /* database name */) |
| 75 | 81 |
| 76 // Notifies the browser process that a database is about to close | 82 // Notifies the browser process that a database is about to close |
| 77 IPC_MESSAGE_CONTROL2(DatabaseHostMsg_Closed, | 83 IPC_MESSAGE_CONTROL2(DatabaseHostMsg_Closed, |
| 78 std::string /* origin identifier */, | 84 std::string /* origin identifier */, |
| 79 base::string16 /* database name */) | 85 base::string16 /* database name */) |
| 80 | 86 |
| 81 // Sent when a sqlite error indicates the database is corrupt. | 87 // Sent when a sqlite error indicates the database is corrupt. |
| 82 IPC_MESSAGE_CONTROL3(DatabaseHostMsg_HandleSqliteError, | 88 IPC_MESSAGE_CONTROL3(DatabaseHostMsg_HandleSqliteError, |
| 83 std::string /* origin identifier */, | 89 std::string /* origin identifier */, |
| 84 base::string16 /* database name */, | 90 base::string16 /* database name */, |
| 85 int /* error */) | 91 int /* error */) |
| OLD | NEW |