| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 virtual ~WebApplicationCacheHost() {} | 75 virtual ~WebApplicationCacheHost() {} |
| 76 | 76 |
| 77 // Called for every request made within the context. | 77 // Called for every request made within the context. |
| 78 virtual void willStartMainResourceRequest( | 78 virtual void willStartMainResourceRequest( |
| 79 WebURLRequest& r, | 79 WebURLRequest& r, |
| 80 const WebApplicationCacheHost* spawningHost) {} | 80 const WebApplicationCacheHost* spawningHost) {} |
| 81 virtual void willStartSubResourceRequest(WebURLRequest&) {} | 81 virtual void willStartSubResourceRequest(WebURLRequest&) {} |
| 82 | 82 |
| 83 // One or the other selectCache methods is called after having parsed the <htm
l> tag. | 83 // One or the other selectCache methods is called after having parsed the |
| 84 // The latter returns false if the current document has been identified as a "
foreign" | 84 // <html> tag. The latter returns false if the current document has been |
| 85 // entry, in which case the frame navigation will be restarted by webkit. | 85 // identified as a "foreign" entry, in which case the frame navigation will be |
| 86 // restarted by webkit. |
| 86 virtual void selectCacheWithoutManifest() {} | 87 virtual void selectCacheWithoutManifest() {} |
| 87 virtual bool selectCacheWithManifest(const WebURL& manifestURL) { | 88 virtual bool selectCacheWithManifest(const WebURL& manifestURL) { |
| 88 return true; | 89 return true; |
| 89 } | 90 } |
| 90 | 91 |
| 91 // Called as the main resource is retrieved. | 92 // Called as the main resource is retrieved. |
| 92 virtual void didReceiveResponseForMainResource(const WebURLResponse&) {} | 93 virtual void didReceiveResponseForMainResource(const WebURLResponse&) {} |
| 93 virtual void didReceiveDataForMainResource(const char* data, unsigned len) {} | 94 virtual void didReceiveDataForMainResource(const char* data, unsigned len) {} |
| 94 virtual void didFinishLoadingMainResource(bool success) {} | 95 virtual void didFinishLoadingMainResource(bool success) {} |
| 95 | 96 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 124 isFallback(false) {} | 125 isFallback(false) {} |
| 125 }; | 126 }; |
| 126 virtual void getAssociatedCacheInfo(CacheInfo*) {} | 127 virtual void getAssociatedCacheInfo(CacheInfo*) {} |
| 127 virtual void getResourceList(WebVector<ResourceInfo>*) {} | 128 virtual void getResourceList(WebVector<ResourceInfo>*) {} |
| 128 virtual void deleteAssociatedCacheGroup() {} | 129 virtual void deleteAssociatedCacheGroup() {} |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 } // namespace blink | 132 } // namespace blink |
| 132 | 133 |
| 133 #endif // WebApplicationCacheHost_h | 134 #endif // WebApplicationCacheHost_h |
| OLD | NEW |