OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 DownloadingEvent, | 67 DownloadingEvent, |
68 ProgressEvent, | 68 ProgressEvent, |
69 UpdateReadyEvent, | 69 UpdateReadyEvent, |
70 CachedEvent, | 70 CachedEvent, |
71 ObsoleteEvent | 71 ObsoleteEvent |
72 }; | 72 }; |
73 | 73 |
74 virtual ~WebApplicationCacheHost() { } | 74 virtual ~WebApplicationCacheHost() { } |
75 | 75 |
76 // Called for every request made within the context. | 76 // Called for every request made within the context. |
| 77 virtual void willStartMainResourceRequest(WebURLRequest& r, const WebApplica
tionCacheHost* spawningHost) { } |
77 virtual void willStartMainResourceRequest(WebURLRequest& r, const WebFrame*)
{ } | 78 virtual void willStartMainResourceRequest(WebURLRequest& r, const WebFrame*)
{ } |
78 virtual void willStartSubResourceRequest(WebURLRequest&) { } | 79 virtual void willStartSubResourceRequest(WebURLRequest&) { } |
79 | 80 |
80 // One or the other selectCache methods is called after having parsed the <h
tml> tag. | 81 // One or the other selectCache methods is called after having parsed the <h
tml> tag. |
81 // The latter returns false if the current document has been identified as a
"foreign" | 82 // The latter returns false if the current document has been identified as a
"foreign" |
82 // entry, in which case the frame navigation will be restarted by webkit. | 83 // entry, in which case the frame navigation will be restarted by webkit. |
83 virtual void selectCacheWithoutManifest() { } | 84 virtual void selectCacheWithoutManifest() { } |
84 virtual bool selectCacheWithManifest(const WebURL& manifestURL) { return tru
e; } | 85 virtual bool selectCacheWithManifest(const WebURL& manifestURL) { return tru
e; } |
85 | 86 |
86 // Called as the main resource is retrieved. | 87 // Called as the main resource is retrieved. |
(...skipping 26 matching lines...) Expand all Loading... |
113 ResourceInfo() : size(0), isMaster(false), isManifest(false), isExplicit
(false), isForeign(false), isFallback(false) { } | 114 ResourceInfo() : size(0), isMaster(false), isManifest(false), isExplicit
(false), isForeign(false), isFallback(false) { } |
114 }; | 115 }; |
115 virtual void getAssociatedCacheInfo(CacheInfo*) { } | 116 virtual void getAssociatedCacheInfo(CacheInfo*) { } |
116 virtual void getResourceList(WebVector<ResourceInfo>*) { } | 117 virtual void getResourceList(WebVector<ResourceInfo>*) { } |
117 virtual void deleteAssociatedCacheGroup() { } | 118 virtual void deleteAssociatedCacheGroup() { } |
118 }; | 119 }; |
119 | 120 |
120 } // namespace blink | 121 } // namespace blink |
121 | 122 |
122 #endif // WebApplicationCacheHost_h | 123 #endif // WebApplicationCacheHost_h |
OLD | NEW |