Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: webkit/appcache/appcache_backend_impl.cc

Issue 3009005: Chrome side of changes required to populate appcache resource list.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698