| OLD | NEW | 
|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "content/child/appcache/appcache_dispatcher.h" | 5 #include "content/child/appcache/appcache_dispatcher.h" | 
| 6 | 6 | 
| 7 #include "content/common/appcache_messages.h" | 7 #include "content/common/appcache_messages.h" | 
| 8 | 8 | 
| 9 namespace content { | 9 namespace content { | 
| 10 | 10 | 
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 45                                        appcache::EventID event_id) { | 45                                        appcache::EventID event_id) { | 
| 46   frontend_->OnEventRaised(host_ids, event_id); | 46   frontend_->OnEventRaised(host_ids, event_id); | 
| 47 } | 47 } | 
| 48 | 48 | 
| 49 void AppCacheDispatcher::OnProgressEventRaised( | 49 void AppCacheDispatcher::OnProgressEventRaised( | 
| 50     const std::vector<int>& host_ids, | 50     const std::vector<int>& host_ids, | 
| 51     const GURL& url, int num_total, int num_complete) { | 51     const GURL& url, int num_total, int num_complete) { | 
| 52   frontend_->OnProgressEventRaised(host_ids, url, num_total, num_complete); | 52   frontend_->OnProgressEventRaised(host_ids, url, num_total, num_complete); | 
| 53 } | 53 } | 
| 54 | 54 | 
| 55 void AppCacheDispatcher::OnErrorEventRaised( | 55 void AppCacheDispatcher::OnErrorEventRaised(const std::vector<int>& host_ids, | 
| 56     const std::vector<int>& host_ids, | 56                                             const std::string& message, | 
| 57     const std::string& message) { | 57                                             appcache::ErrorReason reason, | 
| 58   frontend_->OnErrorEventRaised(host_ids, message); | 58                                             const GURL& url, | 
|  | 59                                             int status) { | 
|  | 60   frontend_->OnErrorEventRaised(host_ids, message, reason, url, status); | 
| 59 } | 61 } | 
| 60 | 62 | 
| 61 void AppCacheDispatcher::OnLogMessage( | 63 void AppCacheDispatcher::OnLogMessage( | 
| 62     int host_id, int log_level, const std::string& message) { | 64     int host_id, int log_level, const std::string& message) { | 
| 63   frontend_->OnLogMessage( | 65   frontend_->OnLogMessage( | 
| 64       host_id, static_cast<appcache::LogLevel>(log_level), message); | 66       host_id, static_cast<appcache::LogLevel>(log_level), message); | 
| 65 } | 67 } | 
| 66 | 68 | 
| 67 void AppCacheDispatcher::OnContentBlocked(int host_id, | 69 void AppCacheDispatcher::OnContentBlocked(int host_id, | 
| 68                                           const GURL& manifest_url) { | 70                                           const GURL& manifest_url) { | 
| 69   frontend_->OnContentBlocked(host_id, manifest_url); | 71   frontend_->OnContentBlocked(host_id, manifest_url); | 
| 70 } | 72 } | 
| 71 | 73 | 
| 72 }  // namespace content | 74 }  // namespace content | 
| OLD | NEW | 
|---|