| OLD | NEW |
| 1 // Copyright (c) 2009 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 #include "webkit/appcache/web_application_cache_host_impl.h" | 6 #include "webkit/appcache/web_application_cache_host_impl.h" |
| 7 | 7 |
| 8 namespace appcache { | 8 namespace appcache { |
| 9 | 9 |
| 10 // Inline helper to keep the lines shorter and unwrapped. | 10 // Inline helper to keep the lines shorter and unwrapped. |
| 11 inline WebApplicationCacheHostImpl* GetHost(int id) { | 11 inline WebApplicationCacheHostImpl* GetHost(int id) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 32 void AppCacheFrontendImpl::OnEventRaised(const std::vector<int>& host_ids, | 32 void AppCacheFrontendImpl::OnEventRaised(const std::vector<int>& host_ids, |
| 33 EventID event_id) { | 33 EventID event_id) { |
| 34 for (std::vector<int>::const_iterator i = host_ids.begin(); | 34 for (std::vector<int>::const_iterator i = host_ids.begin(); |
| 35 i != host_ids.end(); ++i) { | 35 i != host_ids.end(); ++i) { |
| 36 WebApplicationCacheHostImpl* host = GetHost(*i); | 36 WebApplicationCacheHostImpl* host = GetHost(*i); |
| 37 if (host) | 37 if (host) |
| 38 host->OnEventRaised(event_id); | 38 host->OnEventRaised(event_id); |
| 39 } | 39 } |
| 40 } | 40 } |
| 41 | 41 |
| 42 void AppCacheFrontendImpl::OnContentBlocked(int host_id) { |
| 43 WebApplicationCacheHostImpl* host = GetHost(host_id); |
| 44 if (host) |
| 45 host->OnContentBlocked(); |
| 46 } |
| 47 |
| 42 } // namespace appcache | 48 } // namespace appcache |
| OLD | NEW |