diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-07 17:45:54 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-07 17:45:54 +0000 |
commit | 1edc16b82bd98eb06188a94e62c668d439035e6e (patch) | |
tree | 3edaea7ad20c2981febbc5e081bb2d499d97e671 /chrome/common/render_messages_internal.h | |
parent | 7d769c36ccaf6663c49e3c89d959a47b9449f68a (diff) | |
download | chromium_src-1edc16b82bd98eb06188a94e62c668d439035e6e.zip chromium_src-1edc16b82bd98eb06188a94e62c668d439035e6e.tar.gz chromium_src-1edc16b82bd98eb06188a94e62c668d439035e6e.tar.bz2 |
Adds new messages and widens some existing messages between the renderer and browser processes to support an implementation of the HTML5AppCache spec with most of the logic running in the browser process. The gist of most of the changes are to indicate which frame each resource request is coming from, and to indicate which appcache each response was retrieved from (if any).See https://docs.google.com/a/google.com/Doc?docid=agv6ghfsqr_15f749cgt3&hl=en
Review URL: http://codereview.chromium.org/9712
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13258 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages_internal.h')
-rw-r--r-- | chrome/common/render_messages_internal.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index a39dca8..cec72e5 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -20,6 +20,7 @@ #include "chrome/common/transport_dib.h" #include "skia/include/SkBitmap.h" #include "webkit/glue/dom_operations.h" +#include "webkit/glue/webappcachecontext.h" #include "webkit/glue/webcursor.h" #include "webkit/glue/webplugin.h" @@ -484,6 +485,14 @@ IPC_BEGIN_MESSAGES(View) // into a full window). IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount) + // Notifies the renderer of the AppCache that has been selected for a + // a particular context (or frame). This is sent in reply to + // one of the two AppCacheMsg_SelectAppCache messages. + IPC_MESSAGE_CONTROL3(AppCacheMsg_AppCacheSelected, + int /* context_id */, + int /* select_request_id */, + int64 /* cache_id */) + // Reply to the ViewHostMsg_QueryFormFieldAutofill message with the autofill // suggestions. IPC_MESSAGE_ROUTED4(ViewMsg_AutofillSuggestions, @@ -1196,6 +1205,34 @@ IPC_BEGIN_MESSAGES(ViewHost) gfx::NativeViewId /* window */, gfx::Rect /* Out: Window location */) + // Informs the browser of a new context. + IPC_MESSAGE_CONTROL3(AppCacheMsg_ContextCreated, + WebAppCacheContext::ContextType, + int /* context_id */, + int /* opt_parent_context_id */) + + // Informs the browser of a context being destroyed. + IPC_MESSAGE_CONTROL1(AppCacheMsg_ContextDestroyed, + int /* context_id */) + + // Initiates the cache selection algorithm for the given context. + // This is sent after new content has been committed, but prior to + // any subresource loads. An AppCacheMsg_AppCacheSelected message will + // be sent in response. + // 'context_id' indentifies a specific frame or worker + // 'select_request_id' indentifies this particular invocation the algorithm + // and will be returned to the caller with the response + // 'document_url' the url of the main resource commited to the frame + // 'cache_document_was_loaded_frame' the id of the appcache the main resource + // was loaded from or kNoAppCacheId + // 'opt_manifest_url' the manifest url specified in the <html> tag if any + IPC_MESSAGE_CONTROL5(AppCacheMsg_SelectAppCache, + int /* context_id */, + int /* select_request_id */, + GURL /* document_url */, + int64 /* cache_document_was_loaded_from */, + GURL /* opt_manifest_url */) + // Returns the resizer box location in the window this widget is embeded. // Important for Mac OS X, but not Win or Linux. IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowResizerRect, |