| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 virtual void willStartSubResourceRequest(WebURLRequest&) { } | 88 virtual void willStartSubResourceRequest(WebURLRequest&) { } |
| 89 | 89 |
| 90 // One or the other selectCache methods is called after having parsed the <h
tml> tag. | 90 // One or the other selectCache methods is called after having parsed the <h
tml> tag. |
| 91 // The latter returns false if the current document has been identified as a
"foreign" | 91 // The latter returns false if the current document has been identified as a
"foreign" |
| 92 // entry, in which case the frame navigation will be restarted by webkit. | 92 // entry, in which case the frame navigation will be restarted by webkit. |
| 93 virtual void selectCacheWithoutManifest() { } | 93 virtual void selectCacheWithoutManifest() { } |
| 94 virtual bool selectCacheWithManifest(const WebURL& manifestURL) { return tru
e; } | 94 virtual bool selectCacheWithManifest(const WebURL& manifestURL) { return tru
e; } |
| 95 | 95 |
| 96 // Called as the main resource is retrieved. | 96 // Called as the main resource is retrieved. |
| 97 virtual void didReceiveResponseForMainResource(const WebURLResponse&) { } | 97 virtual void didReceiveResponseForMainResource(const WebURLResponse&) { } |
| 98 virtual void didReceiveDataForMainResource(const char* data, int len) { } | 98 virtual void didReceiveDataForMainResource(const char* data, unsigned len) {
} |
| 99 virtual void didFinishLoadingMainResource(bool success) { } | 99 virtual void didFinishLoadingMainResource(bool success) { } |
| 100 | 100 |
| 101 // Called on behalf of the scriptable interface. | 101 // Called on behalf of the scriptable interface. |
| 102 virtual Status status() { return Uncached; } | 102 virtual Status status() { return Uncached; } |
| 103 virtual bool startUpdate() { return false; } | 103 virtual bool startUpdate() { return false; } |
| 104 virtual bool swapCache() { return false; } | 104 virtual bool swapCache() { return false; } |
| 105 virtual void abort() { } | 105 virtual void abort() { } |
| 106 | 106 |
| 107 // Structures and methods to support inspecting Application Caches. | 107 // Structures and methods to support inspecting Application Caches. |
| 108 struct CacheInfo { | 108 struct CacheInfo { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 123 ResourceInfo() : size(0), isMaster(false), isManifest(false), isExplicit
(false), isForeign(false), isFallback(false) { } | 123 ResourceInfo() : size(0), isMaster(false), isManifest(false), isExplicit
(false), isForeign(false), isFallback(false) { } |
| 124 }; | 124 }; |
| 125 virtual void getAssociatedCacheInfo(CacheInfo*) { } | 125 virtual void getAssociatedCacheInfo(CacheInfo*) { } |
| 126 virtual void getResourceList(WebVector<ResourceInfo>*) { } | 126 virtual void getResourceList(WebVector<ResourceInfo>*) { } |
| 127 virtual void deleteAssociatedCacheGroup() { } | 127 virtual void deleteAssociatedCacheGroup() { } |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 } // namespace blink | 130 } // namespace blink |
| 131 | 131 |
| 132 #endif // WebApplicationCacheHost_h | 132 #endif // WebApplicationCacheHost_h |
| OLD | NEW |