| Index: webkit/appcache/appcache_frontend_impl.cc
|
| ===================================================================
|
| --- webkit/appcache/appcache_frontend_impl.cc (revision 52160)
|
| +++ webkit/appcache/appcache_frontend_impl.cc (working copy)
|
| @@ -34,6 +34,7 @@
|
| void AppCacheFrontendImpl::OnEventRaised(const std::vector<int>& host_ids,
|
| EventID event_id) {
|
| DCHECK(event_id != PROGRESS_EVENT); // See OnProgressEventRaised.
|
| + DCHECK(event_id != ERROR_EVENT); // See OnErrorEventRaised.
|
| for (std::vector<int>::const_iterator i = host_ids.begin();
|
| i != host_ids.end(); ++i) {
|
| WebApplicationCacheHostImpl* host = GetHost(*i);
|
| @@ -53,6 +54,17 @@
|
| }
|
| }
|
|
|
| +void AppCacheFrontendImpl::OnErrorEventRaised(
|
| + const std::vector<int>& host_ids,
|
| + const std::string& message) {
|
| + for (std::vector<int>::const_iterator i = host_ids.begin();
|
| + i != host_ids.end(); ++i) {
|
| + WebApplicationCacheHostImpl* host = GetHost(*i);
|
| + if (host)
|
| + host->OnErrorEventRaised(message);
|
| + }
|
| +}
|
| +
|
| void AppCacheFrontendImpl::OnLogMessage(int host_id, LogLevel log_level,
|
| const std::string& message) {
|
| WebApplicationCacheHostImpl* host = GetHost(host_id);
|
|
|