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

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

Issue 6727006: Select a more appropiate appcache based on the opener or the parent of the new document. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
« no previous file with comments | « no previous file | webkit/appcache/appcache_host.h » ('j') | webkit/appcache/appcache_host.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | webkit/appcache/appcache_host.h » ('j') | webkit/appcache/appcache_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698