| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_backend_impl.h" | 5 #include "webkit/appcache/appcache_backend_impl.h" |
| 6 | 6 |
| 7 #include "base/stl_util-inl.h" | 7 #include "base/stl_util-inl.h" |
| 8 #include "webkit/appcache/appcache.h" | 8 #include "webkit/appcache/appcache.h" |
| 9 #include "webkit/appcache/appcache_group.h" | 9 #include "webkit/appcache/appcache_group.h" |
| 10 #include "webkit/appcache/appcache_service.h" | 10 #include "webkit/appcache/appcache_service.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 bool AppCacheBackendImpl::SwapCacheWithCallback( | 116 bool AppCacheBackendImpl::SwapCacheWithCallback( |
| 117 int host_id, SwapCacheCallback* callback, void* callback_param) { | 117 int host_id, SwapCacheCallback* callback, void* callback_param) { |
| 118 AppCacheHost* host = GetHost(host_id); | 118 AppCacheHost* host = GetHost(host_id); |
| 119 if (!host) | 119 if (!host) |
| 120 return false; | 120 return false; |
| 121 | 121 |
| 122 host->SwapCacheWithCallback(callback, callback_param); | 122 host->SwapCacheWithCallback(callback, callback_param); |
| 123 return true; | 123 return true; |
| 124 } | 124 } |
| 125 | 125 |
| 126 void AppCacheBackendImpl::GetResourceList( |
| 127 int host_id, std::vector<appcache::AppCacheResourceInfo>* resource_infos) { |
| 128 AppCacheHost* host = GetHost(host_id); |
| 129 if (!host) |
| 130 return; |
| 131 |
| 132 host->GetResourceList(resource_infos); |
| 133 } |
| 134 |
| 126 } // namespace appcache | 135 } // namespace appcache |
| OLD | NEW |