| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "webkit/appcache/appcache_frontend_impl.h" | 5 #include "webkit/appcache/appcache_frontend_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "webkit/appcache/web_application_cache_host_impl.h" | 8 #include "webkit/appcache/web_application_cache_host_impl.h" |
| 9 | 9 |
| 10 namespace appcache { | 10 namespace appcache { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 const std::vector<int>& host_ids, | 46 const std::vector<int>& host_ids, |
| 47 const GURL& url, int num_total, int num_complete) { | 47 const GURL& url, int num_total, int num_complete) { |
| 48 for (std::vector<int>::const_iterator i = host_ids.begin(); | 48 for (std::vector<int>::const_iterator i = host_ids.begin(); |
| 49 i != host_ids.end(); ++i) { | 49 i != host_ids.end(); ++i) { |
| 50 WebApplicationCacheHostImpl* host = GetHost(*i); | 50 WebApplicationCacheHostImpl* host = GetHost(*i); |
| 51 if (host) | 51 if (host) |
| 52 host->OnProgressEventRaised(url, num_total, num_complete); | 52 host->OnProgressEventRaised(url, num_total, num_complete); |
| 53 } | 53 } |
| 54 } | 54 } |
| 55 | 55 |
| 56 void AppCacheFrontendImpl::OnLogMessage(int host_id, LogLevel log_level, |
| 57 const std::string& message) { |
| 58 WebApplicationCacheHostImpl* host = GetHost(host_id); |
| 59 if (host) |
| 60 host->OnLogMessage(log_level, message); |
| 61 } |
| 62 |
| 56 void AppCacheFrontendImpl::OnContentBlocked(int host_id) { | 63 void AppCacheFrontendImpl::OnContentBlocked(int host_id) { |
| 57 WebApplicationCacheHostImpl* host = GetHost(host_id); | 64 WebApplicationCacheHostImpl* host = GetHost(host_id); |
| 58 if (host) | 65 if (host) |
| 59 host->OnContentBlocked(); | 66 host->OnContentBlocked(); |
| 60 } | 67 } |
| 61 | 68 |
| 62 } // namespace appcache | 69 } // namespace appcache |
| OLD | NEW |