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

Side by Side Diff: content/common/appcache_messages.h

Issue 6691002: Move AppCache common code to content and split off AppCache messages into the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // Multiply-included message file, hence no include guard.
6
7 #include "ipc/ipc_message_macros.h"
8 #include "webkit/appcache/appcache_interfaces.h"
9
10 #define IPC_MESSAGE_START AppCacheMsgStart
11
12 IPC_ENUM_TRAITS(appcache::EventID)
13 IPC_ENUM_TRAITS(appcache::Status)
14
15 IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheInfo)
16 IPC_STRUCT_TRAITS_MEMBER(manifest_url)
17 IPC_STRUCT_TRAITS_MEMBER(creation_time)
18 IPC_STRUCT_TRAITS_MEMBER(last_update_time)
19 IPC_STRUCT_TRAITS_MEMBER(last_access_time)
20 IPC_STRUCT_TRAITS_MEMBER(cache_id)
21 IPC_STRUCT_TRAITS_MEMBER(status)
22 IPC_STRUCT_TRAITS_MEMBER(size)
23 IPC_STRUCT_TRAITS_MEMBER(is_complete)
24 IPC_STRUCT_TRAITS_END()
25
26 IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheResourceInfo)
27 IPC_STRUCT_TRAITS_MEMBER(url)
28 IPC_STRUCT_TRAITS_MEMBER(size)
29 IPC_STRUCT_TRAITS_MEMBER(is_master)
30 IPC_STRUCT_TRAITS_MEMBER(is_manifest)
31 IPC_STRUCT_TRAITS_MEMBER(is_fallback)
32 IPC_STRUCT_TRAITS_MEMBER(is_foreign)
33 IPC_STRUCT_TRAITS_MEMBER(is_explicit)
34 IPC_STRUCT_TRAITS_END()
35
36 // AppCache messages sent from the child process to the browser.
37
38 // Informs the browser of a new appcache host.
39 IPC_MESSAGE_CONTROL1(AppCacheHostMsg_RegisterHost,
40 int /* host_id */)
41
42 // Informs the browser of an appcache host being destroyed.
43 IPC_MESSAGE_CONTROL1(AppCacheHostMsg_UnregisterHost,
44 int /* host_id */)
45
46 // Initiates the cache selection algorithm for the given host.
47 // This is sent prior to any subresource loads. An AppCacheMsg_CacheSelected
48 // message will be sent in response.
49 // 'host_id' indentifies a specific document or worker
50 // 'document_url' the url of the main resource
51 // 'appcache_document_was_loaded_from' the id of the appcache the main
52 // resource was loaded from or kNoCacheId
53 // 'opt_manifest_url' the manifest url specified in the <html> tag if any
54 IPC_MESSAGE_CONTROL4(AppCacheHostMsg_SelectCache,
55 int /* host_id */,
56 GURL /* document_url */,
57 int64 /* appcache_document_was_loaded_from */,
58 GURL /* opt_manifest_url */)
59
60 // Initiates worker specific cache selection algorithm for the given host.
61 IPC_MESSAGE_CONTROL3(AppCacheHostMsg_SelectCacheForWorker,
62 int /* host_id */,
63 int /* parent_process_id */,
64 int /* parent_host_id */)
65 IPC_MESSAGE_CONTROL2(AppCacheHostMsg_SelectCacheForSharedWorker,
66 int /* host_id */,
67 int64 /* appcache_id */)
68
69 // Informs the browser of a 'foreign' entry in an appcache.
70 IPC_MESSAGE_CONTROL3(AppCacheHostMsg_MarkAsForeignEntry,
71 int /* host_id */,
72 GURL /* document_url */,
73 int64 /* appcache_document_was_loaded_from */)
74
75 // Returns the status of the appcache associated with host_id.
76 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheHostMsg_GetStatus,
77 int /* host_id */,
78 appcache::Status)
79
80 // Initiates an update of the appcache associated with host_id.
81 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheHostMsg_StartUpdate,
82 int /* host_id */,
83 bool /* success */)
84
85 // Swaps a new pending appcache, if there is one, into use for host_id.
86 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheHostMsg_SwapCache,
87 int /* host_id */,
88 bool /* success */)
89
90 // Gets resource list from appcache synchronously.
91 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheHostMsg_GetResourceList,
92 int /* host_id in*/,
93 std::vector<appcache::AppCacheResourceInfo>
94 /* resources out */)
95
96
97 // AppCache messages sent from the browser to the child process.
98
99 // Notifies the renderer of the appcache that has been selected for a
100 // a particular host. This is sent in reply to AppCacheHostMsg_SelectCache.
101 IPC_MESSAGE_CONTROL2(AppCacheMsg_CacheSelected,
102 int /* host_id */,
103 appcache::AppCacheInfo)
104
105 // Notifies the renderer of an AppCache status change.
106 IPC_MESSAGE_CONTROL2(AppCacheMsg_StatusChanged,
107 std::vector<int> /* host_ids */,
108 appcache::Status)
109
110 // Notifies the renderer of an AppCache event other than the
111 // progress event which has a seperate message.
112 IPC_MESSAGE_CONTROL2(AppCacheMsg_EventRaised,
113 std::vector<int> /* host_ids */,
114 appcache::EventID)
115
116 // Notifies the renderer of an AppCache progress event.
117 IPC_MESSAGE_CONTROL4(AppCacheMsg_ProgressEventRaised,
118 std::vector<int> /* host_ids */,
119 GURL /* url being processed */,
120 int /* total */,
121 int /* complete */)
122
123 // Notifies the renderer of an AppCache error event.
124 IPC_MESSAGE_CONTROL2(AppCacheMsg_ErrorEventRaised,
125 std::vector<int> /* host_ids */,
126 std::string /* error_message */)
127
128 // Notifies the renderer of an AppCache logging message.
129 IPC_MESSAGE_CONTROL3(AppCacheMsg_LogMessage,
130 int /* host_id */,
131 int /* log_level */,
132 std::string /* message */)
133
134 // Notifies the renderer of the fact that AppCache access was blocked.
135 IPC_MESSAGE_CONTROL2(AppCacheMsg_ContentBlocked,
136 int /* host_id */,
137 GURL /* manifest_url */)
OLDNEW
« no previous file with comments | « content/common/appcache/appcache_dispatcher.cc ('k') | content/common/content_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698