OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2009, 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 long long m_size; | 108 long long m_size; |
109 }; | 109 }; |
110 | 110 |
111 typedef Vector<ResourceInfo> ResourceInfoList; | 111 typedef Vector<ResourceInfo> ResourceInfoList; |
112 | 112 |
113 void selectCacheWithoutManifest(); | 113 void selectCacheWithoutManifest(); |
114 void selectCacheWithManifest(const KURL& manifestURL); | 114 void selectCacheWithManifest(const KURL& manifestURL); |
115 | 115 |
116 void willStartLoadingMainResource(ResourceRequest&); | 116 void willStartLoadingMainResource(ResourceRequest&); |
117 void didReceiveResponseForMainResource(const ResourceResponse&); | 117 void didReceiveResponseForMainResource(const ResourceResponse&); |
118 void mainResourceDataReceived(const char* data, unsigned length); | 118 void mainResourceDataReceived(const char* data, size_t length); |
119 void finishedLoadingMainResource(); | 119 void finishedLoadingMainResource(); |
120 void failedLoadingMainResource(); | 120 void failedLoadingMainResource(); |
121 | 121 |
122 void willStartLoadingResource(ResourceRequest&); | 122 void willStartLoadingResource(ResourceRequest&); |
123 | 123 |
124 Status status() const; | 124 Status status() const; |
125 bool update(); | 125 bool update(); |
126 bool swapCache(); | 126 bool swapCache(); |
127 void abort(); | 127 void abort(); |
128 | 128 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 Vector<DeferredEvent> m_deferredEvents; | 174 Vector<DeferredEvent> m_deferredEvents; |
175 | 175 |
176 void dispatchDOMEvent(EventID, int progressTotal, int progressDone, WebA
pplicationCacheHost::ErrorReason, const String& errorURL, int errorStatus, const
String& errorMessage); | 176 void dispatchDOMEvent(EventID, int progressTotal, int progressDone, WebA
pplicationCacheHost::ErrorReason, const String& errorURL, int errorStatus, const
String& errorMessage); |
177 | 177 |
178 OwnPtr<WebApplicationCacheHost> m_host; | 178 OwnPtr<WebApplicationCacheHost> m_host; |
179 }; | 179 }; |
180 | 180 |
181 } // namespace blink | 181 } // namespace blink |
182 | 182 |
183 #endif // ApplicationCacheHost_h | 183 #endif // ApplicationCacheHost_h |
OLD | NEW |