| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 hosts_.erase(found); | 52 hosts_.erase(found); |
| 53 return true; | 53 return true; |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool AppCacheBackendImpl::SetSpawningHostId( | 56 bool AppCacheBackendImpl::SetSpawningHostId( |
| 57 int host_id, | 57 int host_id, |
| 58 int spawning_host_id) { | 58 int spawning_host_id) { |
| 59 AppCacheHost* host = GetHost(host_id); | 59 AppCacheHost* host = GetHost(host_id); |
| 60 if (!host) | 60 if (!host) |
| 61 return false; | 61 return false; |
| 62 // TODO(michaeln): Write me, see the bug for details. | 62 host->SetSpawningHostId(process_id_, spawning_host_id); |
| 63 // http://code.google.com/p/chromium/issues/detail?id=68479 | |
| 64 return true; | 63 return true; |
| 65 } | 64 } |
| 66 | 65 |
| 67 bool AppCacheBackendImpl::SelectCache( | 66 bool AppCacheBackendImpl::SelectCache( |
| 68 int host_id, | 67 int host_id, |
| 69 const GURL& document_url, | 68 const GURL& document_url, |
| 70 const int64 cache_document_was_loaded_from, | 69 const int64 cache_document_was_loaded_from, |
| 71 const GURL& manifest_url) { | 70 const GURL& manifest_url) { |
| 72 AppCacheHost* host = GetHost(host_id); | 71 AppCacheHost* host = GetHost(host_id); |
| 73 if (!host) | 72 if (!host) |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 void AppCacheBackendImpl::GetResourceList( | 142 void AppCacheBackendImpl::GetResourceList( |
| 144 int host_id, std::vector<appcache::AppCacheResourceInfo>* resource_infos) { | 143 int host_id, std::vector<appcache::AppCacheResourceInfo>* resource_infos) { |
| 145 AppCacheHost* host = GetHost(host_id); | 144 AppCacheHost* host = GetHost(host_id); |
| 146 if (!host) | 145 if (!host) |
| 147 return; | 146 return; |
| 148 | 147 |
| 149 host->GetResourceList(resource_infos); | 148 host->GetResourceList(resource_infos); |
| 150 } | 149 } |
| 151 | 150 |
| 152 } // namespace appcache | 151 } // namespace appcache |
| OLD | NEW |