| Index: content/child/appcache/web_application_cache_host_impl.cc
|
| diff --git a/content/child/appcache/web_application_cache_host_impl.cc b/content/child/appcache/web_application_cache_host_impl.cc
|
| index 7d5f47b92fca08af60bbb154b968ccd4e6bd9261..9f74eca36d4d22874933d985b0077cb60dd3b96b 100644
|
| --- a/content/child/appcache/web_application_cache_host_impl.cc
|
| +++ b/content/child/appcache/web_application_cache_host_impl.cc
|
| @@ -8,12 +8,14 @@
|
| #include "base/id_map.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/stringprintf.h"
|
| +#include "third_party/WebKit/public/platform/WebString.h"
|
| #include "third_party/WebKit/public/platform/WebURL.h"
|
| #include "third_party/WebKit/public/platform/WebURLRequest.h"
|
| #include "third_party/WebKit/public/platform/WebURLResponse.h"
|
|
|
| using blink::WebApplicationCacheHost;
|
| using blink::WebApplicationCacheHostClient;
|
| +using blink::WebString;
|
| using blink::WebURLRequest;
|
| using blink::WebURL;
|
| using blink::WebURLResponse;
|
| @@ -133,7 +135,10 @@ void WebApplicationCacheHostImpl::OnProgressEventRaised(
|
| }
|
|
|
| void WebApplicationCacheHostImpl::OnErrorEventRaised(
|
| - const std::string& message) {
|
| + const std::string& message,
|
| + appcache::ErrorReason reason,
|
| + const GURL& url,
|
| + int status) {
|
| // Emit logging output prior to calling out to script as we can get
|
| // deleted within the script event handler.
|
| const char* kFormatString = "Application Cache Error event: %s";
|
| @@ -142,7 +147,10 @@ void WebApplicationCacheHostImpl::OnErrorEventRaised(
|
| OnLogMessage(appcache::LOG_ERROR, full_message);
|
|
|
| status_ = cache_info_.is_complete ? appcache::IDLE : appcache::UNCACHED;
|
| - client_->notifyEventListener(static_cast<EventID>(appcache::ERROR_EVENT));
|
| + client_->notifyErrorEventListener(static_cast<ErrorReason>(reason),
|
| + url,
|
| + status,
|
| + WebString::fromUTF8(message));
|
| }
|
|
|
| void WebApplicationCacheHostImpl::willStartMainResourceRequest(
|
|
|