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

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 174232: Chromium side patch for DB support on Linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Final version, including changes to the DEPS file. Created 11 years, 3 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/renderer_webkitclient_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 13 matching lines...) Expand all
24 #include "chrome/common/transport_dib.h" 24 #include "chrome/common/transport_dib.h"
25 #include "chrome/common/view_types.h" 25 #include "chrome/common/view_types.h"
26 #include "ipc/ipc_channel_handle.h" 26 #include "ipc/ipc_channel_handle.h"
27 #include "ipc/ipc_message_macros.h" 27 #include "ipc/ipc_message_macros.h"
28 #include "third_party/skia/include/core/SkBitmap.h" 28 #include "third_party/skia/include/core/SkBitmap.h"
29 #include "webkit/appcache/appcache_interfaces.h" 29 #include "webkit/appcache/appcache_interfaces.h"
30 #include "webkit/glue/dom_operations.h" 30 #include "webkit/glue/dom_operations.h"
31 #include "webkit/glue/webcursor.h" 31 #include "webkit/glue/webcursor.h"
32 #include "webkit/glue/webplugin.h" 32 #include "webkit/glue/webplugin.h"
33 33
34 #if defined(OS_POSIX)
35 #include "base/file_descriptor_posix.h"
36 #endif
37
34 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes 38 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes
35 // more sense with our current design. 39 // more sense with our current design.
36 40
37 //----------------------------------------------------------------------------- 41 //-----------------------------------------------------------------------------
38 // RenderView messages 42 // RenderView messages
39 // These are messages sent from the browser to the renderer process. 43 // These are messages sent from the browser to the renderer process.
40 44
41 IPC_BEGIN_MESSAGES(View) 45 IPC_BEGIN_MESSAGES(View)
42 // Used typically when recovering from a crash. The new rendering process 46 // Used typically when recovering from a crash. The new rendering process
43 // sets its global "next page id" counter to the given value. 47 // sets its global "next page id" counter to the given value.
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateBrowserWindowId, 657 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateBrowserWindowId,
654 int /* id of browser window */) 658 int /* id of browser window */)
655 659
656 // Tell the renderer which type this view is. 660 // Tell the renderer which type this view is.
657 IPC_MESSAGE_ROUTED1(ViewMsg_NotifyRenderViewType, 661 IPC_MESSAGE_ROUTED1(ViewMsg_NotifyRenderViewType,
658 ViewType::Type /* view_type */) 662 ViewType::Type /* view_type */)
659 663
660 // Returns a file handle 664 // Returns a file handle
661 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseOpenFileResponse, 665 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseOpenFileResponse,
662 int32 /* the ID of the message we're replying to */, 666 int32 /* the ID of the message we're replying to */,
663 base::PlatformFile /* the HANDLE/fd of the DB file */) 667 ViewMsg_DatabaseOpenFileResponse_Params)
664 668
665 // Returns the error code returned by a call to DeleteFile() 669 // Returns a SQLite error code
666 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseDeleteFileResponse, 670 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseDeleteFileResponse,
667 int32 /* the ID of the message we're replying to */, 671 int32 /* the ID of the message we're replying to */,
668 bool /* whether or not the DB file was deleted */) 672 int /* SQLite error code */)
669 673
670 // Returns the attributes of a file 674 // Returns the attributes of a file
671 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseGetFileAttributesResponse, 675 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseGetFileAttributesResponse,
672 int32 /* the ID of the message we're replying to */, 676 int32 /* the ID of the message we're replying to */,
673 int32 /* the attributes for the given DB file */) 677 int32 /* the attributes for the given DB file */)
674 678
675 // Returns the size of a file 679 // Returns the size of a file
676 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseGetFileSizeResponse, 680 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseGetFileSizeResponse,
677 int32 /* the ID of the message we're replying to */, 681 int32 /* the ID of the message we're replying to */,
678 int64 /* the size of the given DB file */) 682 int64 /* the size of the given DB file */)
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1672 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame. 1676 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame.
1673 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted) 1677 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted)
1674 1678
1675 // Asks the browser process to open a DB file with the given name 1679 // Asks the browser process to open a DB file with the given name
1676 IPC_MESSAGE_CONTROL3(ViewHostMsg_DatabaseOpenFile, 1680 IPC_MESSAGE_CONTROL3(ViewHostMsg_DatabaseOpenFile,
1677 FilePath /* file name */, 1681 FilePath /* file name */,
1678 int /* desired flags */, 1682 int /* desired flags */,
1679 int32 /* a unique message ID */) 1683 int32 /* a unique message ID */)
1680 1684
1681 // Asks the browser process to delete a DB file 1685 // Asks the browser process to delete a DB file
1682 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseDeleteFile, 1686 IPC_MESSAGE_CONTROL3(ViewHostMsg_DatabaseDeleteFile,
1683 FilePath /* the name of the file */, 1687 FilePath /* the name of the file */,
1688 bool /* whether or not to sync the directory */,
1684 int32 /* a unique message ID */) 1689 int32 /* a unique message ID */)
1685 1690
1686 // Asks the browser process to return the attributes of a DB file 1691 // Asks the browser process to return the attributes of a DB file
1687 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, 1692 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes,
1688 FilePath /* the name of the file */, 1693 FilePath /* the name of the file */,
1689 int32 /* a unique message ID */) 1694 int32 /* a unique message ID */)
1690 1695
1691 // Asks the browser process to return the size of a DB file 1696 // Asks the browser process to return the size of a DB file
1692 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, 1697 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize,
1693 FilePath /* the name of the file */, 1698 FilePath /* the name of the file */,
1694 int32 /* a unique message ID */) 1699 int32 /* a unique message ID */)
1695 1700
1696 IPC_END_MESSAGES(ViewHost) 1701 IPC_END_MESSAGES(ViewHost)
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/renderer_webkitclient_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698