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

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

Issue 9712: AppCachePlumbing (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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>
11 11
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 13
14 #include "base/clipboard.h" 14 #include "base/clipboard.h"
15 #include "base/gfx/rect.h" 15 #include "base/gfx/rect.h"
16 #include "base/gfx/native_widget_types.h" 16 #include "base/gfx/native_widget_types.h"
17 #include "base/shared_memory.h" 17 #include "base/shared_memory.h"
18 #include "chrome/common/ipc_message_macros.h" 18 #include "chrome/common/ipc_message_macros.h"
19 #include "chrome/common/transport_dib.h" 19 #include "chrome/common/transport_dib.h"
20 #include "skia/include/SkBitmap.h" 20 #include "skia/include/SkBitmap.h"
21 #include "webkit/glue/dom_operations.h" 21 #include "webkit/glue/dom_operations.h"
22 #include "webkit/glue/webappcachecontext.h"
22 #include "webkit/glue/webcursor.h" 23 #include "webkit/glue/webcursor.h"
23 #include "webkit/glue/webplugin.h" 24 #include "webkit/glue/webplugin.h"
24 25
25 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes 26 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes
26 // more sense with our current design. 27 // more sense with our current design.
27 28
28 //----------------------------------------------------------------------------- 29 //-----------------------------------------------------------------------------
29 // RenderView messages 30 // RenderView messages
30 // These are messages sent from the browser to the renderer process. 31 // These are messages sent from the browser to the renderer process.
31 32
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 std::string /* The message */, 477 std::string /* The message */,
477 std::string /* The origin */, 478 std::string /* The origin */,
478 std::string /* The target*/) 479 std::string /* The target*/)
479 480
480 // Sent to the renderer when a popup window should no longer count against 481 // Sent to the renderer when a popup window should no longer count against
481 // the current popup count (either because it's not a popup or because it was 482 // the current popup count (either because it's not a popup or because it was
482 // a generated by a user action or because a constrained popup got turned 483 // a generated by a user action or because a constrained popup got turned
483 // into a full window). 484 // into a full window).
484 IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount) 485 IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount)
485 486
487 // Notifies the renderer of the AppCache that has been selected for a
488 // a particular context (or frame). This is sent in reply to
489 // one of the two AppCacheMsg_SelectAppCache messages.
490 IPC_MESSAGE_CONTROL3(AppCacheMsg_AppCacheSelected,
491 int /* context_id */,
492 int /* select_request_id */,
493 int64 /* cache_id */)
494
486 // Reply to the ViewHostMsg_QueryFormFieldAutofill message with the autofill 495 // Reply to the ViewHostMsg_QueryFormFieldAutofill message with the autofill
487 // suggestions. 496 // suggestions.
488 IPC_MESSAGE_ROUTED4(ViewMsg_AutofillSuggestions, 497 IPC_MESSAGE_ROUTED4(ViewMsg_AutofillSuggestions,
489 int64 /* id of the text input field */, 498 int64 /* id of the text input field */,
490 int /* id of the request message */, 499 int /* id of the request message */,
491 std::vector<std::wstring> /* suggestions */, 500 std::vector<std::wstring> /* suggestions */,
492 int /* index of default suggestion */) 501 int /* index of default suggestion */)
493 502
494 // Sent by the Browser process to alert a window about whether a blocked 503 // Sent by the Browser process to alert a window about whether a blocked
495 // popup notification is visible. The renderer assumes every new window is a 504 // popup notification is visible. The renderer assumes every new window is a
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 // Notify the browser that this render either has or doesn't have a 1197 // Notify the browser that this render either has or doesn't have a
1189 // beforeunload or unload handler. 1198 // beforeunload or unload handler.
1190 IPC_MESSAGE_ROUTED1(ViewHostMsg_UnloadListenerChanged, 1199 IPC_MESSAGE_ROUTED1(ViewHostMsg_UnloadListenerChanged,
1191 bool /* has_listener */) 1200 bool /* has_listener */)
1192 1201
1193 // Returns the window location of the window this widget is embeded. 1202 // Returns the window location of the window this widget is embeded.
1194 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect, 1203 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect,
1195 gfx::NativeViewId /* window */, 1204 gfx::NativeViewId /* window */,
1196 gfx::Rect /* Out: Window location */) 1205 gfx::Rect /* Out: Window location */)
1197 1206
1207 // Informs the browser of a new context.
1208 IPC_MESSAGE_CONTROL3(AppCacheMsg_ContextCreated,
1209 WebAppCacheContext::ContextType,
1210 int /* context_id */,
1211 int /* opt_parent_context_id */)
1212
1213 // Informs the browser of a context being destroyed.
1214 IPC_MESSAGE_CONTROL1(AppCacheMsg_ContextDestroyed,
1215 int /* context_id */)
1216
1217 // Initiates the cache selection algorithm for the given context.
1218 // This is sent after new content has been committed, but prior to
1219 // any subresource loads. An AppCacheMsg_AppCacheSelected message will
1220 // be sent in response.
1221 // 'context_id' indentifies a specific frame or worker
1222 // 'select_request_id' indentifies this particular invocation the algorithm
1223 // and will be returned to the caller with the response
1224 // 'document_url' the url of the main resource commited to the frame
1225 // 'cache_document_was_loaded_frame' the id of the appcache the main resource
1226 // was loaded from or kNoAppCacheId
1227 // 'opt_manifest_url' the manifest url specified in the <html> tag if any
1228 IPC_MESSAGE_CONTROL5(AppCacheMsg_SelectAppCache,
1229 int /* context_id */,
1230 int /* select_request_id */,
1231 GURL /* document_url */,
1232 int64 /* cache_document_was_loaded_from */,
1233 GURL /* opt_manifest_url */)
1234
1198 // Returns the resizer box location in the window this widget is embeded. 1235 // Returns the resizer box location in the window this widget is embeded.
1199 // Important for Mac OS X, but not Win or Linux. 1236 // Important for Mac OS X, but not Win or Linux.
1200 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowResizerRect, 1237 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowResizerRect,
1201 gfx::NativeViewId /* window */, 1238 gfx::NativeViewId /* window */,
1202 gfx::Rect /* Out: Window location */) 1239 gfx::Rect /* Out: Window location */)
1203 1240
1204 // Queries the browser for suggestion for autofill in a form input field. 1241 // Queries the browser for suggestion for autofill in a form input field.
1205 IPC_MESSAGE_ROUTED4(ViewHostMsg_QueryFormFieldAutofill, 1242 IPC_MESSAGE_ROUTED4(ViewHostMsg_QueryFormFieldAutofill,
1206 std::wstring /* field name */, 1243 std::wstring /* field name */,
1207 std::wstring /* user entered text */, 1244 std::wstring /* user entered text */,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_OpenChannelToExtension, 1334 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_OpenChannelToExtension,
1298 std::string /* extension_id */, 1335 std::string /* extension_id */,
1299 int /* port_id */) 1336 int /* port_id */)
1300 1337
1301 // Send a message to an extension process. The handle is the value returned 1338 // Send a message to an extension process. The handle is the value returned
1302 // by ViewHostMsg_OpenChannelToExtension. 1339 // by ViewHostMsg_OpenChannelToExtension.
1303 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionPostMessage, 1340 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionPostMessage,
1304 int /* port_id */, 1341 int /* port_id */,
1305 std::string /* message */) 1342 std::string /* message */)
1306 IPC_END_MESSAGES(ViewHost) 1343 IPC_END_MESSAGES(ViewHost)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698