Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Unified Diff: webkit/appcache/appcache_frontend_impl.cc

Issue 2910007: Report an error message when an update job results in an error. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/appcache/appcache_frontend_impl.h ('k') | webkit/appcache/appcache_group_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « webkit/appcache/appcache_frontend_impl.h ('k') | webkit/appcache/appcache_group_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698