OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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 #include <map> | 5 #include <map> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 int /* id of browser window */) | 895 int /* id of browser window */) |
896 | 896 |
897 // Tell the renderer which type this view is. | 897 // Tell the renderer which type this view is. |
898 IPC_MESSAGE_ROUTED1(ViewMsg_NotifyRenderViewType, | 898 IPC_MESSAGE_ROUTED1(ViewMsg_NotifyRenderViewType, |
899 ViewType::Type /* view_type */) | 899 ViewType::Type /* view_type */) |
900 | 900 |
901 // Notification that renderer should run some JavaScript code. | 901 // Notification that renderer should run some JavaScript code. |
902 IPC_MESSAGE_ROUTED1(ViewMsg_ExecuteCode, | 902 IPC_MESSAGE_ROUTED1(ViewMsg_ExecuteCode, |
903 ViewMsg_ExecuteCode_Params) | 903 ViewMsg_ExecuteCode_Params) |
904 | 904 |
905 // Notifies the child process of the new database size | |
906 IPC_MESSAGE_CONTROL4(ViewMsg_DatabaseUpdateSize, | |
907 string16 /* the origin */, | |
908 string16 /* the database name */, | |
909 int64 /* the new database size */, | |
910 int64 /* space available to origin */) | |
911 | |
912 // Asks the child process to close a database immediately | |
913 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseCloseImmediately, | |
914 string16 /* the origin */, | |
915 string16 /* the database name */) | |
916 | |
917 // Storage events are broadcast to renderer processes. | 905 // Storage events are broadcast to renderer processes. |
918 IPC_MESSAGE_CONTROL1(ViewMsg_DOMStorageEvent, | 906 IPC_MESSAGE_CONTROL1(ViewMsg_DOMStorageEvent, |
919 ViewMsg_DOMStorageEvent_Params) | 907 ViewMsg_DOMStorageEvent_Params) |
920 | 908 |
921 // IDBCallback message handlers. | 909 // IDBCallback message handlers. |
922 IPC_MESSAGE_CONTROL1(ViewMsg_IDBCallbacksSuccessNull, | 910 IPC_MESSAGE_CONTROL1(ViewMsg_IDBCallbacksSuccessNull, |
923 int32 /* response_id */) | 911 int32 /* response_id */) |
924 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBCursor, | 912 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBCursor, |
925 int32 /* response_id */, | 913 int32 /* response_id */, |
926 int32 /* cursor_id */) | 914 int32 /* cursor_id */) |
(...skipping 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2681 // and an error code from base/platform_file.h. | 2669 // and an error code from base/platform_file.h. |
2682 IPC_MESSAGE_ROUTED3(ViewHostMsg_AsyncOpenFile, | 2670 IPC_MESSAGE_ROUTED3(ViewHostMsg_AsyncOpenFile, |
2683 FilePath /* file path */, | 2671 FilePath /* file path */, |
2684 int /* flags */, | 2672 int /* flags */, |
2685 int /* message_id */) | 2673 int /* message_id */) |
2686 | 2674 |
2687 // Sent by the renderer process to acknowledge receipt of a | 2675 // Sent by the renderer process to acknowledge receipt of a |
2688 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame. | 2676 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame. |
2689 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted) | 2677 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted) |
2690 | 2678 |
2691 // Sent by the renderer process to check whether access to web databases is | |
2692 // granted by content settings. This may block and trigger a cookie prompt. | |
2693 IPC_SYNC_MESSAGE_ROUTED4_1(ViewHostMsg_AllowDatabase, | |
2694 std::string /* origin_url */, | |
2695 string16 /* database name */, | |
2696 string16 /* database display name */, | |
2697 unsigned long /* estimated size */, | |
2698 bool /* result */) | |
2699 | |
2700 // Asks the browser process to open a DB file with the given name. | |
2701 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DatabaseOpenFile, | |
2702 string16 /* vfs file name */, | |
2703 int /* desired flags */, | |
2704 IPC::PlatformFileForTransit /* file_handle */) | |
2705 | |
2706 // Asks the browser process to delete a DB file | |
2707 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DatabaseDeleteFile, | |
2708 string16 /* vfs file name */, | |
2709 bool /* whether or not to sync the directory */, | |
2710 int /* SQLite error code */) | |
2711 | |
2712 // Asks the browser process to return the attributes of a DB file | |
2713 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DatabaseGetFileAttributes, | |
2714 string16 /* vfs file name */, | |
2715 int32 /* the attributes for the given DB file */) | |
2716 | |
2717 // Asks the browser process to return the size of a DB file | |
2718 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DatabaseGetFileSize, | |
2719 string16 /* vfs file name */, | |
2720 int64 /* the size of the given DB file */) | |
2721 | |
2722 // Notifies the browser process that a new database has been opened | |
2723 IPC_MESSAGE_CONTROL4(ViewHostMsg_DatabaseOpened, | |
2724 string16 /* origin identifier */, | |
2725 string16 /* database name */, | |
2726 string16 /* database description */, | |
2727 int64 /* estimated size */) | |
2728 | |
2729 // Notifies the browser process that a database might have been modified | |
2730 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseModified, | |
2731 string16 /* origin identifier */, | |
2732 string16 /* database name */) | |
2733 | |
2734 // Notifies the browser process that a database is about to close | |
2735 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseClosed, | |
2736 string16 /* origin identifier */, | |
2737 string16 /* database name */) | |
2738 | |
2739 // Notifies the browser of the language (ISO 639_1 code language, such as fr, | 2679 // Notifies the browser of the language (ISO 639_1 code language, such as fr, |
2740 // en, zh...) of the current page. | 2680 // en, zh...) of the current page. |
2741 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageLanguageDetermined, | 2681 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageLanguageDetermined, |
2742 std::string /* the language */) | 2682 std::string /* the language */) |
2743 | 2683 |
2744 // Notifies the browser that a page has been translated. | 2684 // Notifies the browser that a page has been translated. |
2745 IPC_MESSAGE_ROUTED4(ViewHostMsg_PageTranslated, | 2685 IPC_MESSAGE_ROUTED4(ViewHostMsg_PageTranslated, |
2746 int, /* page id */ | 2686 int, /* page id */ |
2747 std::string /* the original language */, | 2687 std::string /* the original language */, |
2748 std::string /* the translated language */, | 2688 std::string /* the translated language */, |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3072 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperQueryFile, | 3012 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperQueryFile, |
3073 FilePath /* path */, | 3013 FilePath /* path */, |
3074 base::PlatformFileInfo, /* info */ | 3014 base::PlatformFileInfo, /* info */ |
3075 base::PlatformFileError /* error_code */) | 3015 base::PlatformFileError /* error_code */) |
3076 | 3016 |
3077 // Get the directory's contents. | 3017 // Get the directory's contents. |
3078 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperGetDirContents, | 3018 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperGetDirContents, |
3079 FilePath /* path */, | 3019 FilePath /* path */, |
3080 PepperDirContents, /* contents */ | 3020 PepperDirContents, /* contents */ |
3081 base::PlatformFileError /* error_code */) | 3021 base::PlatformFileError /* error_code */) |
OLD | NEW |